Parameterization
Last updated
Last updated
Parameterization is a powerful feature in Qyrus that allows users to pass data to their scripts using external data tables. This flexibility enables dynamic testing scenarios and data-driven testing, enhancing the versatility of your automated tests. it also allows user to skip particular step by passing "~" symbol in data table.
To leverage parameterization, you can either create a data table using our TDM (Test Data Management) service or utilize the existing Parameterization feature. Here's how to use it:
Before you get started, ensure you have:
Previously created a Project
Previously created a Module
Previously created a Script
Note: This feature is also available within Test Lab and Sprints.
Navigate to your previously created Test Script or create a new one by following the Step creation documentation.
After creating your steps, click on the "Parameterize" button to enable parameterization for the desired step.
Provide the name of the Data Column and save the script.
Click "Create Table" under parameterization to define your data table structure.
Populate the data table with the required information.
Test_Case
: This field is mandatory and represents the name of the test case execution associated with the corresponding data. The number of rows in the "Test_Case" column determines how many times the test script will be executed, with each execution using different data from the corresponding row. For example, if there are two rows for 'Test_Case' as shown in the image below, the test script will be executed twice. In the first execution, the "Name" step's data value will be "Hritik," and in the second execution, it will be "Hritik Shinde."
Overview
Note: Users can also use an environment created in the project setup to save parameterized tables.
Once the data is saved successfully, you can execute the test. Ensure you select the appropriate environment in which the data table is stored.
The test script will be executed for the specified test cases defined in the data table.
To skip test case you have to mark data column value with Tilde "~" symbol
This will skip the particular step while execution and no operation will be perform for the test case marked as "~"
To Skip entire test case in parametrization mark test case with Tilde "~" symbol
In login to SAP, users need to input essential column information, including client, password, SAP system name, and username.
To Skip a test case in login to sap in parameterize file use "~" symbol in system name
By following these steps, you can harness the power of parameterization to enhance your testing capabilities in Qyrus.