web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Using Derived Test Cases in RSAT

Henrik Larsen Profile Picture Henrik Larsen 646

To provide the best possible test coverage and to test breaking scenarios, we need to test the same process with multiple variations on data – also data that will deliberately break the test case.

Luckily, in RSAT we do not need to record a new test case every time we would like to add a new test data scenario.

Instead, we can leverage the derived test case feature.

A derived test case in RSAT is essentially a copy of an existing test case with a separate parameters file holding the test data variation.

The following screenshot shows a test plan with three test cases loaded into RSAT. As you can see, test case #4027 has the Derived flag ticked since it is a derived test case from test case #4018.

Test plan with a derived test case in RSAT

Creating a Derived Test Case

To create a new derived test case, you select the original test case and click on New / Create derived test case in the menu at the top of the screen.

Test plan with newly added derived test case

As the above screenshots shows, a new test case has been created from the original test case (#4018) named #4028.

Clicking on Parameters in the menu opens the Excel file holding the test case parameters as shown below.

Derived test case parameters (before change)

The warehouse used in the original test is “11”. Instead, we would like to test how the system reacts, if we select an illegal value (“33”) in the warehouse field as shown in the new scenario below.

Derived test case parameters (after change)

In this scenario we are providing the system with an invalid warehouse (“33”) for site (“1”) and therefore the test case should fail.

The derived test case can now be executed by clicking on Run in the menu.

Test case failed – as expected

As you can see in the above screenshot, the test did indeed fail.

To investigate further, click on Open / Open recent test runs the menu. This brings up the details of the test case run as shown below.

Test case results are captured in Azure DevOps

As you can see, the error message clearly indicates that the test case attempted to use an illegal value in the warehouse field.

As you close the RSAT tool it will warn you that not all data is saved to Azure DevOps. This is because a derived test case is created in RSAT locally and not Azure DevOps and therefore you need to upload the artefacts to Azure DevOps.

Remember to upload new artefacts to Azure DevOps

Conclusion

Derived test cases is an efficient and powerful way to expand the test coverage for a given process across multiple data scenarios and will help ensure that the system is able to cope with intended as well as unintended use cases.


This was originally posted here.

Comments

*This post is locked for comments