Add parameter sets
Use parameter sets to group parameters and apply the same configuration across your entire test suite. Apply parameter sets to test cases, playlists, folders and test cases within playlists. When you update a value in the parameter set, all linked items apply the new value. For an overview of all available parameter levels in Tosca Cloud, check out Parameters.
Before you start
Only administrators and contributors can create, edit, and remove parameter sets.
Create a parameter set
To create a new parameter set, follow these steps:
-
Go to
Configurations > Parameters and select the Parameter sets tab.
-
Select Create parameter set.
-
Enter a name for your parameter set and select Save.
The left panel lists all sets in your workspace. Select a set to view its parameters in the main panel. Use the search box to find a set by name.
Add parameters to a parameter set
To add a parameter to a parameter set, follow these steps:
-
Go to
Configurations > Parameters > Parameter sets and open the parameter set.
-
Select Create new parameter.
-
Enter the parameter details:
|
Field |
Description |
|---|---|
|
Parameter |
The parameter name:
|
|
Value |
The parameter value:
|
|
Data type |
Select the data type that matches your value: String, Boolean, or Password. |
-
Select Save.
Rename, edit, or remove a parameter set
Go to Configurations > Parameters > Parameter sets and select the parameter set you want to change:
-
To rename the parameter set, select its name, enter a new name, and select Save.
-
To edit a parameter, select the parameter, make your changes, and select Save.
-
To remove the parameter set, select
.
When you remove a parameter set, all linked test cases, playlists, and folders lose those parameter values.
Apply a parameter set
Add a parameter set to a test case to apply its parameters. To add a parameter set to a playlist, a folder or test case in a playlist, check out Add parameter sets..
Add a parameter set to a test case
To add a parameter set to a test case, follow these steps:
-
Open the test case in the test case editor and open the Configurations side panel.
-
In the Parameters tab, select New parameter > Add parameter set.
-
Select the parameter set you want to add, then select Add.
The parameters from the set appear in the Parameters tab.
Override a parameter from a parameter set
If you need a different value for a specific parameter, override it:
-
In the Parameters tab, expand the parameter set.
-
Select the parameter you want to override.
-
Enter a new value and select Save.
The parameter shows Inherited from parameter set (overridden) to indicate it uses a local value.
Remove a parameter set
Choose your use case:
-
Open the test case in the test case editor and open the Configurations side panel.
-
In the Parameters tab, select the parameter set you want to remove.
-
Select
, then select Remove.
-
Go to the Parameters tab under Playlist details.
-
Select the parameter set you want to remove.
-
Select
, then select Remove.
Change the parameter set priority
If two parameter sets contain a parameter with the same name, the set higher in the list takes priority. Tosca Cloud disables that parameter in the other set.
To change the priority of a parameter set, select then select Move up or Move down to place it in the position you want in the list. The active parameter is editable. Disabled parameters appear grayed out.
What's next
Check out Parameters to understand how parameter sets interact with other parameters in Tosca Cloud.