soapui

How do I make soapUI attachment paths relative?

烂漫一生 提交于 2020-01-02 05:20:09
问题 I'm using soapUI to test an HTTP server. I need to send a multipart/form-data request, and the request works fine when I go through the file chooser and attach it, but it's saving the path as an absolute path, and I need to save a path relative to my test file (but not cached IN my test file). How can I do this? FYI, I'm using SoapUI 4.0.1 free edition and I am willing to using a groovy coding step if I could figure out how to access the attachment path from it. 回答1: OK, I solved this by

Groovy to validate the list of node values with the values stored in a property step

谁都会走 提交于 2020-01-01 19:17:27
问题 Properties ScreenshotResponse Snippet <tns:TAResponse xmlns:tns="http://webconnectivity.co.uk/"> <tns:SessionToken>84hjfutryh47849dkdhg9493493=</tns:SessionToken> <tns:PartyId>1234</tns:PartyId> <tns:ResponseType></tns:ResponseType> <tns:MessageUUId>12341F17-ABC9-3E99-1D12-B8289POO2107</tns:MessageUUId> <tns:Matches> <tns:IntegrationServiceMatch> <tns:InternalReference>2066856</tns:InternalReference> <tns:ErrorsAndWarnings> <tns:IntegrationServiceErrorCode> <tns:ErrorCode>W000026</tns

Groovy to validate the list of node values with the values stored in a property step

自闭症网瘾萝莉.ら 提交于 2020-01-01 19:16:06
问题 Properties ScreenshotResponse Snippet <tns:TAResponse xmlns:tns="http://webconnectivity.co.uk/"> <tns:SessionToken>84hjfutryh47849dkdhg9493493=</tns:SessionToken> <tns:PartyId>1234</tns:PartyId> <tns:ResponseType></tns:ResponseType> <tns:MessageUUId>12341F17-ABC9-3E99-1D12-B8289POO2107</tns:MessageUUId> <tns:Matches> <tns:IntegrationServiceMatch> <tns:InternalReference>2066856</tns:InternalReference> <tns:ErrorsAndWarnings> <tns:IntegrationServiceErrorCode> <tns:ErrorCode>W000026</tns

Improve SOAP UI performance

…衆ロ難τιáo~ 提交于 2020-01-01 07:33:09
问题 I've started using SOAP UI recently to test web services and it's pretty cool, but it's a huge resource hog. Is there any way to reduce the amount of resources it uses? 回答1: It shouldn't be a resource hog, although I've seen it do this before. I leave it running on my PC all week, and a co-worker with a similar machine (dual-core running XP) has to kill it every few hours, otherwise it keeps using CPU. I'd try uninstalling/re-installing. Currently, my instance has been up for 10 days, running

Store request/response files in local directory with Groovy teststep in soapUI

半世苍凉 提交于 2020-01-01 03:17:37
问题 Through a groovy teststep in soapUI i want all request and response files to be stored in a local directory with system date. The groovy teststep in soapUI: def name = context.expand( '${Input#TG}' ) def locatie = context.expand( '${#TestCase#locatie}' ) def createFolder() { date = new Date() dateFormat = new java.text.SimpleDateFormat('ddMMyyyy') shortDate = dateFormat.format(date) outputFolder = locatie+shortDate createFolder = new File(outputFolder) createFolder.mkdir() } def

SOAP-UI - How to pass xml inside parameter

霸气de小男生 提交于 2019-12-31 08:27:16
问题 In SOAP-UI I am making a request to a web service like this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xxx="http://xxx.call/"> <soapenv:Header/> <soapenv:Body> <cotf:call_XXX> <!--Optional:--> <arg0> <!--Optional:--> <parameter1>some text</parameter1> <!--Optional:--> <parameter2>XML string</parameter1> </arg0> </cotf:call_XXX> </soapenv:Body> </soapenv:Envelope> What I would like to know is how I can pass an XML string on parameter 2 since if I put the

SOAP-UI - How to pass xml inside parameter

狂风中的少年 提交于 2019-12-31 08:27:13
问题 In SOAP-UI I am making a request to a web service like this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xxx="http://xxx.call/"> <soapenv:Header/> <soapenv:Body> <cotf:call_XXX> <!--Optional:--> <arg0> <!--Optional:--> <parameter1>some text</parameter1> <!--Optional:--> <parameter2>XML string</parameter1> </arg0> </cotf:call_XXX> </soapenv:Body> </soapenv:Envelope> What I would like to know is how I can pass an XML string on parameter 2 since if I put the

SOAPUI & Groovy Scripts, executing multiple SQL statements in one go

狂风中的少年 提交于 2019-12-31 01:59:10
问题 I've got some soapUI tests, that use groovy scripts to first insert some data into a table Previously, I've been using the following snippet of code to do this : def conn = context.dbConnEtopup conn.execute( "INSERT INTO A(ID, NAME) VALUES (1, "Johnny")" ) This works fine, however I have many test scripts that now do a similar (if not the same) SQL statements, so I'm trying to approach this by loading it in from a properties file, so my actual SQL statement is only in one place, for easier

How to transfer properties between different projects in SoapUI

允我心安 提交于 2019-12-30 07:48:16
问题 I am new to SoapUi and need some help with following scenario: I have two project, each has different WSDL file associated with it Project1: Administration ->Login ->Logout Project2: Retrieval ->Search How do I transfer properties (UserID, AuthToken) from soap response in Login testcase from project 1 to Soap request in 'Search' testcase in Project2? I have tried by adding test step 'Property Transfer' but that only return list of testcases under Project1 (e.g. 'Logout') but not the testcase

WCF wsHttpBinding in SoapUI

瘦欲@ 提交于 2019-12-30 07:02:07
问题 I am trying to add WCF service with wsHttpBinding to soapUI. I am using message security and it works with test client but SoapUI returns An error occurred when verifying security for the message Here is service configuration: <wsHttpBinding> <binding name="wsHttpSecure"> <security mode="Message"> <message clientCredentialType="UserName" negotiateServiceCredential="true" establishSecurityContext="false" algorithmSuite="Default" /> </security> </binding> </wsHttpBinding> Here http://www.soapui