Versions Compared

Key

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

...

On the Rules ->Constraints screen, you will need to click on two red X’s. Hover over the first Value of the Invalid Pair and click on the red X that appears

Image RemovedImage Added


Find the second Value that can never appear together with the first one, hover over it, and click on the red X to create your “Invalid Pair”

Image RemovedImage Added


As you enter your Constraints, you will see them listed to the left:

Image AddedImage Removed

After you enter these two Invalid Pairs, clicking on the “Scenarios” button will create a completely new set of test cases that excludes those two pairs of Values (and only those two pairs of Values). Each test with ‘OS X’ as the operating system will have a browser other than IE.

...

  • Imagine you had an application that asked, “Would you like to add a hotel to your travel reservation?” Any scenarios with “Do Not Add a hotel” would require many, many different Invalid Constraints between things like “Do Not Add a Hotel” and “Hotel Chain Preference = X”. For situations like those, the Bound Constraint feature will help you accomplish your constraint handling much faster.
  • If you have more than 10 or so Invalid Constraints (or Bound Constraints) in your plan, you might find that it is faster to export your plan into Excel and document your paired values in Excel. If so, make sure to both (1) add multiple paired values in Xray Enterprise Test Case Designer before you export into Excel (so you can copy and paste the Xray Enterprise Test Case Designer formatting for Invalid Constraints and/or Bound Constraints), and (2) ensure that you use the exact spelling of Values (e.g., ‘cutting and pasting’ Values will usually be safer than typing)

...

Consider these parameters & values:

Image RemovedImage Added


You will have the following issue when you click on the “Scenarios” button:

...

When you add a Bound Pair, Xray Enterprise Test Case Designer will constrain the first value chosen against all the other values in the parameter of the second value chosen. In the example above, creating a bound constraint of ‘Do Not Add Hotel’ and ‘Hotel Chain Preference’ = ‘Not Applicable’ means you are really invalidating these options:

...

We would like to exclude combinations like ‘Breed of Animal = Shiba Inu’ and ‘Type of Animal = Cat’ from the generated scenarios. We have 2 breeds for each of the first 2 types of animals. Therefore, we can set up 4 one-way bound pairs from "Breed of Animal" to "Type of Animal":

Image RemovedImage Added

You can check your logic by reading the statement at the bottom of the dialog.

...


First, navigate to Rules→ Constraints. Next, click the toggle to change to Advanced Mode – that is the only way to implement "Skip" constraints:

Image RemovedImage Added

Once in Advanced Mode, we use the following syntax for "Skip" constraints:

...

The final component of "Skip" constraints is the ‘skip to end’ capability. In this case, we can tell Xray Enterprise Test Case Designer that for some parameters values, skip all parameters listed later (below) on the “Parameters” page.

...