question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rebot generates invalid output.xml when using `--removekeywords` and there's IF on test case level

See original GitHub issue

Here 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
miktuycommented, Jun 10, 2021
0reactions
pekkaklarckcommented, Jun 19, 2021

The aforementioned problem was fixed in the above commit.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found