soapui

soapUI - embbed XML in a request using groovy

前提是你 提交于 2020-01-23 17:02:33
问题 I'm making test cases on soapUI, on some steps I would use a REST quest and put XML code in the lower pane, something like <dataList> <data> 3.1416 </data> <data> 5.11 </data> </dataList> But I need to get the response and store the results that will be contained inside the XML text of the response, to verify that the web service is executing proper operations and then send more requests using the received results. Thanks everyone! 回答1: I could solve this using properties and Property

How to access all soap request in a single groovy script

痴心易碎 提交于 2020-01-17 05:58:10
问题 I am writing a groovy script to test my all services in one single step. I imported the WSDL and then all the SOAP request are generated automatically. I want to reduce my manual work of testing all the SOAP services one by one. So, I want to do it via groovy if possible. From here in addressScript - I want to access all the SOAP requests in all the test cases later. so is it possible to implement it via some looping in context ..? Below is sample code am trying . My main moto is to reduce

Is there an advantage in using SOAP UI over REST-assured to automate REST Services for CI

怎甘沉沦 提交于 2020-01-14 19:21:32
问题 I have to automate REST API testing in my project and integrate it in to existing CI in jenkins. I am about to start coding using REST-assured.However I happened to see SOAP UI REST tutorial and understand that there is a maven plugin in SOAP UI to help jenkins integration. Before I progress, just wanted to know if there is an obvious advantage to using SOAP UI over Rest-assured. I have to complete the automation of around 30 requests with complex JSON responses in about a month - including

How to create a .NET client for a wso2 Secure Token Service

旧时模样 提交于 2020-01-14 08:42:07
问题 I need to create a .NET client for a wso2 Secure Token Service. Normally I would create a simple console or WinForm project adding a Service Reference to it. The exposed WSDL would be turned in a set of classes that I can use to query the service and to properly manage its response. Unfortunately, the generated request and response classes are empty: just the class declaration without any property or method. This is similar to the behaviour described in this other (unanswered) Stack Overflow

“*Certificate not found* (from client)” when calling Web Service that requires signing

送分小仙女□ 提交于 2020-01-14 06:08:23
问题 I have a peculiar problem when calling a web service that expects the message to be signed using WS-Security. If I call using my client application (using Apache CXF) I get a HTTP 500 error message: *Certificate not found* (from client) while if I call the same service using SoapUI, configured for signing with the same key and key-store, it works as expected. I noticed that the <KeyInfo> part of the call differs between CXF and SoapUI. With CXF (as below) the KeyInfo is a lot more detailed

Using SoapUI to test Login function of REST application

a 夏天 提交于 2020-01-14 05:00:07
问题 I don't make this very general question post lightly, but I've maxed out what I can figure out on my own. I'm starting up the QA Test Automation at my new company (they don't automate anything currently) and they've elected to use SoapUI for this procedure. The application they're developing is a REST application (I don't really have any idea what that means) so I'm trying to build a REST request and Test Suite to reach our internal test server (which gets me XML that I am not allowed to post

Transfer Property ids (Array) to other TestCases in SoapUI/Groovy

邮差的信 提交于 2020-01-14 04:16:06
问题 I have an API to get list of ids, name, data etc. (TestCase name GET-APIs_OrderdByID_ASC ) I want to transfer those IDs to other following TestCases in same TestSuite or other TestSuite. In SOAPUI, Property Transfer works within TestSteps in same TestCase. (Using OpenSource version). I need to transfer the property value among different TestCases / TestSuites. Below is the code that I can extract ids from one testCase and also name of testCases/testSteps where I want to transfer. import com

How to make SoapUI json request work with german umlauts?

二次信任 提交于 2020-01-13 05:22:11
问题 We use SoapUI for many interfaces in our team project. We came across a problem with german special signs, called umlauts. When sending a POST request with Json body and a german umlaut, the we get com.fasterxml.jackson.databind.JsonMappingException . It cannot be parsed with com.fasterxml.jackson.databind.ObjectMapper . But when sending the same request using POSTMAN, then it works like a charm. We use @Consumes({MediaType.APPLICATION_JSON + "; charset=utf-8"}) annotations and Content-Type:

Groovy script to get the request xml

我只是一个虾纸丫 提交于 2020-01-11 04:12:08
问题 I can get the response xml using Groovy script. I need to get the request XML since I need to add 'assertion script' to my soap ui testing. I am using the following code to get the response xml def response = new XmlHolder(messageExchange.responseContentAsXml) But I am not sure how to get the request xml of SOAPUI. Can anyone please help me in getting the request xml of SOPAUI? 回答1: To get the request content as a string you can use testRunner.testCase.testSteps["Name of your teststeup"]

soapui-java.lang.Exception Failed to load url

怎甘沉沦 提交于 2020-01-10 19:24:43
Step 1 File -> Preferences -> Proxy Settings set to None Step 2 In my case the server were the service was installed was configured only for TLS. SSL was not allowed. So you have to update SoapUI vmoptions file by adding -Dsoapui.https.protocols=TLSv1.2 You can find vmoptions file under SoapUI installation folder: C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\soapUI-5.0.0.vmoptions OR change your server setting to allow SSL 来源: https://www.cnblogs.com/ganting/p/12177603.html