Forum Discussion
HKosova
Alumni
8 years agoIn this case Property Transfer transfers the entire response contents, including the quotes around the value. To transfer the unquoted value, you need to use a Groovy script instead.
For example, you can extract the value to a test case property named timestamp:
// Replace "Test Step 1" with your test step name
def value = testRunner.testCase.testSteps["Test Step 1"].testRequest.response.responseContent // remove the enclosing quotes value = value.replaceAll('^"|"$', '') testRunner.testCase.setPropertyValue("timestamp", value)
and in the second request, use
${#TestCase#timestamp}saftron
8 years agoOccasional Contributor
Thank you. I will incorporate scripts and let you know feedback.