Modular Test Design with Call to Test

One effective way to boost reusability for large-scale test-cases libraries is to adopt a modular test-case design approach. Instead of duplicating or copying and pasting test cases or steps, this approach emphasizes that you break them down them into small, reusable pieces and then recombine the tests to achieve larger end-to-end testing scenarios.

While modularisation is a bit more complex, when used appropriately, it can lead to even greater testing efficiencies and results.

The most valuable test cases are those which are broadly applicable and reusable across different cycles and releases. Test engineers should devote serious thought to how to design test cases to be as specific as they need to be but also generic enough to be reused in different situations with different data inputs.

Testers can break down test cases into logical, manageable functions or modules. These modules are isolated to create independent tests that can then be recombined or reused to make larger test cases to achieve complex end-to-end testing scenarios. Zephyr Scale gives you the ability to nest child modules under main test cases, even with multiple levels. Each set of steps will be unfolded during the test execution (with the parameter replaced).

To begin a modular strategy, follow these steps:

  1. Understand the workflow of the application before you start to identify which modules need to be created.

  2. Map out which steps are repeated on a page or across multiple pages.

  3. Break down the repeated steps into bite-sized reusable test cases.

  4. Create the main test case that calls these individual test cases.

64107e2fd2cf2.png

Reusing Test Cases with Call to Test

  • From the Test Script tab of any test case, click Call to Test to reuse existing modular test cases.

64107e3154384.png
  • Browse and select the desired test cases, then click Add.

64107e32c3629.png
  • The modular test cases appear in a special step type called Call to Test.

  • Click Show Steps to view the steps.

64107e344dcf3.png
  • The reusable steps appear in the expanded step view.

64107e35dad5b.png
Publication date: