How to run script on Robot Framework -Selenium2Library by command line
In order to get the the first steps about Robot Framework with Selenium2Library, we can start a test script by 2 ways:
- Using run button on GUI of Ride
- Using command line.
About the nature of ways to run a test script on Robot Framework, Two way are the same. We have to use pybot command with various options to run test script.
Example: We will use the command as below to run testscript file (.txt).
pybot --timestampoutputs --variable BROWSER:FF LoginSuite.txt
--- Here is the content of our test script:
In command line, I define options: --timestampoutputs : Output file will be generated at current location (Location of test script). --variable BROWSER:FF We can define value for variable that we defined on scripts. LoginSuite.txt: We define test script that we want to run/ execute.
We will get the result of command line screen like that:
Log file and report will be generated on the resource folder.
hi a, Do you know the way to execute the robot testsuite multiple times ? Thanks