Overview

Learn how to ensure specific scenarios do not change even when you are updating your model.  What if we want to test an Airplane Ticket Reservation scenario, but need to edit it after completing some execution?

Let's assume this is the initial model state:



On the Scenarios screen, click the “Freeze these Scenarios” button located in the top right, just above your first created test.

You will be faced with the following warning message, reminding you that freezing your test cases should only be done when there is a valid reason to do so.

If there is a valid reason to freeze the tests and you do wish to continue, click the “Freeze” button.

Once you click “Freeze,” your existing test cases will be “frozen” as Forced Interactions.

Here’s what that looks like now. All of our tests have been “frozen” as the combinations of forced parameter values.

How is this useful?

Let’s add another parameter, “Amount of Luggage”. At this point, we may have already run some of these scenarios, so we don’t want to have to re-do any of them, even if Xray Test Case Designer could reduce the total number. By freezing the previous 11 tests, Xray Test Case Designer will keep them as they are, and simply add a couple scenarios to pair all of the new values – the numbers of luggage – with every other value.


Here are the new tests. Note the initial 11 scenarios are still present. We’ve simply added a few more.


Here’s what the differences could have looked like if we had not frozen our initial 11 tests. 

Notice how Test Case 3 contained the following while frozen:

  • USA
  • India
  • Coach
  • Selected
  • 1
  • More than 1
  • 2 or more

If we unfroze, Test Case 3 could contain the following:

  • USA
  • India
  • First
  • Selected
  • 1
  • 0
  • 2 or more

Therefore, we would have needed to re-run our initial scenarios. If we still wanted to unfreeze, we can do so by navigating to the Forced Interactions page and simply clicking the “Unfreeze” button in the top left.