Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 do will only create on Test Run Record for qTest. We will add a new Record Type to VeraRMPTutorial.json.

Create qTest Test Run Record Type

  1. Add a Record Type Name. We are going to start by defining a qTest Test Case. We will create unique Test Cases for qTest and Tosca tests..

    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Case Test"
          }
        ]
      }
    }
  2. Define the Record Type by System and Item Type. qTest is the System and the Item Type is test-case

            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ]
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Test Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ]
          }
        ]
      }
    }
  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.

                "Author":
                  {
                    "Source": "Route Owner"
                  }
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Test Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "Author": 
              {
                "Source": "Route Owner"
              }
          }
        ]
      }
    }
  4. 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.

                "Constraints": [
                  {
                    "Type": "Field Is Not Equal",
                    "Name": "Automation",
                    "Value": "Tosca"
                  }
                ] 
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Test Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "Author": 
              {
                "Source": "Route Owner"
              },
            "Constraints": [
              {
                "Type": "Field Is Not Equal",
                "Name": "Automation",
                "Value": "Tosca"
              }
            ]
          }
        ]
      }
    }
  5. Add the Record Fields you want to include in Vera by adding Fields to Record Type.

            "Fields": [
              {
                "Name": "Status",
                "Is Data": true
              },
              {
                "Name": "Description",
                "Is Data": true
              },
              {
                "Name": "Precondition",
                "Is Data": true
              }
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Test Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "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
              }
            ]
          }
        ]
      }
    }

Create qTest Test Step Record Type

  1. qTest Test Cases 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"
                      }
                    ]
    {
      "Records Management Policy": {
        "Version": "1.0.0.0",
        "Record Types": [
          {
            "Name": "qTest Test Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "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"
          }
        ]
      }
    }
  2. 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 Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "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 record defined for any qTest Test Case 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 Case",
            "Definitions": [
              {
                "Systems": ["qTest"],
                "Item Types": ["test-case"],
                "Singular Name": "Test Case",
                "Plural Name": "Test Cases"
              }
            ],
            "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
              }
            ]
          }
        ]
      }
    }
  • No labels