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. 🙂

Tags: ,

1. Download all links bellow to set up for win 32 bit

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