SuperSingh
8 years agoContributor
Saving request and response to an external file for "JDBC Request" and "Groovy Scripts"
I have script that saves Request and Response XML's (to an external file) for my regular REST calls in SoapUI.
However, I want to save the Request and Response of the following
1. JDBC Step (Request contains SQL Queries || Response has the output for the same)
2. Groovy Script(Request contains script to extract Specific Nodes || Response has the data in customized format )
Would be great, if someone can help me here.
Thanks in advance ,
Predator
I got it . The following is the difference and it works.
def ResFile ="C:/Testing Lab/Soap TestBed/Response Data/Response1.xml"
def Res = context.expand( '${Rate#ResponseAsXml}' )
def j = new File(ResFile)
j.write(Res, "UTF-8")Thanks all for the help !
Thanks,
PredatorSingh