...
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.
Code Block language json { "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
Code Block language json "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:
Code Block language json { "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.
Code Block "Author": { "Source": "Actual Testers" }
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 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, and Execution Type, .
Code Block language json "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:
Code Block language json { "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
...
Log Record Type
qTest Test Runs have a sub-record, Test StepsLog. Add the qTest Test Steps Log as a record as well. Start by adding the Record Type Name under Record Types
Code Block language json "Record Types": [ { "Name": "qTest Test StepLog" } ]
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 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 } ] }, { "Name": "qTest Test Log" } ] } }
Add the qTest Test Step log definition with the System qTest and Item Type test-steplog.
Code Block language json "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-steplog"], "Singular Name": "Test StepLog", "Plural Name": "Test StepsLogs" } ]
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 Run", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-Runrun"], "Singular Name": "Test Run", "Plural Name": "Test Runs" } ], "Author": { "Source": "RouteActual OwnerTesters" }, "ConstraintsFields": [ { "TypeName": "Field Is Not EqualStatus", "NameIs Data": "Automation", true }, "Value": "Tosca" { } "Name": "Test Case ],ID", "FieldsIs 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 StepLog", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-steplog"], "Singular Name": "Test StepLog", "Plural Name": "Test StepsLogs" } ] } ] } }
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.Add the Test Case Name, Test Case ID, Test Case Version, Status, Tester, Target Release/Build, Execution Type, Executed Start, Executed End and Execution Log Notes
Code Block language json "Fields": [ { "Name": "DescriptionTest Case Name", "Is Data": true }, { "Name": "ExpectedTest Case ResultID", "Is Data": true }, ]
Code Block language json { { "Records Management Policy": { "VersionName": "1.0.0.0Test Case Version", "Record Types": [ "Is Data": true { "Name": "qTest Test Run", }, { "Definitions": [ {"Name": "Status", "SystemsIs Data": ["qTest"], true }, "Item Types": ["test-Run"], { "Singular Name": "Test RunTester", "PluralIs NameData": "Test Runs" true }, } { ], "Name": "Author": Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }, { "Name": "Executed Start", "Is Data": true }, { "Name": "Executed End", "Is Data": true }, { "Name": "Execution Log Notes", "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 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 } ] }, { "Name": "qTest Test Log", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-log"], "Singular Name": "Test Log", "Plural Name": "Test Logs" } ], "Fields": [ { "Name": "Test Case Name", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Status", "Is Data": true }, { "Name": "Tester", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }, { "Name": "Executed Start", "Is Data": true }, { "Name": "Executed End", "Is Data": true }, { "Name": "Execution Log Notes", "Is Data": true } ] } ] } }
Create qTest Test Step Log Record Type
qTest Test Logs have a sub-record, Test Step Log. Add the qTest Test Step Log 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 Log" } ]
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 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 } ] }, { "Name": "qTest Test Log", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-log"], "Singular Name": "Test Log", "Plural Name": "Test Logs" } ], "Fields": [ { "Name": "Test Case Name", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Status", "Is Data": true }, { "Name": "Tester", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }, { "Name": "Executed Start", "Is Data": true }, { "Name": "Executed End", "Is Data": true }, { "Name": "Execution Log Notes", "Is Data": true } ] }, { "Name": "qTest Test Step Log" } ] } }
Add the qTest Test Step definition with the System qTest and Item Type test-step-log.
Code Block language json "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step-log"], "Singular Name": "Test Step Log", "Plural Name": "Test Step Logs" } ]
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 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 } ] }, { "Name": "qTest Test Log", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-log"], "Singular Name": "Test Log", "Plural Name": "Test Logs" } ], "Fields": [ { "Name": "Test Case Name", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Status", "Is Data": true }, { "Name": "Tester", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }, { "Name": "Executed Start", "Is Data": true }, { "Name": "Executed End", "Is Data": true }, { "Name": "Execution Log Notes", "Is Data": true } ] }, { "Name": "qTest Test Step Log", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-step-log"], "Singular Name": "Test Step Log", "Plural Name": "Test Step Logs" } ] } ] } }
Add the Record Fields you want to include in Vera by adding Fields to Record Type. Add the Status, Description, Expected Result, Actual Result, Executed and Tester
Code Block language json "Fields": [ { "Name": "Status", "Is Data": true }, { "Name": "Description", "Is Data": true }, { "Name": "Expected Result", "Is Data": true }, { "Name": "Actual Result", "Is Data": true }, { "Name": "Executed", "Is Data": true }, { "Name": "Tester", "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 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 } ] }, { "Name": "qTest Test Log", "Definitions": [ { "Systems": ["qTest"], "Item Types": ["test-log"], "Singular Name": "Test Log", "Plural Name": "Test Logs" } ], "Fields": [ { "Name": "Test Case Name", "Is Data": true }, { "Name": "Test Case ID", "Is Data": true }, { "Name": "Test Case Version", "Is Data": true }, { "Name": "Status", "Is Data": true }, { "Name": "Tester", "Is Data": true }, { "Name": "Target Release/Build", "Is Data": true }, { "Name": "Execution Type", "Is Data": true }, { "Name": "Executed Start", "Is Data": true }, { "Name": "Executed End", "Is Data": true }, { "SourceName": "RouteExecution Log OwnerNotes", }, "Is Data": true "Constraints": [ } { ] "Type": "Field Is Not Equal",}, { "Name": "Automation",qTest Test Step Log", "ValueDefinitions": "Tosca"[ } { ], "FieldsSystems": ["qTest"], { "Name"Item Types": ["Statustest-step-log"], "IsSingular DataName": true"Test Step Log", }, "Plural Name": "Test Step Logs" { } "Name": "Description", ], "Is DataFields": true[ }, { "Name": "PreconditionStatus", "Is Data": true }, { ] }, "Name": "Description", { "NameIs Data": "qTest Test Step",true "Definitions": [ }, { "SystemsName": ["qTestExpected Result"], "ItemIs TypesData": ["test-step"], true }, "Singular Name": "Test Step",{ "Plural Name": "TestActual Steps"Result", "Is Data": true } ], "Fields": [ }, { "Name": "DescriptionExecuted", "Is Data": true }, { "Name": "Expected ResultTester", "Is Data": true } ] } ] } }