Contributions
Re: How do I pass a test case while ignoring only certain failed test steps?
Hey I'm not able to find your demo link, getting 404 error. I need help reagrding my project, where I have to add assertion in all Test Steps using grrovy script, I have written the code for that, but it's considering Groovy Script also as a Test Step and trying to add assertion in it, which is not possible hence my script is failing. How can I identify only Request Test Steps and add assertion into it, by ignoring Groovy Script test Steps. My code:- def testCases = context.testCase.testSuite.getTestCaseList() testCases.each { log.info "~~~Test Case:" + it.name for(testSteps in it.testStepList) { log.info "~~~Test Step:" + testSteps.name def addassert = testSteps.addAssertion("Contains") addassert.setToken("REST Countries") } }5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes0Comments