Test using JUnit
Introduction
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Based on your testing practices you can choose to create combination Test suite, Test Cases and Test Steps that will be created in QMetry after importing the automation result file. You need to provide a value in automationHierarchy parameter in Automation API - while importing the test results. Based on the table below the Test artifacts will be created in QMetry.
Automation Hierarchy Values | Following QMetry assets will be created and linked | Test Suite | Test Case | Test Step |
---|---|---|---|---|
1 | Testsuite, Test Case, Test Step | Testsuite will be created based on testsuiteName parameter in Automation API or Auto generated if not mentioned. | <testsuite> tag : Parsed from the result file. | <testcase> tag under the <testsuite> tag : Parsed from the result file. classname.name() will be the Test Step Description. |
2 | Testsuite, Test Case | Testsuite will be created based on testsuiteName parameter in Automation API or Auto generated if not mentioned. | <testcase> tag under the <testsuite> tag : Parsed from the result file. classname.name() will be the Test Case summary. | NA |
3 | Testsuite, Test Case | <testsuite> tag | <testcase> tag under the <testsuite> tag : Parsed from the result file. classname.name() will be the Test Case summary. | NA |
Supported Version: 1.2.5
Supported file types : XML
Sample Test Result File
Automation Hierarchy 1
Click here to download a sample file.
Automation Hierarchy 2
Click here to download a sample file.
Automation Hierarchy 3
Click here to download a sample file.