I have a task to run robot framework test cases automatically.
I set up everything and the only thing I faced is to select about 10 test cases to be run each day, and within a week, the whole test suites are ideally to be run at least once., let's say about 90%, not necessary this number...
Here is the condition: usually we set up a tag under this test case name so that it can be picked up to be run in the execution as below:
Sample as this below:
Code: Select all
Test 01-Sale and Void Sale VISA Contact
[Tags] BVTN
${Invoice} Evaluate random.randint(1,999999)
Transaction flow without Check SALE ${Invoice} ${Visa} 100 ${EMPTY} LANG
Get Receipt and Log VISA SALE
Start Void transaction ${Acquirer} ${Invoice}
Check Transaction result
Test 02-Sale MASTERCARD
[Tags] BVTN
${Invoice} Evaluate random.randint(1,999999)
Transaction flow SALE ${Invoice} ${MC_MasterCard} 100 4315 ${EMPTY} CREDIT
Currently I manually put tag under 10 test cases within these 50 test cases. So I am looking for a solution to automatically rotate these tags from one test case to another test case within a week, let say this way below:
Day1 (Mon) these 10 tages under below test cases Test 01, Test 02, Test 11, Test 12, Test 21, Test22, Test 31, Test 32, Test 41, Test 42 by insert tag under the test case name as showing in the above.
Day2 (Tue) these 10 tages under below test cases Test 03, Test 04, Test 13, Test 14, Test 23, Test24, Test 33, Test 34, Test 43, Test 44
Day3 (Wec) these 10 tages under below test cases Test 05, Test 06, Test 15, Test 16, Test 25, Test26, Test 35, Test 36, Test 45, Test 46
Day4 (Thu) these 10 tages under below test cases Test 07, Test 08, Test 17, Test 18, Test 27, Test28, Test 37, Test 38, Test 47, Test 48
Day5 (Fri) these 10 tages under below test cases Test 09, Test 10, Test 19, Test 20, Test 29, Test30, Test 39 Test 40, Test 49, Test 50