Now that you created a Records Management Policy and added Test Case records we can add Test Runs following the same approach. If this tutorial, we will only create one Test Run Record for qTest. We will add a new Record Type to VeraRMPTutorial.json. In the example below we are only showing the qTest Test Run record due to the size of the file.
Create qTest Test Run Record Type
Add a Record Type Name. We are going to start by defining a qTest Test Run. We will create unique Test Runs for qTest and Tosca tests.
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run" } ] } }
Define the Record Type by System and Item Type. qTest is the System and the Item Type is test-run
"Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ]
Here is the updated Records Management Policy with above code block:
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ] } ] } }
Define the Record Author. The Record Author can be the Route Owner (the person who routed the record for approval) by a record field value or by the Actual Testers.
"Author": { "Source": "Actual Testers" }
Here is the updated Records Management Policy with above code block:
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "Actual Testers" } } ] } }
We are not adding any Constraints to the qTest Test Run record because all qTest Test Runs will be defined as qTest Test Runs in Vera. Add the Record Fields you want to include in Vera by adding Fields to Record Type. Add the Status, Test Case ID, Test Case Version, Target Release/Build, Execution Type,
"Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }
Here is the updated Records Management Policy with above code block:
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "Actual Testers" }, "Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true } ] } ] } }
Create qTest Test Step Record Type
qTest Test Runs have a sub-record, Test Steps. Add the qTest Test Steps as a record as well. Start by adding the Record Type Name under Record Types
"Record Types": [ { "Name": "qTest Test Step" } ]
Here is the updated Records Management Policy with above code block:
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "Actual Testers" }, "Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true } ] } ] } }
Add the qTest Test Step definition with the System qTest and Item Type test-step.
"Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step"], "Singular Name": "Test Step", "Plural Name": "Test Steps" } ]
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-Run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "Route Owner" }, "Constraints": [ { "Type": "Field Is Not Equal", "Name": "Automation", "Value": "Tosca" } ], "Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Description", "Is Data": true }, { "Name": "Precondition", "Is Data": true } ] }, { "Name": "qTest Test Step", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step"], "Singular Name": "Test Step", "Plural Name": "Test Steps" } ] } ] } }
Add the Record Fields you want to include in Vera by adding Fields to Record Type. Now we have a complete qTest Test Run record defined for any qTest Test Run that does not have a Tosca Automation Flag set.
"Fields": [ { "Name": "Description", "Is Data": true }, { "Name": "Expected Result", "Is Data": true } ]
{ "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-Run"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "Route Owner" }, "Constraints": [ { "Type": "Field Is Not Equal", "Name": "Automation", "Value": "Tosca" } ], "Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Description", "Is Data": true }, { "Name": "Precondition", "Is Data": true } ] }, { "Name": "qTest Test Step", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step"], "Singular Name": "Test Step", "Plural Name": "Test Steps" } ], "Fields": [ { "Name": "Description", "Is Data": true }, { "Name": "Expected Result", "Is Data": true } ] } ] } }