Contributions
maven skip test execution
Hi, I have been using the soapui maven plugin eviware:maven-soapui-plugin:test to execute the test cases / test suite of a soapui project. However when using -Dmaven.test.skip=true in MAVEN_OPTS is not working. How do we skip the test phase when executing a maven build? Thanks, Gopi1.4KViews0likes1CommentLogs not printed when war deployed in Tomcat
Hi, The log.info statements we give in our groovy code is getting printed in soapui and when we run the maven test cases command line. Log files like global-groovy.log, soapui.log, soapui-errors.log are getting generated in soapui and the project location where maven build is executed. However, when we create war from soapui and deploy in tomcat-linux container, not able to see these logs printed in console or getting generated in the tomcat workspace. Can someone guide me how to enable the logging in tomcat container for these groovy logs? Thanks, Gopi.3.8KViews0likes1CommentMock REST Services War dynamic url parameters
When we create a war for the Mock REST service and deploy in tomcat, i am not able to pass the dynamic values in the url path for a GET request. Tomcat ignores the url path and throws a default error message. Say, http://localhost:8080/mockService/Test/{param0}/data is working fine within soapui and i am able to pass dynamic values to param0 in soapui. When i deploy this service as war in tomcat, it is not recognizing values set for param0 in the url and the response is default soap error message. Tomcat treats this "http://localhost:8080/mockService/Test/{param0}/data" as complete url and renders the response for matching path. I don't have a choice to change the url pattern as the client code will get affected. Is there a way to handle this type of url for REST mock services or any documentation to check this?5.9KViews0likes6CommentsRe: Mock REST Services to return JSON response
Thanks for your response. However I am not able to edit the response content type as it gets set automatically depending on the file type i am sending. If the file type that i am reading the content happens to be a .txt file, the content type gets set as text/plain, if the file happens to be a .xml, the content type gets set as text/xml. I want to set a Json object in the response dynamically in the Mock REST response and the content type should be application/json as the client code is expecting this type. I am not able to locate the header part in response editor of mock service either. Did you refer to response editor inside the Request editor?14KViews0likes3CommentsMock REST Services to return JSON response
Hi, I need to send a JSON response from a Mock REST Service for a GET request. I tried to set the response content type as follows in the OnRequestScript tab, still the response content type is rendered as text/plain instead of Json. mockRunner.returnFile ( mockRequest.getHttpResponse(), new File (path)) // path is the file path of a text file with static Json Response. def mockResult = new com.eviware.soapui.impl.wsdl.mock.WsdlMockResult ( mockRequest ) mockResult.setResponseContentType("application/json") // This shows error message as dispatch error; missing response mockResult.setContentType("application/json") return mockResult Tried this in AfterRequestScript tab as well, doesn't work. mockRequest.getHttpResponse().setContentType("application/json") Any help is highly appreciated. Thanks, Gopi.17KViews0likes6CommentsRe: Mock War creation maven plugin
Thanks redfish. I have already read your Wiki, so will wait for your release. I have used the script files within soapui to trigger the war creation for now within exec-maven plugin. Will try this integration project after a while and let you know the feedback.2.2KViews0likes0CommentsMock War creation maven plugin
Hi, Is Soap UI WarGenerator script available as maven plugins similar to maven-soapui-plugin:test, maven-soapui-plugin:mock goals which can be triggered during maven build instead of executing the script file through this plugin - exec-maven-plugin? exec-maven-plugin requires SOAPUI to be installed, our requirement is download the plugin from maven repository and trigger the build of war creation providing the required parameters. Thanks, Gopi.3.3KViews0likes5Comments