Forum Discussion
4 Replies
- BuschfunkFrequent ContributorFor this, you would first need to define the term "similar". What do you mean with that?
Greetings,
Robert - NitaOccasional ContributorBoth Responds should have identical SOAP Script.
The situation is:
Run one teststep1
Got the response1(some listing)
Run test Step2(to update list)
Got the response2( updation failed)
Run test Step3(to get the same listing)
Got the response3(should get the same listing)
So I need to compare response 1 and response 3 - tom_13ContributorTry do this from groovy after run step1 and step2:
def responseStep1 = context.expand( '${Step1 name#Response}' )
def responseStep2 = context.expand( '${Step2 name#Response}' )
if (!responseStep1.equals(responseStep2) )
testRunner.fail("Responses is not equal") - NitaOccasional ContributorI could compare the responses successfully.Thank You Tom_13