Forum Discussion
jhanzeb1
7 years agoFrequent Contributor
Hi Sanj,
You can update TC description by using the script below:
For an individual test case
step.setDescription('This is the description')
If you have a SOAP Request, use the script below
context.testCase.getTestStepList().each { def step = it step.setDescription('SOAP Request description') }
For REST request, you can use this
context.testCase.getTestStepList().each { if (it instanceof com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep){ it.getTestRequest().setDescription('REST Description') } }
Once you have set these, you can log to see the description by using the script below:
log.info testRunner.testCase.description
I hope this helps :)
Related Content
- 4 years ago
Recent Discussions
- 6 days ago
- 10 days ago