What is Parameter Linking
Parameter Linking is the process where a parameter in a Scenario step is linked with another step parameter in the same scenario. This is helpful in following situations:
- Same information should be passed to multiple steps in a scenario.
- Output from one step needs to be passed as input for the next step.
Consider following example:
Consider following points:
- Step #6 in the scenario verifies the success message after funds transfer. It has a parameter to verify the amount. This will be the same amount which was actually transferred in step #5 just above. So, instead of passing a value to Step #6 input again, you just link it with the already existing parameter in step #5.
- In step #8, we verify that the confirmation code of the just completed transfer is displayed in the account summary. This confirmation code is same as the confirmation code returned as output from Step #6 above. So these parameters are linked.
How to link a parameter
You can link a parameter by click on the parameter which needs get its data value from one of the previous step parameters. Select the parameter from a previous step to link. You can select either an input or an output parameter from a step above.
Note: You can only link with parameters (both input and output) that belong to the steps ahead of the step whose parameter is being linked.