Forum Discussion
mkliba
16 years agoOccasional Contributor
Hi:
Talking about removing/adding/renaming Assertions, you posted before that to remove assertions we can use:
def assertionsList = testRunner.getTestCase().getTestStepByName("Test Request").getAssertionList()
for( e in assertionsList){
testRunner.getTestCase().getTestStepByName("Test Request").removeAssertion(e)
}
Is there any way we can remove the assertion by assertion type and/or assertion name? Ex: Remove all type "XPath Match", or with name "My XPath Match"?
Thanks.
Talking about removing/adding/renaming Assertions, you posted before that to remove assertions we can use:
def assertionsList = testRunner.getTestCase().getTestStepByName("Test Request").getAssertionList()
for( e in assertionsList){
testRunner.getTestCase().getTestStepByName("Test Request").removeAssertion(e)
}
Is there any way we can remove the assertion by assertion type and/or assertion name? Ex: Remove all type "XPath Match", or with name "My XPath Match"?
Thanks.
Related Content
- 12 years agoMartinSpamer
- 2 years agorkadali