Rebot generates invalid output.xml when using `--removekeywords` and there's IF on test case level
See original GitHub issueHere is the test case:
*** Test Cases ***
Testing 2
IF 1 == 1
Log hello
ELSE
Log none
END
Keyword
*** Keywords ***
Keyword
IF 1 == 1
Fail
ELSE
Log none
END
Then do
rebot --log NONE --report NONE --xunit NONE --consolecolors off --NoStatusRC --removekeywords all --output output_invalid.xml output.xml
If you do:
rebot --log NONE --report NONE --xunit NONE --consolecolors off --NoStatusRC --removekeywords all --output output_invalid.xml output_invalid.xml
Boom =>
[ ERROR ] Reading XML source 'output_invalid.xml' failed: Incompatible child element 'doc' for 'if'.
Try --help for usage information.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Generation of output.xml fails - Google Groups
It seems that the generation of output.xml of Robot Framework isn't stable anymore when exceeding some size. Many non-deterministic bugs with different symptoms ......
Read more >Getting: Incompatible child element 'doc' for 'if' · Issue #364
Rebot generates invalid output.xml when using --removekeywords and there's IF on test case level robotframework/robotframework#4009.
Read more >Robot Framework User Guide
Enables easy-to-use tabular syntax for creating test cases in a uniform way. Provides ability to create reusable higher-level keywords from the existing ...
Read more >How can I tell robot framework not to log a keyword?
Hello. Our tests contain sensitive data, for instance, a variable with password which should not be in log and output.xml. And there are...
Read more >RobotFrameworkAdvancedGuide < EMI < TWiki
Why Robot Framework. Enables easy-to-use tabular syntax for creating test cases in a uniform way. Provides ability to create reusable higher-level keywords ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi! Try to fix in https://github.com/robotframework/robotframework/pull/4010
The aforementioned problem was fixed in the above commit.