Forum Discussion
Nastya_Khovrina
8 years agoSmartBear Alumni (Retired)
Hi Nick,
According to Class WsdlProjectRequirements a requirement should be added to WsdlProjectRequirements (not to WsdlProject). To get it, you need to use context.getTestCase().getTestSuite().getProject().getRequirements().
So, to add the requirement to a testCase, you can use the following script:
def project = context.getTestCase().getTestSuite().getProject(); def testCase = context.getTestCase() def requirements = project.getRequirements() requirements.addRequirement("ID", testCase)
Related Content
- 10 months ago
- 2 years ago
- 4 years ago
Recent Discussions
- 22 days ago