soapui

MD5 using Groovy in SoapUI

北战南征 提交于 2019-12-10 01:00:52
问题 I created a test case which contains parameters that consist of key and value. I need to take all those parameters in an alphabetic order, and then create a MD5 hash value which i will pass to one of the parameters of this test. Any suggestions? i looked in google and cannot find anything helpful. Thanks ahead! 回答1: You can retrieve the SoapUI's test case properties using a Groovy Script test step as given below. def map = context.testCase.properties.keySet().inject([:]){map, key -> map[key]

SoapUI MockService: Work as proxy

北战南征 提交于 2019-12-09 18:34:15
问题 I'm writing MockService in SoapUI . In the case if node exist in a received SOAP Request (by XPath ) I want generate response by groovy script. In other cases I want redirect a received SOAP -Request. I mean, I want send a received SOAP -Request to other SOAP -Service (I want send by URL ). Is there way to do this? 回答1: If you want use your soapUI MockService as proxy, do this : Create placeholder in response (for example ${responseMessage} ) Add script that printed below def groovyUtils =

How to use Soap UI without wsdl?

邮差的信 提交于 2019-12-09 08:04:02
问题 Hi I have installed Soap UI...Like C, Java we will create some sample program. likewise i wanted to use some sample request and response..how to create a request and response without wsdl? 回答1: Create new SOAP Project using File > New SOAP Project Set the name as required Leave the initial WSDL field blank On the Project Navigator Window to the left, mouse over the project folder and select New Rest Service from URI using the context menu Enter the enpoint you would like to send a SOAP

soapUI: Error does not close tag

走远了吗. 提交于 2019-12-09 04:38:55
问题 I'm trying to use soapUI 4.5.2 for the first time. I've created simple .NET ASPX web service and copied the following address into the soapUI: http://localhost:52086/WebService1.asmx But, the following error came up: Error loading [http://localhost:52086/WebService1.asmx]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: does not close tag I've disabled proxy option in soapUI preferences. How to make it work? 回答1: Watch for ?wsdl . You should use it like this: http:/

How to insert variable into “Xpath selection” of Property Transfer in SoapUI

微笑、不失礼 提交于 2019-12-08 14:03:17
问题 working with SoapUI 4.6.1 I have TestCase, which includes: Test Request (1) Groovy Script Property Transfer Test Request (2) My goal is to pass variable from result of Groovy Script to Xpath expression of Property Transfer. For what? In Test Request (1) Response , there's list of schemes: <...> <...> <...> <scheme_list> <scheme> <node1> ... </node1> ... <nodeN> ... </nodeN> </scheme> <scheme> <node1> ... </node1> ... <nodeN> ... </nodeN> </scheme> <scheme> <node1> ... </node1> ... <nodeN> ...

Using prepared statement in Groovy

和自甴很熟 提交于 2019-12-08 13:59:50
问题 this is for testing purposes (automatic testing) SoapUI def status = testRunner.testCase.getPropertyValue( "Status" ) def grid = testRunner.testCase.getPropertyValue( "Grid" )+"_V" def grid1 if (["TABLE1","TABLE2"].contains(grid)) grid1 ="HUBCFG."+grid else grid1 = "SDM."+grid Option1 sql.executeUpdate "UPDATE " +grid1+" t0 set XXX='$status' WHERE t0.YYY='$grid'" Option2 String bql = "UPDATE $grid1 t0 set XXX='$status' WHERE t0.YYY='$grid'" sql.executeUpdate bql sql.commit() log.info(

SoapUI Groovy Script’s JSON Responses Is Empty When Using Testrunner

本小妞迷上赌 提交于 2019-12-08 10:35:58
问题 Using Windows 7 with Soap 5.2.0 freeware. I also asked about this in the Smart Bear community and was only given recommended posts to read. The posts didn’t relate to this problem. I have a REST project that has one test suite with one test case containing two test steps. The first step is a groovy step with a groovy script that calls the second test step. The second test step is a REST GET request that sends a string to our API server and receives a response back in JSON format. The second

How to compare values from response of two different requests in SOAP UI using groovy?

牧云@^-^@ 提交于 2019-12-08 08:45:38
问题 I am using SOAP UI Pro for test automation and I am new for that. I am using this tool for Rest API automation. I sent a POST service request and got some response for example : unique id, first name, last name. Now I send another GET request with input parameters as first name, last name from my previous POST request response (using property transfer step) and in response I got another unique id (response of GET). My requirement is to compare these two unique ids from these two different

Extract soap header out of request and add it to following request

﹥>﹥吖頭↗ 提交于 2019-12-08 07:08:47
问题 I'm trying to extract the header from a previous request in SoapUI so I can use it in another request. Basically, I want to get the node value for Header in one xml and insert it into the header value of another xml. I have tried using XMLSlurper and XMLParser but not getting exactly what I want. I can extract out the text from the nodes but need the actual whole header value so it can be inserted into other requests as needed. text = testRunner.testCase.testSteps["ConversionRate"]

Service Stack Serialization Exception for soap 1.1

只愿长相守 提交于 2019-12-08 06:49:44
问题 The Request Message: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendGetAccountNotification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="mynamespace"> <getAccountResponse xmlns:d2p1="mynamespace"> <d2p1:Account> <d2p1:BusOpsDesc>String</d2p1:BusOpsDesc> <d2p1:ExternalAccountID>String</d2p1:ExternalAccountID> </d2p1:Account> <d2p1