...
Add a Record Type Name. We are going to start by defining a qTest Test CaseRun. We will create unique Test Cases Runs for qTest and Tosca tests..
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest CaseTest Run" } ] } }
Define the Record Type by System and Item Type. qTest is the System and the Item Type is test-run
Code Block language json "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caserun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ]
Here is the updated Records Management Policy with above code block:
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caserun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ] } ] } }
Define the Record Author. The Record Author can be the Route Owner (the person who routed the record for approval) or by a record field value or by the Actual Testers.
Code Block "Author": { "Source": "RouteActual OwnerTesters" }
Here is the updated Records Management Policy with above code block:
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caserun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ], "Author": { "Source": "RouteActual OwnerTesters" } } ] } }
Add a Constraint to definition to create unique Record Types. Identify any qTest Test Case that does not have Tosca automation flag as a qTest Test Case using the Field Is Not Equal constraint.
Code Block language json "Constraints": [ { "Type": "Field Is Not Equal", "Name": "Automation", "Value": "Tosca" } ]
Code Block { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Case", "Definitions": [ {language json - "Systems": ["qTest"],
"Item Types": ["test-case"],
"Singular Name": "Test Case",
"Plural Name": "Test Cases"
}
],
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,
Code Block language json "AuthorFields": [ { "SourceName": "Route Owner" }, Status", "Constraints": [ { "Type": "Field Is Not EqualData",: true "Name": "Automation", }, "Value": "Tosca" { } "Name": "Test Case ID", ] } ]"Is Data": true } }
Add the Record Fields you want to include in Vera by adding Fields to Record Type.
Code Block language json "Fields": [ }, { "Name": "Status": "Test Case Version", "Is Data": true }, { "Name": "DescriptionTarget Release/Build", "Is Data": true }, { "Name": "PreconditionExecution Type", "Is Data": true }
Here is the updated Records Management Policy with above code block:
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caserun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ], "Author": { "Source": "RouteActual OwnerTesters" }, "ConstraintsFields": [ { "TypeName": "Field Is Not Equal", "Status", "Is Data": true }, "Name": "Automation", { "ValueName": "Tosca"Test Case ID", } "Is Data": true ], "Fields": [}, { "Name": "StatusTest Case Version", "Is Data": true }, { "Name": "DescriptionTarget Release/Build", "Is Data": true }, { "Name": "PreconditionExecution Type", "Is Data": true } ] } ] } }
Create qTest Test Step Record Type
qTest Test Cases 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
Code Block language json "Record Types": [ { "Name": "qTest Test Step" } ]
Here is the updated Records Management Policy with above code block:
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caserun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ], "Author": { "Source": "RouteActual OwnerTesters" }, "ConstraintsFields": [ { "TypeName": "Field Is Not EqualStatus", "NameIs Data": "Automation", true }, "Value": "Tosca" { } "Name": "Test Case ]ID", "Fields "Is Data": [ true }, { "Name": "StatusTest Case Version", "Is Data": true }, { "Name": "DescriptionTarget Release/Build", "Is Data": true }, { "Name": "PreconditionExecution Type", "Is Data": true } ] }, { "Name": "qTest Test Step" } ] } }
Add the qTest Test Step definition with the System qTest and Item Type test-step.
Code Block language json "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step"], "Singular Name": "Test Step", "Plural Name": "Test Steps" } ]
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caseRun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ], "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 Case Run record defined for any qTest Test Case Run that does not have a Tosca Automation Flag set.
Code Block language json "Fields": [ { "Name": "Description", "Is Data": true }, { "Name": "Expected Result", "Is Data": true } ]
Code Block language json { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test CaseRun", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-caseRun"], "Singular Name": "Test CaseRun", "Plural Name": "Test CasesRuns" } ], "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 } ] } ] } }