Forum Discussion

Bala_1980's avatar
Bala_1980
Occasional Contributor
6 years ago
Solved

Save REST response in soapui iteself i.e not to the external file

Hi, I want to save the REST repose/s in the SOAPUI itself and not to the external file. Because I am creating project/suite/TC etc., whenver i want i have to refer the responses. Is it possible?, Than...
  • avidCoder's avatar
    6 years ago

    You can try this way :-

     

    1. Select the request you want to store responses from.
      In the "Request Properties" panel window scroll down to the property "Dump File", and enter a path for "Dump File".

    2. And later on you can leverage property expansion to make path dynamic.

    This is the only way you can save it. Though it also save the file to your local folder only but it will be dynamic.

    And another way is to use the external file to load it using file handle :-

    File file = new File("C:\\Users\\avidCoder\\Desktop\\response.txt"); 
    BufferedReader br = new BufferedReader(new FileReader(file));