ContributionsMost RecentMost LikesSolutionsRe: How to save a dynamic mock response content to local drive Dear Rao, I am receiving 1000 of files in mock service and I have to save all the files on the local machine. So I am keeping saving code inside mock service. After saving mock request, I am creating a dynamic mock response and I want to save this response. To save this dynamic mock response, I am getting a problem. Regards, Mohit Bansal Re: How to save a dynamic mock response content to local drive Hi Rao, Thanks for your reply. I am writing this script inside Script tab in mock Response for saving mock request and mock response. I used another script also which is not working too I used another script also which is not working too. def resContent = mockResponse.getMockResult().getResponseContent(); Above script is always returning last mock response content but not the latest I am using all these scripts inside Script tab in mock response Regards, Mohit Bansal Re: How to save a dynamic mock response content to local drive Dear All, @nmrao, @msiadak, @Debz, @richie, @Emil91, @PramodYadav, @jkrier, @sanj, @mbheeke, @Radford, @kmaster, @kbw, @Bill_In_Irvine, @PaulMS Can anyone of you solve this problem? I am stuck here. It would be a great help. Regards, Mohit Bansal Re: Using Mock an saving Response Smatbear team, Please reply this question. I am also facing same problem Regards, Mohit How to save a dynamic mock response content to local drive Hi All, I am having a dynamic mock response under mock service. I want to save its content to my local drive. Please help me or suggest a way. <soapenv:Body> <mes:ResponseMessage> <mes:Header>${Header}</mes:Header> </mes:ResponseMessage> </soapenv:Body> I am using the below code to save the content but it is not working. It is not resolving the "${Header}". Please help me about how to save this response. def resContent = mockResponse.responseContent.toString().trim(); def file = new File(filePath); file.write(resContent, "UTF-8"); Re: Stop mock service using mockServiceRunner Hi Smartbear Team, Is there any solutions to stop the mock service using MockServiceRunner. I am waiting for your response. Please help me. Stop mock service using mockServiceRunner Dear Smart Bear Team, I am using SoapUI opensource tool. I want to run mock services from command line using mockServiceRunner as mentioned below: "C:\Program Files\...\bin\mockservicerunner.bat" -m "Sample MockService" "C:\Documents and Settings\User1\soapui-project.xml" I am able to start and receive response from mock service successfully. Now I am struggling to find a way to stop this running mockservice. Please suggest a solution. Thanks in advance. Start and Stop mock services outside SoapUI using MockServiceRunner Automatically I am using ReadyAPI and SoapUI tool. In ReadyAPI, i am running my testcases. I want to start and stop the mock services inside SoapUI using trigger script in ReadiAPI (using MockServiceRunner). At start of test case, i can trigger this script to start the mock service inside SoapUI(using MockServiceRunner) and at end of testcase, i want to stop the mock service in SoapUI. Is there any direct methods to implement this? Or please suggest the way.