validate soapfault via groovy script
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2011
11:30 PM
11-22-2011
11:30 PM
validate soapfault via groovy script
Hi,
is possible to validate response if it is soapfault via groovy script or is possible to validate it as assertation but turn it off sometime when some patameter will by off
is possible to validate response if it is soapfault via groovy script or is possible to validate it as assertation but turn it off sometime when some patameter will by off
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2011
04:24 AM
11-23-2011
04:24 AM
I found something similar :
context.getTestSuite().getTestCaseByName("teststep1").getTestStepByName("Zadost").addAssertion("SOAP Fault")
but this isnt exactly what I want
context.getTestSuite().getTestCaseByName("teststep1").getTestStepByName("Zadost").addAssertion("SOAP Fault")
but this isnt exactly what I want
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2011
06:26 AM
11-25-2011
06:26 AM
Hi,
you could either add the assertion and enable/disable it via a script;
context.getTestSuite().getTestCaseByName("teststep1").getTestStepByName("Zadost").getAssertionByName( "..." ).disabled = true/false
but you would have to do this before the request is submitted..
would that work?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
you could either add the assertion and enable/disable it via a script;
context.getTestSuite().getTestCaseByName("teststep1").getTestStepByName("Zadost").getAssertionByName( "..." ).disabled = true/false
but you would have to do this before the request is submitted..
would that work?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2011
11:52 PM
11-29-2011
11:52 PM
yes this works but it isnt still what I want. this solution change code in sopaUI project what I dont want
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2011
06:19 AM
11-30-2011
06:19 AM
Hi,
then you would have to do it via a groovy script - just search for the soap fault element in the response..
regards,
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
then you would have to do it via a groovy script - just search for the soap fault element in the response..
regards,
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
