Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to execute some test cases multiple times in robotframework

I have a test request for executing some test cases multiple times in robotframework and have the test cases pass/fail status individually in report. Now I use for loop to execute but I get only one Pass/Fail status for all executions.

like image 236
Qi Huaping Avatar asked Jan 29 '23 10:01

Qi Huaping


1 Answers

Robot-framework will look for matching tests in all of the provided paths, if you pass the same path more than once, robot will run the same test again.

For example, if you are running tests on the current folder, you can pass "." as many times as you want the test to run. Ex:

robot -t "*My test*" . . .

This command will run all tests that match the expression 3 times, and the report will contain all 3 executions and results.

like image 198
Nogoseke Avatar answered Apr 30 '23 22:04

Nogoseke