jnickgo
8 years agoOccasional Contributor
Access Requirements Programmatically
Hello, I've been researching the Ready! API requirements management features a bit lately. It seems like I could get some use out of them if I was able to report better on them. Initially wh...
- 8 years ago
Hi Nick,
Thank you for your post. You can use the following groovy script (in a groovy TestStep) to access TestCase requirements:
def project = context.getTestCase().getTestSuite().getProject(); def requirements = project.getRequirements().getRequirementsList() for (requirement in requirements){ log.info requirement.getId() log.info requirement.getName() log.info requirement.getDescription() }
Refer this documentation for details:
https://www.soapui.org/apidocs/pro/com/eviware/soapui/impl/wsdl/WsdlProjectPro.html
https://www.soapui.org/apidocs/pro/com/eviware/soapui/impl/wsdl/project/WsdlProjectRequirements.html