Forum Discussion
I'm assuming that you have both methods created in your resource.
If you have the variables declared in your TestCase properties, you should be able to to paste the following in the request of the PUT/POST step with media type 'application/json'
It wont run individually, but when executing the test case, it should pull the parameters in from the transfer. Asssuming that your transfer step is saving as userType, Id, etc and that those are declared in the TestCase.
{ "accountId": "123456", "userType": "${#TestCase#.userType}", "Id": "${#TestCase#.Id}", "firstName": "${#TestCase#.firstName}", "lastName": "${#TestCase#.lastName}", "contactnumber": "${#TestCase#.contactNumber}", "emailAddress": "${#TestCase#.emailAddress}", "marketingYN": "N",
}
- bfourie10 years agoOccasional Contributor
Thanks! Just gave this a try, and works like a charm. I just have 2 steps in the middle. I created a properties object, and moved all the values in there 1st, then read them from tcPropperties. so rather than #TC1 I'm reading them from something like this:
"lastName": "${tcProperties#lastName}",
Related Content
Recent Discussions
- 4 days agoemoya