If calling Pabot with the option --command mycmd robot --end-command and mycmd fails, i.e. Robot fails to start the test case, Pabot will not handle this. I would expect the XML to be generated with the reason that the test case failed to start.
# file: example.robot
*** Test Cases ***
Test A
Log Running ${TEST NAME}
Test B
Log Running ${TEST NAME}
$ pabot --splitleveltest --command mycmd robot --end-command example.robot
Storing .pabotsuitenames file
2024-02-22 12:07:39.041035 [PID:18335] [0] [ID:0] EXECUTING Example.Test A
2024-02-22 12:07:39.041338 [PID:18336] [1] [ID:1] EXECUTING Example.Test B
2024-02-22 12:07:39.241447 [PID:18335] [0] [ID:0] FAILED Example.Test A
2024-02-22 12:07:39.241871 [PID:18336] [1] [ID:1] FAILED Example.Test B
[ ERROR ] Reading XML source '' failed: No such file or directory
Try --help for usage information.
WARN: No output files in "./pabot_results"
0 tests, 0 passed, 0 failed, 0 skipped.
===================================================
Output:
Total testing: 0.40 seconds
Elapsed time: 0.31 seconds
If calling Pabot with the option
--command mycmd robot --end-command
andmycmd
fails, i.e. Robot fails to start the test case, Pabot will not handle this. I would expect the XML to be generated with the reason that the test case failed to start.