mkhan031486
8 years agoContributor
How to add text with a property transfer
Hi have a test suite which has two test cases. First test case has a payment request that has a Account No for example, 2356698. The second request that I have is about creating a Autopay (recurring)...
- 8 years ago
You do not have a separate test step for that i.e., neither property transfer nor groovy script test step.
Instead add a script assertion step to the First request and extract the account Id and store it at test case level custom property
Hope you know how extract the accountId from your response. If not, please provide the response.
In the same script assertion, once account Id is extracted use below statement to store value at test case level custom property
//Assign the extracted value to below variable; for now using dummy value
def accountId = '12345'
context.testCase.setPropertyValue('ACCOUNT_ID', accountId)
In the second request, just below to
<accountId>${#TestCase#ACCOUNT_ID}REC</accountId>