soapui

Properly iterating through XML with namespaces in Groovy

江枫思渺然 提交于 2019-12-13 00:06:11
问题 I have the following xml code: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <cms:RelatedConfigurationItemList xmlns:cms="some namespace"> <ConfigurationItem> <name>data</name> <id>data</id> <type>data</type> <relationship>IS CHILD OF</relationship> <ConfigurationItemList> <ConfigurationItem> <name>data</name> <id>data</id> <type>data</type> <relationship>IS CHILD OF</relationship> <ConfigurationItemList/> </ConfigurationItem> <ConfigurationItem>

How reuse groovy scripts in soapui project?

痴心易碎 提交于 2019-12-12 23:41:18
问题 Suppose I write a groovy function. Is it possible to store it to some teststep or another place in soapui project and include it with import in other groovy test steps? 回答1: SoapUI offers three options: You can use the script library, where you store all your scripts in a separate directory and just call the classes. You can use the run testcase step, where you store your script as a test which you can call from any other test. You can compile your script into a jar, place it in $SOAPUI_HOME

How to test the response content-type using SOAP UI

谁说我不能喝 提交于 2019-12-12 23:27:51
问题 I am new to this SOAP UI . I got a requirement to test if the response body is not empty . Can you please tell me how to solve. My idea was to check the content-length of the response using assertion script but it is not working for equals() . contains() is working but not equals : // works: assert ((com.eviware.soapui.support.types.StringList)messageExchange.responseHeaders["Content-Length"]).contains("0") // not working: assert ((com.eviware.soapui.support.types.StringList)messageExchange

SoapUI defining a library of reusable methods

别等时光非礼了梦想. 提交于 2019-12-12 22:09:03
问题 I'm running into copy-pasting a lot of code at the moment in my SoapUI projects, and thought I'd have some sort of library of helper functions that can carry out most of my tasks. So I have a test suite for this, and the code itself is in a Groovy Script test step in this test suite. The idea is that I make my helper methods available to the context I'm in (a REST test request step). It instantiates fine and all that, but the problem is that when I want to invoke run(testRunner, context) , I

Soap Connection timed out in Java client but not in SOAPUI

不羁的心 提交于 2019-12-12 19:19:20
问题 I created a soap client with wsimport and a given wsdl. I also used SoapUI to test the service. Using SoapUI I had no problem but when using my Java client I get java.net.ConnectException: Connection timed out: connect The default values I have in the requestContext are as follows com.sun.xml.internal.ws.connect.timeout=100000 javax.xml.ws.service.endpoint.address=[fully qualified domain name endpoint] com.sun.xml.internal.ws.request.timeout=100000 javax.xml.ws.soap.http.soapaction.use=null

How to process gzip from SoapUI in WCF?

≡放荡痞女 提交于 2019-12-12 18:28:46
问题 I am working on two way gzip compression in my WCF. The response part is fairly easy with IIS but I can't seem to handle a request using SoapUI. The reason I'm using SoapUI is because the client app that will be connecting won't be using Microsoft stack on their end. I have created a sample solution here to demonstrate the promlem https://github.com/janmchan/WCFCompression In the solution I have a WCFServiceDemo (WCF Server) and WCFClient (WCF Client). Using the binding below for both client

Error getting a node on SOAP UI's test case XPATH

可紊 提交于 2019-12-12 14:41:00
问题 I had been stuck while playing with the SOAP UI getting started tutorial because i can't produce an assertion condition for a simple testing. I'm Using the XPATH method to test the following SOAP message: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetCityWeatherByZIPResponse xmlns="http://ws.cdyne.com/WeatherWS/"> <GetCityWeatherByZIPResult> <Success>false<

Create a mongo connection and make it alive for execution of an Entire Test Suite in Ready!API

旧时模样 提交于 2019-12-12 09:47:42
问题 If you want to make an gmongo connection alive for an entire test suite and then close it in a tear down operation after the entire test suite is executed then, How could we do that? Currently what am I doing is, I am creating an connection for an particular test step and then after the test step is executed, I close the connection by using the code mongoClient.close() But now there is a requirement where I need to create the connection before the test suite starts executing, use the same

How to invoke a concrete operation of a Mock service deployed in SOAPUI

一世执手 提交于 2019-12-12 07:04:48
问题 I have one SoapUI Mock service (served as http://localhost:8454/MyMock ) with several operations MockOpA, MockOpB, MockOpC... each of them with his particular unic response. Is there a way to invoke a particular operation adding it to the URL I used inside the Java code that calls the Mock Service? Something like http://localhost:8454/MyMock/MockOpA . I see a lot of examples of one operation several responses; but none of several operations exposed by the same Mock Service. 回答1: I have found

Soup UI - save JSON request and response

…衆ロ難τιáo~ 提交于 2019-12-12 06:49:02
问题 I'm using rest request in soapUI. I want to save the JSON request and response to a file. How can i do it? 回答1: Request payload (JSON) is not included in the report. Only request HTTP headers are captured in the report. Please let me know if you are able to log request JSON. I am using SoapUI 5.0.0 回答2: Right click on your testSuite and select Launch TestRunner , on Launch TestRunner panel select Reports tab , on this tab check Exports all results , and select a root folder to save this