Last updated: Feb 07, 2019 00:05
by Nato Vasilevski
If you want to be able to get a single Execution ID and use if afterwards for analyses of your results, this article is for you. Below in this article you can find more useful information in related articles.
Please do not forget to hit the “Like” button if you found what you have been searching for. Thank you in advance!
When you use TestNG, your XML file has similar structure:
… </suite> … <test name="ExecutionID using TestNG" enabled="true"> <parameter name="driver.capabilities.platformName" value="ios"></parameter> <groups> <run> <include name="@WebSearch"/> </run> </groups> <classes> <class name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory"/> </classes> </test> </suite> …
This will generate one test run result with a single Execution ID
If you want to have more than one runs covered by the same Execution ID, you need to remain in the frames of the same test. For the example in this article I have included another include like this:
… </suite> … <test name="ExecutionID using TestNG" enabled="true"> <parameter name="driver.capabilities.platformName" value="ios"></parameter> <groups> <run> <include name="@WebSearch"/> <include name="@WebResultsList"/> </run> </groups> <classes> <class name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory"/> </classes> </test> </suite> …
This will provide you with two runs with the same Execution ID:
and
As you can see the both runs started at different time have the same Execution ID
Happy testing!
Related articles
https://developers.perfectomobile.com/display/TT/PDF+Download+after+Test+execution
https://developers.perfectomobile.com/display/PD/DigitalZoom+Reporting+Public+API
https://developers.perfectomobile.com/display/PD/API+for+External+Test+Information