-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Robot framework output file is showing error #5372
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
Comments
Sounds like your different executions would be writing to the same file which breaks it. If that's not the case, then you most likely have some library that runs something on background using threads or processes and causes the problem. Overall it's rather impossible for us to know what breaks an output.xml file with this kind of information only. If the above doesn't help, you can do two things:
|
I have created a Test Runner file that is executing 4 tests *** Settings ***
Library Process
Library OperatingSystem
Library Collections
Suite Setup Log Starting Journey Test Suite
Suite Teardown Log Journey Test Suite Completed
*** Variables ***
${TIMEOUT} 300s
${ENCODING} UTF-8
*** Test Cases ***
Test 1 - Run Journey Content Test
Log Running Test 1
${result} Run Process robot PathtoTest1.robot timeout=${TIMEOUT}
Log ${result.stdout}
Should Be Equal As Integers ${result.rc} 0 Test 1 Failed
Test 2 - Run Adding Journey Menu Test
Log Running Test 2
${result} Run Process robot PathtoTest2.robot timeout=${TIMEOUT}
Log ${result.stdout}
Should Be Equal As Integers ${result.rc} 0 Test 2 Failed
Test 3 - Run Journey Portal Frontend Test
Log Running Test 3
${result} Run Process robot PathtoTest3.robot timeout=${TIMEOUT} shell=True
Log ${result.stdout}
Run Keyword And Continue On Failure Should Be Equal As Integers ${result.rc} 0 Test 3 Failed or Hung
Test 4 - Run Delete Journey Automation Page Test
Log Running Test 4
${result} Run Process robot PathtoTest4.robot timeout=${TIMEOUT}
Log ${result.stdout}
Should Be Equal As Integers ${result.rc} 0 Test 4 Failed output.xml is same and it hangs after third test. |
Hanging may be due to output buffers getting full. As explained in the Process library documentation, that can be avoided by redirecting |
Did you try redirecting |
Error in the output.xml file,
[ ERROR ] Reading XML source <<<filePath\output.xml>>> failed: ParseError: mismatched tag: line 157, column 21
Trying to execute an End to End tests calling 4 .robot tests from the same project.
Please provide possible solution
I am on the latest versions
robotframework==7.2.2
robotframework-seleniumlibrary==6.7.1
selenium==4.29.1
The text was updated successfully, but these errors were encountered: