Versions Compared

Key

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

Table of Contents
maxLevel4

...

UI Expand
titleTable of Contents

Table of Contents

Introduction

This section explains how to use the Forced Interactions feature of Xray Test Case Designer.

Forced Interactions are a method to train the model about specific business rules that must always be considered on the generated testsTests, as long as the required values and outcomes.  
With Forced Interactions, the system will always make sure these interactions are added to your model output.

Forced Interactions enhance the precision, coverage, and control over Test Scenarios, making the testing process more robust and efficient.

Operations

When to Use Forced Interactions

If you need Xray Test Case Designer tests Tests to include a particular test Test for a required business rule, for example:

...

In our example, you must have these specific 4 Values four values included together in a single testTest:

  • Customer The customer status must be Regular.
  • Loan to value ratio must be 90%.
  • Loan amount must be Large.
  • And the The property needs to be In a Flood Zone.
Info

Go to the Forced Interactions screen under Rules (Figure 3) and add

...

your Scenario.

...

Using Forced Interactions

small
UI Steps
UI Step

Go to My Test Models (Figure 1 - 1) and enter a Test Model (Figure 1 - 2).

Figure 1 - Test modelImage Added

Figure 1 - Test model

UI Step

You will enter the Parameters screen (Figure 2).

Figure 2 - ParameterImage Added

Figure 2 - Parameter

size

UI Step

Click Rules (Figure 3 - 8) and then Forced Interactions (Figure 3 - 1).

Figure 3 - ForcedImage Added

Figure 3 - Forced

UI Step

Click the respective fields to fill in the Name (Optional) Type the name and/or number Description of your forced scenario

UI Step

(Optional) Type its expected resultScenario (Figure 3 - 4; 5 - optional) and the Expected Outcome (Figure 3 - 7; optional).

UI Step

Select Click the Forced Parameters Values (Figure 3 - 6) and select only the Values values you need to trigger your business requirement, then save.

I.e.

. A modal will open (Figure 4) for that.

Figure 4 - ModalImage Added

Figure 4 - Modal


For example, if our

plan

model has 10 parameters, but the business rule only needs

4

four to trigger, we include just those

4 in the forced interaction.Image Removed

four in the Forced Interaction.

Once you're finished, click Save (Figure 4 - 1).

UI Step

When you create your

...

Tests, your

...

Forced Scenario will appear in a newly generated set of

...

Tests (Figure 5).

Image Removed

Keep the following usage tips in mind when using Forced Interactions

Figure 5 - TestsImage Added

Figure 5 - Tests

Info
Info
title
  • This feature is not just for “official requirements.” Consider including other critical
ideas
  • elements in your Xray Test Case Designer-generated suite,
like
  • such as a forced scenario that contains the most common
Value
  • value for each
Parameter
  • parameter (i.e.,
“Happy Path”
  • the Happy Path).
  • As
shown
  • noted above, you don’t need to specify every
Value
  • value. In fact, it’s better
if you
  • to only force the
Values
  • values needed to trigger the requirement
/
  • or business rule.
That way, the most variation is possible
  • This allows for the greatest variation in your Xray Test Case Designer-generated
tests
  • Tests.
  • Keep the concept
of “Expected Results”
  • of Expected Results clearly separated from ordinary parameters and values in your mind
from ordinary Parameters and Values
  • . Treat them differently
from each other as you enter your plans
  • when entering your test models. Typically,
do
  • you should not enter Expected Result values in the
“Parameters”
you should
the
Result
“Forced Interactions”
“Scripts” screens. You can read more in the "How to Handle Expected Results" article from the Test Design Principles section
that
  • , many combinations will automatically appear in your Xray Test Case Designer-generated models without
you needing to do anything special. If you have
  • requiring any special action. For example, if a business rule
that
  • only requires two
Values
  • values to appear together,
for example,
  • that requirement will already be
satisfied automatically whenever
  • met when you create a 2-way (
“pairwise”
  • pairwise) set of tests.
If you’re creating a 2-way set of tests, you
  • You would only need to use this
special
  • feature when
you’re trying to ensure that 3
  • ensuring that three or more specific
Values get
  • values are tested together in a single test case.

Import Forced Interactions

You are able to import forced interactions, that allows you to upload data-driven scenarios. Once you navigate to the screen, you should see the icon on the left side.
Image Removed

Clicking it opens the dialog similar to the model import.

...

can import Forced Interactions, which allows you to upload data-driven Scenarios.

UI Steps
UI Step

Go to My Test Models (Figure 6 - 1) and enter a Test Model (Figure 6 - 2).

Figure 6 - Test modelImage Added

Figure 6 - Test model

UI Step

You will enter the Parameters screen (Figure 7).

Click Rules (Figure 7 - 8) and then Forced Interactions (Figure 7 - 1).

Figure 7 - InteractionsImage Added

Figure 7 - Interactions

UI Step

Click the Import button (Figure 7 - 2).

A modal will open (Figure 8). Click the Choose file (Figure 8 - 1) to select the file you wish to import, and then click Import (Figure 8 - 2).

Figure 8 - ModalImage Added

Figure 8 - Modal


Info

We recommend using the Excel template (you can download it from the link at the top of the dialog - Figure 8 - 3) and pasting your

...

Scenarios in the table format to

...

cell D1 (given you have parameter names).


Expand
titleSupport/Troubleshooting

If you have questions or technical issues, please contact the Support team via the Customer Portal (Jira service management) or send us a message using the in-app chat.