Forum Discussion
RJanecek
12 years agoRegular Contributor
Hi,
what is mockRequest.requestContent ? I dont undertand why you do such thing manually. In this case I will prefer property transfer but if you want to do this with groovy just right click on groovyscript then getData select test request then request or response and then element which you want to save and voala:
def sessionId = context.expand( '${TestStepNamet#Request#declare namespace ns1=\'urn:semi-org:xsd.E128.V0706.xms\'; //ns1:SyncHeader[1]/ns1:SessionId[1]}' )
what is mockRequest.requestContent ? I dont undertand why you do such thing manually. In this case I will prefer property transfer but if you want to do this with groovy just right click on groovyscript then getData select test request then request or response and then element which you want to save and voala:
def sessionId = context.expand( '${TestStepNamet#Request#declare namespace ns1=\'urn:semi-org:xsd.E128.V0706.xms\'; //ns1:SyncHeader[1]/ns1:SessionId[1]}' )