Test using QMetry Automation Framework

Introduction

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, test developer does not need to worry about common tasks such as thread safe browser session for running test in parallel, reporting or to incorporate result with test management tools. The tests run can be configured through standard testing configuration files, the test run filters and behavior can be changed within the config File.


Here is how you can specify the Test Cases and Test Steps which will be created in QMetry as a part of the result files -

Test Case TagTest Step Tag
methods > metadata > Name PropertycheckPoints


Supported file types : ZIP

Sample Test Result File

Click here to download a sample file.


Meta-info.json


Test Case Reusability

While importing test result file, if you want to reuse Test Case, here are the annotations that need to be provided in the feature file.

KeywordDescription
testEntityKey
  • If the executed test steps match with the steps of latest version of existing test case, then the existing test case (i.e. testEntityKey) will be updated.
  • If the executed test steps do not match with the steps of latest version of existing test case, then a new version of the test case (i.e. testEntityKey) will be created.
  • In the absence of the defined test case key (i.e. testEntityKey), a new test case will be created.

Note: In scenarios where a manual test case is reused, the test case result will be updated. The test case version will increase by 1 due to changes in test steps. This particular test case version will be automated test case. The earlier version of the test case will remain manual.




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



Import Execution Attachments

Customer is importing a TestNg result file into QMetry by scheduling automation for test suite using Maven framework. During this test case creation and import of results, they also want to attach screenshot/attachments for the failed results during the automation. The attachments will be shown at test case level on the execution screen.

To add attachments in test run execution through QAF, enable capturing screenshots in QAS. After that you will get folder with all screenshots of automation testing.

Provide zip file containing that output folder of screenshots and 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 should be available in img folder in the zip file at root level.


Sample Project: https://github.com/qmetry/qas-java-example