Create and Utilise Parameters in your Test Case
Last updated
Last updated
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.
There are two ways to create parameters in SimplifyQA:
Navigate to Test Management > Parameter Module
Click on '+ Parameter', then enter a name and select a parameter type (both mandatory fields).
Choose the appropriate scope:
Local Parameters: Used within a specific test case.
Global Parameters: Available across multiple test cases.
Runtime Parameters: Used for dynamic values generated during execution.
Based on the selected type, additional optional fields will be displayed:
Local Parameters: Assign it to a module, define minimum and maximum length, set a prefix and suffix, and add a description.
Runtime Parameters: Similar to local parameters, but also allows selecting a Unique ID type.
Global Parameters: Requires an additional mandatory field – the default value.
Click Save to store the parameter for future use.
Open a test case and go to the Test Steps section.
Click on a step, then click the "+" icon in the parameter field.
Fill in the required fields, including the parameter name, type, and other relevant details.
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.
Once a parameter is created, you can use it in test steps and formulas.
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.
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.
Learn more about .