Skip to content

Crazy blog

No money, no honey, no funny…

Tag Archives: RobotFramework

Today, I have the problem when assign value for a variable in using robotframework. It takes me 6 hours to investigate. And I see the problem that I just use variable on the normal way:Set Variable. So that the problems happen that I assign value but it always return empty.

Here is the example to solve that problem. It is just set the ${MyVariable} with value 100 from Resource Temp.html. Then write it to file.
In testcase, using Set Global Variable ${MyVariable} 10 (default value)

In Resource Temp.html, just call Set Global Variable ${MyVariable} 100 (new value)

Then just run the script and view the file ${file}. The result will be 100. 🙂
Advertisements

Tags: ,

1. Download all links bellow to set up for win 32 bit
http://www.general-search.com/download/jre6u22-windows-i586
http://www.python.org/ftp/python/2.7/python-2.7.msi
http://sourceforge.net/projects/wxpython/files/wxPython/2.9.1.1/wxPython2.9-win32-2.9.1.1-py27.exe/download
http://code.google.com/p/robotframework/downloads/detail?name=robotframework-2.5.4.win32.exe
http://code.google.com/p/robotframework-ride/downloads/detail?name=robotide-0.29.win32.exe
http://code.google.com/p/robotframework-seleniumlibrary/downloads/detail?name=robotframework-seleniumlibrary-2.4.win32.exe

2. Install all with default path
3. Environments Variables.
(Example for win7: Right click My computer, click Advanced system setting, click tab Advanced, click button Environment Variable, at system variable, search variable Path, click Edit button, add C:\Python27\Scripts\, then Ok, Ok, Ok

4. Start RIDE
Go to C:\Python27\Scripts, search file ride.pyo, double click to start RIDE

Tags: