Forum Discussion

imsandeep's avatar
imsandeep
Visitor
8 years ago

How to include Act./Exp. from Groovy with Pass/Fail status in SoapUI Pro report?

I'm SoapUI pro user and asserting some values in Groovy Script step. Now I want to print the actual and expected values along with pass\fail status in the report. 

for e.g. in the snippet given below, I want to print expected (i.e. POST1) and actual (i.e. GET1), along with the assertion result of Pass\Fail in the report:

 

POST1 = context.expand( '${REST Request-POST#RawRequest#$.Customer.Name}' )
GET1 = context.expand( '${REST Request-GET#Response#$.Customer.Name}' )

 

assert POST1 ==GET1

 

Please help me with this.

No RepliesBe the first to reply