Parameters in Cases

AIO Tests allows users to create input parameters (or variables) on a project level that can be used directly within the test cases with the click of a button. By creating predefined parameters in AIO Tests, you can execute the same test case multiple times with different data inputs without copying and maintaining duplicate test cases. This test management tool allows users not only to edit, delete, and archive the parameters, but also edit and delete their parameter values. 

By using parameterized test cases, you can not only increase the flexibility of your test cases, but also achieve greater test coverage with fewer cases to manage.

In this documentation, you’ll understand:

Creating a Parameter

AIO Tests lets users create parameters with their values in the Predefined Parameters option. Once they create parameters, they can form a Data Set in the test case with ease. 

Steps to Add Predefined Parameters

Step 1: To add predefined parameters, simply click on the Cases option in the top bar menu.

Step 2: Click on the vertical ellipsis icon (⋮) located at the top right corner of the cases detail page and select the Predefined Parameters option from the dropdown menu.

Step 3: On the Predefined Parameters screen, click on the Add Parameter (+) button located at the top right corner of the screen. 

Step 4: Enter the required details in the respective fields. 

  • Name: Name of the parameter that you want to set. 

  • Parameter Values: Enter the values for the parameter in the Parameter Values field and click on the Add button.

  • It is recommended to enter a unique name for the parameter and its parameter values. Duplicate values show an error message on the screen saying, “Duplicate value exists. Please enter a unique value.”

  • Users can also add a description of the defined parameter explaining its purpose of being created. 

  • In the Parameter name field, you can only enter a maximum of 50 characters.

  • You can add as many parameter values as you want as per your requirements.

Step 5: Finally, click on the Save button. 

Learn how to use them in Cases by clicking here.

Editing a Predefined Parameter

AIO Tests allows you to edit your already created predefined parameter with ease. Whether you want to change the name and description or add new parameter values, the tool lets you do it effortlessly.

Steps to Edit a Predefined Parameter

Step 1: To edit a predefined parameter, simply click on the Pencil icon for the parameter you want to edit.

Step 2: Edit the parameter as per your requirements, such as the Parameter name, its description, and add new parameters.  

Users can also edit or delete the existing parameter value.

Step 3: Finally, click on the Save button.

Once you click on the Save button, a message will be displayed on the screen saying, “Changes saved.”

Archive a Predefined Parameter

AIO Tests allows you to archive a predefined parameter if it is no longer needed. Archived parameters will remain linked parameters in cases and again usable wherever they were already added, but they can’t be added to a new test case. The test management tool stores the archived parameter for informational purposes only. 

Steps to Archive a Predefined Parameter

Step 1: To archive the predefined parameters, all you need to do is click on the Archive button of the parameter you desire to archive.

Once you click on the Archive button, a message will appear on the screen saying, “Changes saved.”

Delete a Predefined Parameter

AIO Tests allows you to delete predefined parameters with the click of a button. Whether you have created a parameter by mistake or you no longer require it, the test management tool lets you remove it from the system. Once a parameter has been deleted, all its usages, wherever it was used in cases, will convert to regular parameters and can’t be used for new test cases. 

Steps to Delete Active Parameters

Step 1: To delete active parameters, all you need to do is click on the Delete button for the predefined parameters that you want to delete. 

Step 2: Once you click on the Delete button, the Delete Parameter modal window will appear on the screen for further confirmation of your action. Click on the Delete option.

Once you click on the Delete option, a message will appear on the screen saying, “Predefined parameter deletion in progress,” and the deleted parameter will appear on the right side under “Marked for Deletion Parameters.” 

Editing and Deleting Parameter Values

AIO Tests lets users edit and delete parameter values for the predefined parameters with ease. Whether you want to edit or delete a parameter value, the case details for cases already in cycles will not be changed, but a new version of the cases will be created with the updated parameter values.

Steps to Edit Parameter Values 

Step 1: To edit parameter values, click on the Pencil icon for the parameter that you want to edit.

Step 2: Click on the Pencil icon for the parameter value that you want to edit. Enter the new value of the parameter and click on the Ok button.

Step 3: Click on the Save button.

Step 4: Once you click on the Save button, a sync button will appear on the screen with the parameter value that you have edited. Click on the sync and update cases button. It will create a batch job and will update all the test cases with an updated value. 

Steps to Delete Parameter Values 

Step 1: To delete parameter values, click on the Pencil icon for the parameter that you want to edit.

Step 2: Click on the Delete button for the parameter value that you want to delete. 

Step 3: Once you click on the Delete button, the Delete Parameter Value modal window will appear on the screen. On the Delete Parameter Value modal window, you will get the two below options:

  • Delete value but retain usage in cases: This option will delete the value from the predefined parameter, but retain its value in cases. It will convert the predefined values to a normal text value with no link to the predefined parameter. 

  • Delete value and discard usage in cases: This option will delete the value from the predefined parameter and discard its value in test cases. It will be become the null value or empty dataset value in cases. 

Click on the desired checkbox and click on the Delete button. 

Step 4: Click on the Save button. 

Step 5: Once you click on the Save button, a sync button will appear on the screen with the parameter value that you have deleted. Click on the sync and update cases button. Clicking on the sync button will create a batch job and update all the test cases. 

Viewing Parameter Update Jobs

AIO Tests allows you to view all the updates made to parameters with the click of a button. Whether you want to see the parameters updated successfully or an error message for failed parameter updates, the test management tool lets you do it with ease.

Steps to View Parameter Update Jobs

Step 1: To view parameter update jobs, all you need to do is click on the Jobs button located at the top-right corner of the screen.

Once you click on the Jobs button, all the parameter update jobs will be displayed on the screen.

For further queries and suggestions, feel free to reach out to our customer support via help@aiotests.com.