soapui

Pulling details from response to new request SoapUI

跟風遠走 提交于 2019-12-24 00:56:35
问题 I'm using SoapUI 3.6.1. I need to pull details from response and insert them to next request. I try to do this by'Property Transfering'. In first request I'm getting some details and in the response I can see 'Sections'. This 'section' can contain many 'Controls' and every 'Control' has some values. My response i'm getting: ... <a:Section> <a:Controls> <a:Control> <a:Code>11</a:Code> <a:Id>11</a:Id> <a:Label>bkBranded</a:Label> <a:Mandatory>true</a:Mandatory> <a:SortOrder>223</a:SortOrder> <a

Surefire report generating duplicate result in the report

本小妞迷上赌 提交于 2019-12-24 00:27:57
问题 I am following the SO link of MAVEN with ANT Task for SOAPUI automation run with jenkins. It works fine and executes. But Surefire html report generating same testSuite, testCases twice. ANT JUnit Report generates right report Below is my pom.xml file - <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

SOAPUI Load Custom Properties from file using groovy

丶灬走出姿态 提交于 2019-12-23 17:04:36
问题 I am trying to write a groovy script which loads the custom properties for a test suite using information from a properties file. The properties file has around 6 different attributes I have had a look at quite a few different methods i.e Loading from Properties test step and trying to expand the properties with groovy, but have not been successful. If anyone could advise on how to achieve this, it would be much appreciated. Thanks in advance. 回答1: Here is the groovy script which reads a

SoapUI REST webservice mock with path parameters

为君一笑 提交于 2019-12-23 12:34:11
问题 I am trying to create a mock webservice for a POST method on SoapUI. I made a REST Project, then created a MockService, a MockAction and defined a couple responses and resource paths. It works fine if I define a fixed regular path relative to my Service, for example method/postmethod to be invoked at http://localhost:8080/method/post , it works well. What I want to do, however, is define my method with path parameters, such as this: http://localhost:8080/method/{par1}/{par2}/{par3}/post . The

Access the request XML in a SOAP UI mock response script

大兔子大兔子 提交于 2019-12-23 07:45:50
问题 I have a mock response, which needs to return a value that was in the request. For example, this request can come in: <myReqest><myValue>123</myValue></myRequest> I already have a mockResponse: <myResponse><yourValue>${theValue}</yourValue></myResponse> I know how to set the value of ${theValue} through the context variable, but I can't figure out how to access the request and parse it for the value. Any help would be much appreciated. Thanks, Jonny 回答1: You can use the scripting feature to

How to get the xml root node containing element with particular value using groovy scripts in soap ui

匆匆过客 提交于 2019-12-23 05:33:06
问题 Suppose my xml response is below: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetCitiesByCountryResponse xmlns="http://www.webserviceX.NET"> <GetCitiesByCountryResult><![CDATA[<NewDataSet> <Table> <Country>British Indian Ocean Territory</Country> <City>Diego Garcia</City> </Table> <Table> <Country>India</Country> <City>Ahmadabad</City> </Table> <Table>

compare json files irrespective of field position in groovy using soap ui

北慕城南 提交于 2019-12-23 05:14:02
问题 Consider that I have a JSON file (named expectedResponse.json) that has some fields and values. Now I have to write a groovy script that compares the two files which will not bother even if the position of the field is jumbled... i.e if my expectedResponse has "name":"abc" as the 1st field then it should not fail if my generatedResponse has "name":abc as the 2nd field . 回答1: Try with JsonSlurper: import groovy.json.JsonSlurper def json1 = '{"name" : "abc", "value": "123", "field" : "xyz"}'

Groovy-wslite:SOAP Client Exception Handshake Failure

江枫思渺然 提交于 2019-12-23 04:43:17
问题 I am trying to invoke a SOAP service using Groovy wslite. But I keep error indicating PKIX path building failed. import wslite.soap.* import wslite.http.* def client = new SOAPClient("endpointURL") client.httpClient.sslTrustStoreFile = "path to key.jks" client.httpClient.sslTrustStorePassword ="password" client.httpClient.sslTrustAllCerts = true def response = client.send(request) I am running the code as groovy script from SoapUI client. I am able to invoke the same service from SoapUI with

NiFi How to use InvokeHTTP Processor with SOAP

◇◆丶佛笑我妖孽 提交于 2019-12-23 04:31:48
问题 I see that others have been able to get this to work however I am unable to find enough detail explaining how they accomplished this in order for me to get this to work. This guy at this link claims he was able to do this. While there is a brief description as to how to do this I don't fully understand it. The solution presented was: With InvokeHTTP, you can add dynamic properties, which will be sent in the request as headers. You can use dynamic properties to set values for the Content-Type

NiFi How to use InvokeHTTP Processor with SOAP

做~自己de王妃 提交于 2019-12-23 04:31:13
问题 I see that others have been able to get this to work however I am unable to find enough detail explaining how they accomplished this in order for me to get this to work. This guy at this link claims he was able to do this. While there is a brief description as to how to do this I don't fully understand it. The solution presented was: With InvokeHTTP, you can add dynamic properties, which will be sent in the request as headers. You can use dynamic properties to set values for the Content-Type