soapui

SOAPUI: Global properties not getting saved when updated from different project testrunner in command line

允我心安 提交于 2019-12-12 06:40:04
问题 I have three different projects in SOAP UI and all share a same global property. Through a Groovy script, I need to execute the test suites in these three projects from command line using testrunner. First project creates a global property and when the test suite in the second project gets executed, the global property is coming as null. I have tried using (S) in the command line to save project but still the same issue. When I manually execute the groovy scripts of these three projects, it

Apache CXF wsdl2java: WSDL file returned different from the original one

半腔热情 提交于 2019-12-12 06:19:06
问题 I received a WSDL file from a customer describing a web service they wanted me to offer. Using Apache CXF 3.0.4 and wsdl2java the WSDL file was translated into fully annotated Java code from which I implemented the service. Everything went well until the customer started testing the service using the WSDL file returned from my server via a URL of the following pattern: http://never.mind/SomeService?wsdl When this WSDL URL is loaded in SoapUI I see request XML looking similar to this: <soapenv

How to copy a request in soapui to a folder using groovy?

家住魔仙堡 提交于 2019-12-12 05:49:41
问题 I am new in groovy and I want to have soap request which contains file which I want to be copy to a folder with a specific name when I am running my TestCase. My testcase will be created; first soap request disable and the groovy that will run and copy the soap. Can you please advise? 回答1: Yes, it can be done. It's really straight forward. Took me two minutes to create an example of copying the request and response to files.... In your test, add a groovy step after the request of interest. In

SaopUI GroovyScript - How to modify request XML located in another TestCase?

青春壹個敷衍的年華 提交于 2019-12-12 05:00:03
问题 I am trying to modify a request from another testCase and I'm unable to get its XML. I'd like to know the parameter pattern to get it with this method : def holder = groovyUtils.getXmlHolder( targetStep.getName() + "#Request" ) This method seems to look for "targetStep" in its own testCase. I'd like to know how to specify to this method that I'm looking for "targetStep" in a specific testCase. If it's not possible that way, I'd like to know how to get the XML Content of a testStep in a

Using a variable to extract value of property of an element in groovy using xmlSlurper

眉间皱痕 提交于 2019-12-12 04:55:20
问题 I am using SoapUI to test webservices. The following string (in xml format) is my request: <Request> <AC> <AssetID>1</AssetID> <Asset_Name>ABC</Asset_Name> <Asset_Number>1</Asset_Number> </AC> <AC> <AssetID>2</AssetID> <Asset_Name>XYZ</Asset_Name> <Asset_Number>2</Asset_Number> </Ac> </Request> I am using the following code in a groovy script to extract value of Asset_Number for each AC (The above xml string is stored in variable strRequest): def x = new XmlSlurper().parseText("$strRequest")

Perl SOAP Web Service Call With XML

爱⌒轻易说出口 提交于 2019-12-12 04:47:40
问题 I am calling SOAP web services by using Perl with the SOAP::Lite module as follows: my $soap = SOAP::Lite->on_action( sub { join '/', @_ } ) ->readable( 1 ) ->uri( $uri ) ->proxy( $proxy ) ->ns( $ns ); $soap->call( 'method' => ( SOAP::Data->name( ... ) ) ); Is there any way of calling customer web service by using XML definition displayed at SOAPUI instead of writing SOAP::Data etc? It would be easier if there is an option to do this. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap

How to get the XPath result without any commas or square brackets?

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:19:00
问题 I have a code such as: <out:a> <out:Name Type="First" TypeCode="Best">JAE</out:Name> <out:Name Type="Last" TypeCode="Best">ADAMS</out:Name> </out:a> When I gave the XPath expression as (//*[local-name() = 'Name']/text())[1],(//*[local-name() = 'Name']/text())[2], I got the result as [JAE,ADAMS] How can I give the XPath expression so that I can the result as JAE ADAMS ? 回答1: Your question is unclear as to where you are using this XPath expression. In most cases you could use something like:

How to consume SAP SOAP Webservices, with ksoap2, in android

感情迁移 提交于 2019-12-12 04:14:37
问题 I want to consume SAP webservices in my android app. The webservices are working as intended in SOAPUI (generated requests from the sap wsdl). I have tried using ksoap2 . When using ksoap2 I get "Webservice processing error" as response. I have exhausted all results from google/stackoverflow/sap community network. I have tried the request sent from ksoap2 in SOAPUI, but I am unable to pin down the crucial difference between it and the working (SOAPUI generated) request. Please guide me.

java.lang.NoClassDefFoundError: Could not initialize class org.apache.activemq.util.IdGenerator

你。 提交于 2019-12-12 04:13:18
问题 I am trying to use ActiveMQ 5.10.0 with SoapUI 4.6 and Hermes 1.14 . I get the error below when I try and add a queue. I presume Hermes can't find the type IdGenerator in any of the loaded jars. Which are: activemq-client-5.10.0.jar geronimo-j2ee-management_1.1_spec-1.0.1.jar geronimo-jms_1.1_spec-1.1.1.jar Does anyone know where this class is defined? I looked for activemq-util.jar in the binary distribution but I did not find such a file. Error: java.lang.NoClassDefFoundError: Could not

API automation groovy soapui all together for most

北城以北 提交于 2019-12-12 03:39:49
问题 What automation to do when have to test REST APIs, how to do, and how to get final conformance report, great to be in excel workbook having all API's test report detail. Input file can be an excel workbook or XML file, let's say excel having APIs detail. Main problem I am facing in comparing input expected and response payload, please consider it as JSON and as a result decision should be taken stating test PASS/FAIL. In answer section going to upload developed scripts to do most of the