mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

Rerun failed tests using pabot, errors out with exit code 252 #576

Open pushkarlm opened 7 months ago

pushkarlm commented 7 months ago

Following are the versions I am using:

Command I ran:

original.xml has two failed tests from previous runs, one from each test suite

Above command gave following error:

pabot --verbose --processes 2 --rerunfailed original.xml --output rerun.xml .\Tests\ C:\Program Files\Python39\lib\site-packages\robotframework-6.1.1-py3.9.egg\robot\utils\argumentparser.py:80: UserWarning: ArgumentParser option 'auto_pythonpath' is deprecated since Robot Framework 5.0. warnings.warn("ArgumentParser option 'auto_pythonpath' is deprecated " C:\Program Files\Python39\lib\site-packages\robotframework-6.1.1-py3.9.egg\robot\running\builder\builders.py:112: UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect. Use the new 'included_files' argument or filter the created suite instead. warnings.warn("'TestSuiteBuilder' argument 'included_suites' is deprecated " Storing .pabotsuitenames file Suite names resolved in 0.042122602462768555 seconds 2024-04-04 13:32:58.847567 [PID:13692] [0] [ID:1] EXECUTING PARALLEL Tests.Test2 with command: robot --suite Tests.Test2 --rerunfailed original.xml --variable CALLER_ID:1cc9b3ce6edd4aa68201034a57d929bf --variable PABOTLIBURI:127.0.0.1:8270 --variable PABOTEXECUTIONPOOLID:0 --variable PABOTISLASTEXECUTIONINPOOL:1 --variable PABOTNUMBEROFPROCESSES:2 --variable PABOTQUEUEINDEX:1 --variable PABOTLASTLEVEL: --output rerun.xml --listener RobotStackTracer --log NONE --report NONE --xunit NONE --outputdir ".\pabot_results\1" --consolecolors off --consolemarkers off ".\Tests\" 2024-04-04 13:32:58.847567 [PID:3776] [1] [ID:0] EXECUTING PARALLEL Tests.Test1 with command: robot --suite Tests.Test1 --rerunfailed original.xml --variable CALLER_ID:c86bcd3a7f4246e6882881f34dd4a5a2 --variable PABOTLIBURI:127.0.0.1:8270 --variable PABOTEXECUTIONPOOLID:1 --variable PABOTISLASTEXECUTIONINPOOL:0 --variable PABOTNUMBEROFPROCESSES:2 --variable PABOTQUEUEINDEX:0 --variable PABOTLASTLEVEL:Tests.Test1 --output rerun.xml --listener RobotStackTracer --log NONE --report NONE --xunit NONE --outputdir ".\pabot_results\0" --consolecolors off --consolemarkers off ".\Tests\" 2024-04-04 13:32:59.640358 [PID:13692] [0] [ID:1] Execution failed in Tests.Test2 with 252 failing test(s)

[ ERROR ] Parsing 'C:\Users\someuser\robot_exp\Tests"' failed: File or directory to execute does not exist.

Try --help for usage information.

2024-04-04 13:32:59.657928 [PID:3776] [1] [ID:0] Execution failed in Tests.Test1 with 252 failing test(s)

[ ERROR ] Parsing 'C:\Users\someuser\robot_exp\Tests"' failed: File or directory to execute does not exist.

Try --help for usage information.

WARN: No output files in ".\pabot_results" 0 tests, 0 passed, 0 failed, 0 skipped.

Output: [ ERROR ] Reading XML source '' failed: No such file or directory

Try --help for usage information. Total testing: 1.40 seconds Elapsed time: 0.91 seconds