mkorpela / pabot

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

Reading XML source 'test/pabot_results/<test_no>/output.xml' failed: ParseError: no element found: line 1, column 0 #573

Open salman-khalidi opened 7 months ago

salman-khalidi commented 7 months ago

Hi. I've been using Pabot with the --testlevelsplit option recently to run test cases in the test suite in parallel, but intermittently receive an error/bug as per the title, for some tests. This usually happens on the first run. After the first run, the error/bug seems not re-produceable anymore. But if you made changes to the Robot Framework files, the chances for it to happen again is high. This error causes the log file to be incomplete and only contain logs for unaffected tests. Executing tests without --testlevelsplit seems fine. Am not sure how to troubleshoot as the content of output.xml, robot_stderr.out and robot_stdout.out files in pabot_results/<test_no> for the afffected tests will be empty. My Pabot command:

pabot --testlevelsplit -v env:dev --outputdir test --name WebCommonLogin FunctionalTesting/Login.robot

Attaching screenshots for reference.

Screenshot 2024-03-04 at 2 35 21 PM Screenshot 2024-03-04 at 2 34 49 PM