Contributions
Re: 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 localmachine. So I am keeping saving code inside mock service. After saving mock request,Iam creating a dynamicmock response and I want to save this response. To save thisdynamic mock response,Iam getting a problem. Regards, Mohit Bansal1.7KViews0likes0CommentsRe: 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 notworking too I used another script also which is notworking 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 Bansal1.8KViews0likes1CommentRe: 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 agreat help. Regards, Mohit Bansal1.8KViews0likes1CommentHow 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 itis 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");1.8KViews0likes6CommentsStop mock service using mockServiceRunner
Dear Smart Bear Team, I am using SoapUI opensource tool. I wantto run mock services from command line using mockServiceRunneras mentioned below: "C:\Program Files\...\bin\mockservicerunner.bat" -m "SampleMockService" "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.1.7KViews1like2CommentsStart 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 tostop the mock service in SoapUI. Is there any direct methods to implement this? Or please suggest the way.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1Comment