soapui

Creating automatic folder and files in soapui

让人想犯罪 __ 提交于 2019-12-08 06:45:35
问题 I wrote a groovy script in soapui to create files in certain location in my pc. How can I make it dynamic and enable the user to write the location the files are saved to by write the location in configuration file imported at test suite level. if(context.expand('${#Project#ProduceReports}') == 'true') { def resultDir = new File("D:\\Reports"); if(!resultDir.exists()) { resultDir.mkdirs(); } def resultsFile = new File(resultDir, "CSVReport.csv"); } 回答1: If you want to get the path from a

soapUI and JUnit dependency issue

穿精又带淫゛_ 提交于 2019-12-08 06:35:14
问题 I'm trying to use soapUI integrated to JUnit. I've tried to add the dependencies as mentioned here but it doesn't work. Some classes are not found. In this post, it is proposed to add the soapui/lib directory to the classpath but this is not really a good practice with Maven. Do you know which dependency(ies) to add to my project in order to integrate soapUI to JUnit? Thanks 回答1: Depending on what you're trying to do with SoapUI, you may be able to use its Maven plugin, rather than try to

Combining Maven, SoapUi and HermesJMS

让人想犯罪 __ 提交于 2019-12-08 05:00:47
问题 I need to automate a SoapUI-project that uses HermesJMS with Maven2. The Problem I get is that SoapUI does fail on integrating the HermesJMS into its Classpath. 2012-09-20 15:48:21,340 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details 2012-09-20 15:48:21,465 ERROR [errorlog] java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.addHermesJarsToClasspath(HermesUtils.java:120)

Groovy in SOAPUI Asserting on repeating nodes located by expected data

二次信任 提交于 2019-12-08 03:32:54
问题 Below is an example response to explain my scenario <ns2:Details xmlns:ns2="http://ww"> <ns2:Code>011</ns2:Code> <ns2:Result>4</ns2:Result> </ns2:Details> <ns2:Details xmlns:ns2="http://ww"> <ns2:Code>018</ns2:Code> <ns2:Result>0</ns2:Result> </ns2:Details> <ns2:Details xmlns:ns2="http://ww"> <ns2:Code>098</ns2:Code> <ns2:Result>2</ns2:Result> </ns2:Details> The data that I am interested in testing here is contained in ns2:Result . I already know what value I am expecting in this node, but it

SOAPUI: How to find node count in JSON response

三世轮回 提交于 2019-12-08 03:02:13
问题 I have JSON response below in SOAP UI:- I need to find number of JSON Nodes in this JSON. I tried with JSONPATH Count but it doesn't give accurate result. Here 8 nodes are there wich is expected as output. <data contentType="text/plain" contentLength="772"><![CDATA[[{ "EmployeeId": "99", "EmployeeName": "Doe", "Role": "Dr" }, { "EmployeeId": "88", "EmployeeName": "John", "Role": "Dr" }, { "EmployeeId": "999", "EmployeeName": "Doe", "Role": "Dr" }, { "EmployeeId": "888", "EmployeeName": "John"

'Did not understand “MustUnderstand” header(s)' Error in SoapUI Response

被刻印的时光 ゝ 提交于 2019-12-08 02:20:32
问题 Im trying to use SoapUI for automated tests of a webservice. When I send the request form the server where the test should be automated, I always get the following response: ---------------- Request --------------------------- Request Headers: Authorization : Basic Host : domino.auto-partner.net Content-Length : 1286 SOAPAction : "RETURNRESPONSE" Accept-Encoding : gzip,deflate User-Agent : Apache-HttpClient/4.1.1 (java 1.5) Connection : Keep-Alive Content-Type : text/xml;charset=UTF-8

getNodeValue() returns null although response xml holder does not

那年仲夏 提交于 2019-12-07 22:53:28
问题 I am using the demo web service of SOAP UI-GetCityWeatherByZip. The script is to read different zip codes from a csv file, pass them in the request xml, get the response and store the results in a csv file. ulresp variable is used to store the response and is not returning null but getnodevalue is returning null. I am not sure what the problem is. The zipcodes are correctly being read. The service also runs fine.Code is as follows. def groovyUtils = new com.eviware.soapui.support.GroovyUtils(

WCF Test client and authentication

强颜欢笑 提交于 2019-12-07 22:05:48
问题 I'm trying to call a webservice with WCF Test Client but the webservice requires authentication. How do I log on and call it by WCF Test Client (I tried to get it from browsers and then to call but does not work). I could use SOAP UI, but I'd like to do it with WCF Test Client if is possible. Maybe changing WCF config? Error: Cannot obtain Metadata from If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at

Service Stack Serialization Exception for soap 1.1

我的梦境 提交于 2019-12-07 20:14:26
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:ExternalAccountID>String</d2p1:ExternalAccountID> <d2p1:Message>String</d2p1:Message> </getAccountResponse> <

source tree shows loads of files changed when soapUI saves the project

北战南征 提交于 2019-12-07 18:58:47
问题 I am working in the SoapUI(ReadyAPI 1.3.x) composite project hosted in bitbucket. For the code management I use SourceTree. When ever I pulled a new project and plug it in to soapUI, the first time the project gets saved, the source tree shows as allmost all the files chaged. When I look at the file changes, I don't see a visible content change. Ex: [1] I have few image files in my test suite, the source tree shows the files are removed and added back to the same location (Basically they show