Forum Discussion
mayurnavle
12 years agoOccasional Contributor
Hi I want use the xpath assertion for multiple values means I have written xpath assertion and want to call it in groovy script using could you please help me here??
def assertion = testRunner.getTestCase().getTestStepByName("CelciusToFahrenheit").addAssertion("XPath Match")
assertion.path = testRunner.getTestCase().getTestStepByName("CelciusToFahrenheit").getPropertyValue("a")
assertion.expectedContent =testDataLine[1].toString()
above block runs completely but instead of addAssertion I want to use getAssertion and I am not able to use it could you please help
def assertion = testRunner.getTestCase().getTestStepByName("CelciusToFahrenheit").addAssertion("XPath Match")
assertion.path = testRunner.getTestCase().getTestStepByName("CelciusToFahrenheit").getPropertyValue("a")
assertion.expectedContent =testDataLine[1].toString()
above block runs completely but instead of addAssertion I want to use getAssertion and I am not able to use it could you please help
Related Content
- 2 years ago
- 7 months ago
Recent Discussions
- 3 days ago