Versions Compared

Key

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

...

  1. 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
    languagejson
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest CaseTest 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-caserun"],
                "Singular Name": "Test CaseRun",
                "Plural Name": "Test CasesRuns"
              }
            ]

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

    Code Block
    languagejson
    {
      "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"
              }
            ]
          }
        ]
      }
    }
  3. 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
    languagejson
    {
      "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
    languagejson
                "Constraints": [
                  {
                    "Type": "Field Is Not Equal",
                    "Name": "Automation",
                    "Value": "Tosca"
                  }
                ] 
    Code Block
    languagejson
    { "Records Management Policy": { "Version": "1.0.0.0", "Record Types": [ { "Name": "qTest Test Case", "Definitions": [ {
  4. "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
    languagejson
             "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
    languagejson
            "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
    languagejson
    {
      "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

  1. 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
    languagejson
                    "Record Types": [
                      {
                        "Name": "qTest Test Step"
                      }
                    ]

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

    Code Block
    languagejson
    {
      "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"
          }
        ]
      }
    }
  2. Add the qTest Test Step definition with the System qTest and Item Type test-step.

    Code Block
    languagejson
                        "Definitions": [
                          {
                            "Systems": ["qTest"],
                            "Item Types": ["test-step"],
                            "Singular Name": "Test Step",
                            "Plural Name": "Test Steps"
                          }
                        ]
    Code Block
    languagejson
    {
      "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"
              }
            ]
          }
        ]
      }
    }
  3. 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
    languagejson
            "Fields": [
              {
                "Name": "Description",
                "Is Data": true
              },
              {
                "Name": "Expected Result",
                "Is Data": true
              }
            ]
    Code Block
    languagejson
    {
      "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
              }
            ]
          }
        ]
      }
    }