HELP - Trouble passing values from one API to next API
- 3 years ago
Thanks for your time and tips richie.
Re: I noticed that in your GetCustomer test case you used the PRopertyTransfer object, whereas it appears for the PauseContract test case it looks like you're using the GetData functionality and pulling the values directly from the Properties step.Yes I was trying different techniques (ie using GetData and PropertyTransfer) to pass the value to see what would work.
Both didn't seem to pick up the value.
Though the PropertyTransfer did store the value correctly.
The solution seems to be NOT to use special characters (ie curly brackets - {} in this case) as trips over when it's replaced.
So when I renamed the test case (ie removed {}) - I am about to use GetData functionality to retrieve the value.
So the value in id of Pause Contract is ${#[MEC-ShakedownForDisplay#GetCustomer#GET Request]#Response#$['data']['contracts'][0]['contractId']}
(note there is no curly brackets in label for GetCustomer).
I should have known better - this is standard things to avoid in any language.
Though note the labels of the test suite and test cases and test steps were created by default when I imported the Swagger definition.Jennifer