I have a requirement like below :
"device": "357752071933886",
"deviceEligiblity": {
"deviceStatus": "Eligible",
}
"device": "357752071934321",
"deviceEligiblity": {
"deviceStatus": "In-Eligible",
}
I have to use the device value from one service response and use it in subsequent test step only if deviceStatus is of value eligible . We can have an assertion to check whether deviceStatus is eligible and then only the filter for taking device value should be used . Not sure how to achieve this . Pls suggest on the solution for this requirement
I would have achieved this by using 'do Nothing Step'.
Step 1: You can assert deviceStatus for value 'Eligible'. If true move to Step 2.
Step 2: Do Nothing Step, use a filter to extract device value from the last step response.
[Hint]: Use lisa.{{lastStepName}}.rsp as the property.
Step 3: Step to use device value.
Let me know if you need more details around it.
Thanks,
Monika