Create and Utilise Parameters in your Test Case

Parameters in SimplifyQA enable dynamic and reusable test cases by replacing hardcoded values with flexible inputs. This enhances test efficiency, reduces maintenance efforts, and ensures adaptability across different data sets.

Creating Parameters

There are two ways to create parameters in SimplifyQA:

Creating a Parameter from the Parameter Module in Test Management

  1. Navigate to Test Management > Parameter Module

  1. Click on '+ Parameter', then enter a name and select a parameter type (both mandatory fields).

  1. Choose the appropriate scope:

    1. Local Parameters: Used within a specific test case.

    2. Global Parameters: Available across multiple test cases.

    3. Runtime Parameters: Used for dynamic values generated during execution.

  1. Based on the selected type, additional optional fields will be displayed:

    1. Local Parameters: Assign it to a module, define minimum and maximum length, set a prefix and suffix, and add a description.

    2. Runtime Parameters: Similar to local parameters, but also allows selecting a Unique ID type.

    3. Global Parameters: Requires an additional mandatory field – the default value.

  2. Click Save to store the parameter for future use.

Creating a Parameter while Editing a Test Case

  1. Open a test case and go to the Test Steps section.

  2. Click on a step, then click the "+" icon in the parameter field.

  1. Fill in the required fields, including the parameter name, type, and other relevant details.

  2. Click Save to add the parameter to the test case.

By defining and using parameters effectively, you can create flexible, data-driven test cases that are easier to maintain and scale.

Utilising Parameters in a Test Case

Once a parameter is created, you can use it in test steps and formulas.

Using Parameters in Test Steps

  • Click on the parameter field in the test steps to view a dropdown of available parameters. You can either select a parameter from the dropdown or start typing its name and choose it from the suggestions.

Using Parameters in Formulas

  • You can also call parameters in the Test Data module of a test case while adding a formula. To do so, call the equation and add double curly brackets ( {{ ) inside the Parentheses. A dropdown will appear showing all available parameters, including Local, Global, and Runtime parameters.

Last updated