Test Using QMetry Automation Framework
QMetry Automation Framework is designed to solve common industry problems related to testing complex web systems. The framework is best suited for writing Automated Web, Mobile Web, and Mobile Native Application UI Tests simulate real user activities on the page. The framework is built upon java and integrates TestNG, Selenium/Webdriver, Appium, and Perfecto.
Due to the framework’s thorough design, the test developer does not need to worry about common tasks such as thread-safe browser sessions for running tests in parallel, reporting, or to incorporate results with test management tools. The test run can be configured through standard testing configuration files, the test run filters, and behavior can be changed within the config File.
Import Test Results generated from .feature file
Specify the Test Cases and Test Steps in the .feature file as per the following table.
Test Case Tag | Test Step Tag |
|---|---|
Scenario > name | Statement with Given, When, Then keyword |
QMetry uses following tags of QAF output result file to create Test cases and Steps.
Test Case Tag | Test Step Tag |
|---|---|
Meta-info.json > metaData> methods > name | checkPoints > message |
Supported file types : ZIP
The following feature file shows the syntax for story association and test case reusability.

Sample Test Result File
Click to download a Sample Test Result File: Feature json sample.zip
The following is an example of Meta-info.json.

Test Case Reusability and Story Association
Keyword | Description |
|---|---|
@testcasekey | While importing the test result file, if you want us to reuse the test case then it is possible with @testcasekey. The mapping of test steps depends on the matchTestSteps parameter. If the matchTestSteps parameter is set as “True” (Default): Create/Reuse a test case with a summary and test steps that exactly match the automated test case uploaded through the result file. The execution results and other execution details of the test case and steps will be imported from the automation result file.
If the matchTestSteps parameter is set as “False”:
|
@storykey |
|
How Test Case Reusability works if test case key is not defined in BDD file
You can reuse a test case while importing test result file:
If Test Case Summary and Test Step Summary (for all steps) match with the automated Test Case name ( elements > name) and steps (elements > steps > name), the Test Case Key and version will be reused.
If Test Case Summary matches with the automated Test Case ( elements > name) but Test Step Summary does not match (for any of the steps), Test Case Key will be reused but a new version will be created.
If Test Case Summary does not match, a new Test Case will be created.
Import Test Results generated from.bdd file
Refer to the following table to know how to specify the Test Cases and Test Steps which will be created in QMetry as a part of the result files:
Test Case Tag | Test Step Tag |
|---|---|
Meta-info.json > methods > name | SampleTest.json > Checkpoints > message |
Supported file types : ZIP
Sample Test Result File
The following is an example of Meta-info.json.

The following is an example of SampleTest.json.

Story Association
You can link test case to any of the existing stories while importing the test result file.
An annotation is added to the BDD file to associate scenarios with a particular story in Jira.

Another option is added to the Java test file to associate scenarios with a particular story in Jira.

Test Case Reusability
You can reuse a test case while importing the test result file.
An annotation is added to the BDD file to reuse test cases in Jira.

Another option is added to the Java test file to reuse test cases in Jira.

How Test Case Reusability works if test case key is not provided in BDD file
You can reuse a test case while importing the test result file.
If the Test Case Summary and Test Step Summary (for all steps) match with the automated Test Case name ( Meta-info.json > methods > name) and steps (test_file.json > Checkpoints > message), Test Case Key and version will be reused.
If Test Case Summary matches and Test Step Summary do not match (for any of the steps) with the automated Test Case ( Meta-info.json > methods > name), Test Case Key will be reused but new version will be created.
If Test Case Summary does not match, the new test case will be created.
Execution Attachments
To add attachments in test run execution through QAF, enable capturing screenshots in QAS. After that, you will get a folder with all screenshots of automation testing.
You need to provide a zip file containing the output folder of screenshots and the JSON output folder.

The relative path of screenshots will be referred from "checkpoints > screenshots" to find the attachment at the relative path in the zip file that is being uploaded.
For example, if the screenshot path is ../img/TC_11.png, then the file name with TC_11.png will be available in img folder in the zip file at the root level.