QA Touch supports Testrun Import using 2 formats (JSON / XLS). The Below steps summarise How to import Testrun using .json file.
In the "Steps" object - Specify Step and Expected result details here. Multiple steps can be nested within this object. On each steps there are 4 objects
Examples :
"Steps":{
"1" : {
"Steps": "1. Open the browser and enter the url",
"Expected_result": "1. The site should be acessible",
"Step Assignee": "adminuser2@gmail.com",
"Step Status": "Untested"
},
"2" : {
"Steps": "2. The header menu should open",
"Expected_result": "2. The header menu should open",
"Step Assignee": "adminuser2@gmail.com",
"Step Status": "Untested"
}
},
In the "Test Data" object - write additional information required for the Test Case here. It is not a mandatory field; for empty Test data use "Test Data": "
In this "Estimate" object - Write the estimated timeline here. It is not a mandatory field; for empty Estimate use "Estimate": "".
In this “Tags” object - mention Tags of Test case. To mention multiple tags separate them with a comma (,) Ex: "Tags": "Sanity, Regression". It is not a mandatory field; for empty Tags use "Tags": "".
In this "Description" object - Write the Test case description here. It is not a mandatory field; for empty Description use "Description": "".
In this "Type" object - Specify Test case type(ex: Acceptance, Accessibility). It is not a mandatory field; for empty Type use "Type": "".
In this “Reference” - specify the Reference of the Test Case here like adding reference links and text etc. It is not a mandatory field; for empty Reference use "Reference": "".
In this "Precondition" - Specify the Precondition of the Test Case. It is not a mandatory field; for empty Precondition use "Precondition": "".
In this “Test Suite” - mention the Test Suite of the Test case. To mention multiple Test Suite separate them with a comma (,) It is not a mandatory field; for an empty Test Suite use "Test Suite": "".
In this "Priority" object - Specify the Test case priority(ex: Critical, High, Low). It is not a mandatory field; for empty Priority use "Priority": "".
In this “Mode” object - specify the Mode of the Test Case “Manual” or “Automation”. It is not a mandatory field; for empty Mode use "Mode": "".
The JSON results file must comply to the following JSON Schema:
Importing a Single Test Case to a Test Run In this example, we are importing a single test case with test run details of the test case. Please use it for reference.
{
"Module_name": "Home Page",
"Test Case Title": "Verify the logo is clickable",
"Test Case Assignee": "adminuser2@gmail.com",
"Test Case Status": "Untested",
"Steps":{
"1" : {
"Steps": "1. Open the browser and enter the url",
"Expected_result": "1. The site should be acessible",
"Step Assignee": "adminuser2@gmail.com",
"Step Status": "Untested"
},
},
"Test Data": "",
"Estimate": 20,
"Tags": "Sanity, Regression",
"Description": "The Site Should be accessible",
"Type": "Acceptance",
"Reference": "",
"Precondition": "testing",
"Test Suite": "Regression Suite, Smoke Suite",
"Priority": "Critical",
"Mode": "Manual"
}