Forum Discussion

skelkar's avatar
skelkar
Contributor
10 years ago

What is the difference ? message exhange and context in script assertion?

What is the difference between - 

 

1.

messageExchange.modelItem.testStep.testCase.getTestStepAt(index).run(context.getTestRunner(),context)

AND

2.

context.getModelItem().testStep.testCase.getTestStepAt(index).run(context.getTestRunner(),context)

 

?

  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    You have similar comparison question. I believe you may want to go thru soapui api documentation, then it should be clear.
    context is a soapui variable available at different level and it has different context, depends on where it is used - Project, testsuite, test case, test step level along with script assertions.
    messageExchange is only available on just soap request test step response / script assertion.