Forum Discussion
SmartBearAmber
8 years agoSmartBear Alumni (Retired)
Using a Groovy Script test step, enter the following:
def a = testRunner.testCase.getTestStepByName("Test Request - Example").getHttpRequest().getEndpoint()
log.info a
testRunner.testCase.setPropertyValue( "Endpoint", a )
You'll want to change the example request in my code to match your own.
This will result in custom Test Case property you can then write out via a DataSink test step.
- Rookie8 years agoOccasional Contributor
Related Content
- 5 years agoManijem