Open Delilovic opened 2 years ago
Hi, The problem comes from sorting the paths of the output files to be merged. The output directories of the testcases looks something like this:
├───pabot_results
│ ├───0
│ ├───1
│ ├───10
│ ├───11
│ ├───2
│ ├───3
│ ├───4
│ ├───5
│ ├───6
│ ├───7
│ ├───8
│ └───9
Each of the subfolder contains its output.xml
file.
The issue is that before merging the output files, pabot sorts the output file paths with the builtin sorted
function which treats them as ordinary strings messing up the order of the "numbered" directories.
Hi, when I have 10 test cases, the order in log.html is correct, but when I add the 11th test, the order is wrong. The 11th test is shown under the 1st test and the 12th test is shown under the 11th (and so on) Do you have any idea why this is or how to avoid this? It is simple to test it your self, just run pabot --testlevelsplit ./path_to_your_suite.robot on the test bellow.
correct -> normal_ordering incorrect -> 11th_test_ordering incorrect -> 11th_test_non_numeric incorrect -> 12th_test_ordering
Only happens when using --testlevelsplit argument.
The line number is also correct in output.xml: \
Test Cases test1 Skip
test2 Skip
test3 Skip
test4 Skip
test5 Skip
test6 Skip
test7 Skip
test8 Skip
test9 Skip
test10 Skip
# Uncomment to test invalid ordering
#test11 # Skip
#testFoo # Skip
#test12 # Skip