Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Now that you created a Records Management Policy and added Test Case records, we can add Test Runs following the same approach. If In this tutorial, we will only create one Test Run Record test run record type for qTest. We will add a new Record Type to VeraRMPTutorial-part1.json.

Info

In the example below we are only showing the qTest Test Run record due to the size of the file.

Table of Contents

Create qTest Test Run Record Type

  1. Add a Record Type Name. We are going to start by defining a qTest Test Run. We will create unique Test Runs a unique test run record type for qTest and Tosca tests.:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "Vera Tutorial 2",
      "1.0.0.0"  "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "Minor": "0"
        },
        "Record Types": [
          {
            "Name": "qTest Test Run"
          }
        ]
      }
    }
  2. Define the Record Type by System and Item Type. qTest is the System and the Item Type is test-run:

    Code Block
    languagejson
            "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
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "1.0.0.0"http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "Minor": "0"
        },
        "Record Types": [
          {
            "Name": "qTest Test Run",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-run"],
                "Singular Name": "Test Run",
                "Plural Name": "Test Runs"
              }
            ]
          }
        ]
      }
    }
  3. Define the Record record Author. The Record 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. Actual Testers are the people who created qTest Execution Logs and executed Execution Log Steps:

    Code Block
                "Author":
                  {
                    "Source": "Actual Testers"
                  }

    Here is the updated Records Management Policy with above code block:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "VersionMinor": "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"
              }
          }
        ]
      }
    }
  4. 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 fieldsyou want to include in Vera by adding the Fields section to the Record Type. Add the Status, Test Case ID, Test Case Version, Target Release/Build, and Execution Type.:

    Code Block
    languagejson
            "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
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "VersionMinor": "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
              }
            ]
          }
        ]
      }
    }

...

  1. qTest Test Runs have a sub-record , type: Test Log. Add the qTest Test Log as a record type as well. Start by adding the Record Type Name under Record Types:

    Code Block
    languagejson
                    "Record Types": [
                      {
                        "Name": "qTest Test Log"
                      }
                    ]

    Here is the updated Records Management Policy with above code block:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": { Policy": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "VersionMinor": "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"
          }
        ]
      }
    }
  2. Add the qTest Test log definition with the System qTest and Item Type test-log. :

    Code Block
    languagejson
                        "Definitions": [
                          {
                            "Systems": ["qTest"],
                            "Item Types": ["test-log"],
                            "Singular Name": "Test Log",
                            "Plural Name": "Test Logs"
                          }
                        ]

    Here is the updated Records Management Policy with above code block:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "Version"ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "Minor": "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"
              }
            ]
          }
        ]
      }
    }
  3. Add the Record Fields record fields you want to include in Vera by adding the Fields section to the Record Type. 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
    languagejson
          "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
              }
          ]    

    Here is the updated Records Management Policy with above code block:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "VersionMinor": "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
              }
            ]
          }
        ]
      }
    }

...

  1. qTest Test Logs have a sub-record , type: Test Step Log. Add the qTest Test Step Log as a record type as well. Start by adding the Record Type Name under Record Types:

    Code Block
    languagejson
                    "Record Types": [
                      {
                        "Name": "qTest Test Step Log"
                      }
                    ]

    Here is the updated Records Management Policy with above code block:

    Code Block
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "VersionMinor": "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"
          }
        ]
      }
    }
  2. Add the qTest Test Step definition with the System qTest and Item Type test-step-log. :

    Code Block
    languagejson
                        "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
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "Vera Tutorial 2",
        "Schema": {
          "ID": "1.0.0.0"http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "Minor": "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"
              }
            ]
          }
        ]
      }
    }
  3. Add the Record Fields record fields you want to include in Vera by adding the Fields section to the Record Type. Add the Status, Description, Expected Result, Actual Result, Executed, and Tester:

    Code Block
    languagejson
          "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
    languagejson
    {
      "Revision": "2",
      "Records Management Policy": {
        "Version": "1.0.0.0"Vera Tutorial 2",
        "Schema": {
          "ID": "http://tx3services.com/schemas/0/0/records-management-policy.json",
          "Major": "0",
          "Minor": "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"
              }
            ],
            "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
              }
            ]           
          }
        ]
      }
    }

Now we have a Records Management Policy configured for qTest integration. The completed JSON file with qTest Test Case, Automated Test Case, and qTest Test Runs can be downloaded here:

View file
nameVeraRMPTutorial-part2.json

Info

Next we will create Approval Routes for the records defined in the Records Management Policy, Add Approval

...

Template to Approval Policy