Reputation: 121
I am using pycharm terminal to execute test suite
robot -d Output --loglevel TRACE TestCases\TC001Suite.robot
Within the TC001Suite, there are 10 cases.
I want to rerun failed cases for this test suite only.
I have tried --runfailed but it cannot be executed.
Upvotes: 0
Views: 957
Reputation: 1242
the option -d means that you want to output to directory Output. Maybee your xml file is in different director and when you rerun the test it fails
robot -d Output --loglevel TRACE TestCases\TC001Suite.robot
Dont change the directory and just specify the name of xml file. The robot will put the output in your current dir.
robot --output original.xml --loglevel TRACE TestCases\TC001Suite.robot # first execute all tests
robot --rerunfailed original.xml --output rerun.xml --loglevel TRACE TestCases\TC001Suite.robot # then re-execute failing
you can then merge the tests. You can read about it in the documentation
Upvotes: 1