Contributions
Re: Groovy Script to test Rest Post Method with Json file and xml file with headers
Actually, using the above sample I am able to call the get method, Buy I don't know to to set a method as post, and how to attach the JSON file for post request, and hot to set headers.... Earlier I used rest assured API for rest web services, but now I tried the same for soap ui with Groovy scripting not an soap ui interface...5.7KViews0likes0CommentsRe: Groovy Script to test Rest Post Method with Json file and xml file with headers
i want to test the rest services using soap Ui with groovy scripting. i have the code for get method , like below sample import com.eviware.soapui.model.iface.Submit def uri = "http://jsonplaceholder.typicode.com/posts/1" WsdlProject project = new WsdlProject() RestServiceBuilder serviceBuilder = new RestServiceBuilder() serviceBuilder.createRestService(project, uri) println "service name: "+project.getInterfaceList()[0].name println "Resource: "+project.getInterfaceList()[0].getOperationList()[0] RestRequest request = project.getInterfaceList()[0].getOperationList()[0].getRequestList()[0] Submit submit = (Submit) request.submit( new WsdlSubmitContext(), false ); Response response = submit.getResponse(); String responseContent = response.getContentAsString(); println( responseContent ); but i dont know how to start with Post Method with Json or xml attachement....5.7KViews0likes2CommentsSample code for soap webservices testing using soap ui Lib's from eclipse, not a soap ui plugin.
Hi Soap UI Team, i am using soap ui free version, i am interested to integrate selenium with soap ui Automation in eclipse, so my approach is simple i copy paste the soap ui lib folder into eclipse build path then reuse the soap ui groovy functions, is it possible? if possible please share me some sample code. dsathishupm@gmailcom493Views0likes0CommentsSample code for soap webservices testing using soap ui Lib's from eclipse, not a soap ui plugin.
Hi Soap UI Team, i am using soap ui free version, i am interested to integrate selenium with soap ui Automation in eclipse, so my approach is simple i copy paste the soap ui lib folder into eclipse build path then reuse the soap ui groovy functions, is it possible? if possible please share me some sample code. dsathishupm@gmailcom473Views0likes0Comments