I run pybot using this command,
pybot --argumentfile a
File 'a' has the list of robot test cases and variable arguments as,
-v test_type:SUITE
/home/sk/a.robot
/home/sk/b.robot
Now, the test cases are run with ids, s1-s1-t1 and s1-s2-t2. Output.xml contains,
<suite id="s1" name="A & B">
<suite source="/home/sk/a.robot" id="s1-s1" name="A">
<test id="s1-s1-t1" name="Log Test">...</test>
Now, i removed one case and file 'a' has only one case as,
-v test_type:SUITE
/home/sk/a.robot
Output.xml contains,
<suite source="/home/sk/a.robot" id="s1" name="A">
<test id="s1-t1" name="Log Test">
-----------------</test></suite>
Robot doesn't create the sub-suites s1 under parent suite s1 any more and instead it runs the testcase with ids s1-t1. This inconsistent way of creating test suites is making DOM parsing of output.xml difficult for me.
Is there a way to force robot to always create a test suite if it is run with --argumentfile
option.