Forum Discussion

vineeshpk's avatar
10 years ago

How to get soapUI request in notepad with correct allignment

We are trying to write soap ui request in notepad.But the whole request is showing in one line.How to get this in proper(Means line by line).
We are using below code for retrieve the request.
def request = context.expand( '${seriveName#Request}' )

1 Reply

  • Cizo89's avatar
    Cizo89
    Frequent Contributor
    Hi,

    try this script, it works fine for me:

    //txt file
    File file = new File("YOUR_PATH\\Example1.txt")

    //xml file
    //File file = new File("YOUR_PATH\\Example1.xml")

    String response = context.expand('${YOUR_TESTSTEP#ResponseAsXml}')

    file << response


    Regards,
    Marek