soapui

SOAPUI Square brackets around my actual results causing assert to fail

本秂侑毒 提交于 2019-12-24 12:13:05
问题 I am writing a Groovy script assertion which is verifying a value from a previous JDBC response step against a value contained in a SOAP response. When I run my scripts I can see that both values are coming back the same but the actual result value (from the SOAP response) is surrounded by square brackets which in turn makes the assert fail. I'm guessing this is something to do with one being a string and one not? How do I either strip out the square brackets from actual result or get them

How to customize soapUI library to generate request & response from WSDL?

*爱你&永不变心* 提交于 2019-12-24 10:03:07
问题 I am developing a module which will take a wsdl & generates request & response documents. For this I am using soapui library as mentioned in this code Post package com.bbog.soap; import com.eviware.soapui.impl.wsdl.WsdlInterface; import com.eviware.soapui.impl.wsdl.WsdlOperation; import com.eviware.soapui.impl.wsdl.WsdlProject; import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter; import com.eviware.soapui.model.iface.Operation; public class WsdlAnalyzer { public static void main

Empty Ant <junitreport> report for SoapUI testrunner XML results

一笑奈何 提交于 2019-12-24 09:16:32
问题 I am running a SoapUI project using Ant to get a JUnit report. Here is my build.xml: <project basedir="." default="testreport" name="APIAutomation"> <target name="SoapUI"> <exec dir="." executable="C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\testrunner.bat"> <arg line="-r -j -a -f 'C:\Users\F3020722\Desktop\Notification\New folder' -sFirstLoginTest 'C:\Users\F3020722\Desktop\Notification\New folder\APIRegression.xml'"></arg> </exec> </target> <target name="testreport" depends="SoapUI">

Files not being stored in folder directory

喜你入骨 提交于 2019-12-24 07:59:23
问题 I am having issues trying to place files within a file directory I have created. I want the files to go into the created folder 'GET_Tests{Test}' but instead of going into this folder, it is placing the files on the same directory the folder is within. I have tried a few things to try and get it working but no luck, what do I need to change in order to get the files stored within the folder? Below is the code. One script is ReadData and the other is PrintToLogFile. ReadData creates the folder

Can jmeter create requests using wsdl as soapui

好久不见. 提交于 2019-12-24 07:58:55
问题 Can jmeter create requests using wsdl as soapui? When you open wsdl in soapui it create all the request available Do I have such/similar option to do it using jmeter? 回答1: Itself JMeter cannot, however you can record SoapUI execution through JMeter's HTTP(S) Test Script Recorder. SoapUI proxy configuration lives under File -> Preferences -> Proxy Settings Another option is using Taurus tool to convert SoapUI XML project into JMeter .jmx test script, see SoapUI Support and How to Convert

How to get certain expected values using SOAP UI Xquery Matches

六月ゝ 毕业季﹏ 提交于 2019-12-24 05:31:25
问题 I have a webService that returns certain values. I know what those values will be. I want to pick them out of the XML and if those values are true I want the assertion to pass. Imagine that my test passes if I get this result... How can I assert that that is the case? <BasicPersons> <id>4</id> <firstName>Patricia</firstName> <middleName>A</middleName> <lastName>Cluss</lastName> </BasicPersons> <BasicPersons> <id>5</id> <firstName>Benjamin</firstName> <middleName>L</middleName> <lastName

SoapUI log.info opens dialogue box for some reason when comparing two xml files and logging the differences

江枫思渺然 提交于 2019-12-24 05:09:04
问题 For some reason the following script when executed, prints the output not only in the log but also in an information pop-up dialogue box. Can someone explain to me why this occurs and how I can prevent it from happening? import groovy.io.FileType; import org.custommonkey.xmlunit.*; def file1 = "somepath/file1.xml" def file2 = "somepath/file2.xml" def xml1 = new FileReader(file1) def xml2= new FileReader(file2) XMLUnit.setIgnoreWhitespace(true) XMLUnit.setIgnoreComments(true) XMLUnit

selenium webdriver inside soapui, passing the driver instance

两盒软妹~` 提交于 2019-12-24 03:46:07
问题 I am currently working on a testsuite that is maintained inside soapui. This testsuite also contains some web functionality tests that are implemented as HTTP.GET and HTTP.POST requests. I would like to port those tests to WebDriver. Inside SoapUI, there is a possibility to run a groovy script that basically gives you access to writing java code which I have been trying to do. What I have at the moment is: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver;

Xpath matches with single quotes?

白昼怎懂夜的黑 提交于 2019-12-24 03:22:15
问题 How can I assert an xpath match that contains single quotes within the string to be asserted? This is my string with value '40' to be asserted. I assumed to escape the single quote characters with \' but that does not work. matches( //faultstring[1]/text(), 'This is my string with value \'40\' to be asserted.' ) How is this done properly? 回答1: Try this //faultstring[matches(text(),''')] or //faultstring[matches(text(),'&apos;')] or //faultstring[matches(text(),''')] For a more elegant

Groovy - XML to JSON without knowing each key

别说谁变了你拦得住时间么 提交于 2019-12-24 02:59:11
问题 I have an XML web service response (see below) and would like to convert it to JSON, without knowing each key. The response is much bigger, this is just a sample showing the structure. Is this possible to do in Groovy? <allMortProdContainers> <WsMortProdContainerv02> <allWsMortProdCapCollarBandByEnd xsi:nil="true"/> <allWsMortProdCashBackBandByEnd xsi:nil="true"/> <allWsMortProdEarlyRepaymentBandByEnd> <WsMortProdEarlyRepaymentBandv01> <endDate>???</endDate> <endMonth>???</endMonth>