Run Parameters are defined at the project level. When you define a Run Parameter, you just define the specification. Value for the parameter is not set. It is supplied when a test is running (in the Run modal).
Consider a use case where you need to delete an existing itinerary on a travel portal application. Itinerary is identified by PNR number and this is unique for each booking. You can define this as a Run Parameter and supply the exact value when the script is executed.
You can define Run Parameters from Resources tab under Navigator. To help user provide appropriate values, you can configure a Run Parameter and specify "type"
- Multi List
- Masked Input
- User List
You are not allowed to refer to Run Parameters in Action logic. This is to ensure that action logic is not tightly coupled with information about how the action might be executed. You define a regular Action Parameter and subsequently when you use the Action in a Scenario, override its value with Run Parameter.
You are prompted to enter values for all relevant Run Parameters when you are running a Scenario or Test Suite.
Remember following points about Run Parameters:
- Allows user to supply data at the time of execution
- Used when data value needs to be decided at Test Run level
- Same value is used for the entire test run