Hi,
I would like to know if there is a way to obtain all the test steps of a test suite in XML format ?
Indeed, at the moment I could only have the "level 1" of test cases of a test suite by using : im viewissue --xmlapi itemTestSuiteID and then if I do the same on a test case I got the list of test steps. But is there a way to do it directly ?
If not, is there somewhere a doc to explain how to create an xml template understable by integrity such as the DOCX File Export Support here http://www.mks.com/support/productinfo/docs/GatewayUserGuide.pdf page 75 ?
And if you have any better idea I am ready to hear it
Thank you,
Nicolas
Hi Nicolas,
I would try these two alternatives:
regarding 1/
The most important task here is to name the tags and fields explicitely, not generic. Explicit naming is required because XML rejects field names with blanks in it, so we must say <ExpectedResult><%RelationshipL2 Expected Result%></ExpectedResult>
This way you can easily create a valid XML file.
regarding 2/
The right command to use would be
This command provides all data from every section of your suite document. Then, you use im issues to add the individual test steps and the additional data required.
I suggest to use the xstream library for easy xml file creation.
Feel free to contact me directly via personal message if you need any additional advise or just to clarifiy my approaches.
Volker