Solved
Forum Discussion
SorinC
6 years agoNew Contributor
Hello Rakinson33,
Can you try with this groovy script?
// Get the cartId header def cartId= testRunner.testCase.getTestStepByName("TestStep").httpRequest.response.responseHeaders["cartId"][0] // Set a test case property for the header testRunner.testCase.setPropertyValue( "cartId", cartId)
Regards
- Rakinson236 years agoOccasional Contributor
Thank You SorinC,
This solution is fine when we are using 'groovy script' as a next test step.
I was trying to achive this option as a assertion script in my first request which produce this cartId.
Related Content
Recent Discussions
- 2 days ago
- 4 days ago