Parameter values
Value expressions let you auto-generate dynamic values at runtime, based on your specifications. They help you to automate important processes and reduce test design and maintenance efforts.
With parameter value expressions, you can reuse the value of a custom parameter you've added to your test case or your reusable test step. For example, to insert the value into a text field or to verify cell contents in a table.
To reuse a parameter value, enter the parameter name in curly brackets: {CP[name of your parameter]}
Keep these things in mind:
-
The name in the expression is case-sensitive.
-
The parameter for a test case is only available within the same test case. You can't set a parameter for test case A and then reuse the value in test case B.
-
The parameter for a reusable test step is only available within the same reusable test step. You can't set a parameter for reusable test step 1 and then reuse the value in reusable test step 2.
-
The parameter only applies to the object you set it for. You can't reuse the value of a test case parameter in a reusable test step or the other way around.
For an example on how to create and use parameters in a reusable test step, check out Combine reusable test steps with parameters.