Leverage Re-usability in your Tests

Reusability is a key factor in efficient test management. SimplifyQA allows you to create reusable functions that can be applied across multiple test cases, reducing redundancy and improving test case maintainability. With the ability to save and close or save and replace, managing reusable test steps becomes seamless.

Why Reusability matters in Testing?

  • Reduces Effort: Avoid writing repetitive test steps for similar scenarios.

  • Improves Consistency: Ensures standardised test execution.

  • Enhances Maintainability: Update once and reflect changes across multiple test cases.

Creating Functions in SimplifyQA

  1. Navigate to Function Library

  • Navigate to the Test Management section in SimplifyQA from the left panel.

  • Click on the Functions tab to view all the existing functions and to manage reusable test steps.

  1. Create a New Function: Click on 'Create Function' to define a reusable function, select the type of function and application type from the dropdown.

  • Provide a Name and Description to identify its purpose.

  1. Add test steps that will be part of the function

  2. Save the function

Reusing Functions in Test Cases

Once a function is created, it can be used in any test case to avoid redundancy.

How to Add a Function to a Test Case?

  1. Open a Test Case where you want to reuse the function.

  2. Click on '+ Step' dropdown and select 'Function'.

  1. Choose the required function from the list.

  1. The function will be inserted into the test case.

Managing and Updating Functions

Editing a Function:

  • Go to the Functions step in the test case or select the function by navigating to 'Function' library to modify.

  • Update steps as needed and Save.

Note: Any test case using this function will automatically reflect these changes.

Replacing existing steps in a test case with a function

  • Open the test case and select the steps to replace by selecting the checkbox.

  • Click on the 'Save Function' option.

  • Provide an appropriate name and save using one of the two available options:

    • Save and Close: Saves the function and closes the popup.

    • Save and Replace: Saves the function and allows replacing selected test steps with this function.

Benefits of using Functions in SimplifyQA

  • Saves Time – Write once, reuse it multiple times.

  • Ensures Consistency – Standardised execution across all test cases.

  • Easy Maintenance – Update centrally and reflect changes everywhere.

  • Better Organisation – Keep test cases modular and manageable.

Frequently Asked Questions

Can I use a function across different projects?

No, functions are currently limited to the project they were created in. However, you can copy the functions to other projects and use the same.

What happens if I update a function?

Any test case using the function will automatically reflect the updates.

Why is the 'Save and Replace' option not enabled for me?

The 'Save and Replace' option is disabled if the steps checkbox is not selected in sequence but instead skips levels. To enable it, ensure that the steps are selected sequentially without skipping any levels.

Last updated