Forum Discussion

SuperSingh's avatar
SuperSingh
Contributor
7 years ago
Solved

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 (Req...
  • SuperSingh's avatar
    SuperSingh
    7 years ago

    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