Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pabot is not handling error cause by the --command option #570

Open
RasmusGOlsen opened this issue Feb 22, 2024 · 0 comments
Open

Pabot is not handling error cause by the --command option #570

RasmusGOlsen opened this issue Feb 22, 2024 · 0 comments

Comments

@RasmusGOlsen
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant