soapui

Attaching file in SoapUI with groovy

纵然是瞬间 提交于 2019-12-03 08:53:26
I'm creating some tests in SoapUI. SOAP request, that i want to test has attachment. When I'm setting it manualy, everything is ok: But in my case, i need to set attachment dynamically. I'm trying to made it by properties to hold file path, and groovy script to set attachment. but it's not work at all: // get request def request = testRunner.testCase.getTestStepByName( "UploadRoutingCodes" ).testRequest // clear existing attachments for( a in request.attachments ) { request.removeAttachment( a ) } // get file to attach //def fileName = context.expand( '${Source of data#PathToXRC File data name

Tool for testing RESTful Web services [closed]

独自空忆成欢 提交于 2019-12-03 08:48:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to evaluate the right tool to test RESTful Web services and eventually automate the same for our project. Wondering, what are the specifications I need to look for such test, when i compare various tools on internet. Definitely, one of the requirements would be an Open source tool. I have looked on

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

房东的猫 提交于 2019-12-03 07:51:41
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 getResponseFilename(name) { respFilename = createFolder()+"_"+name+"_response.xml" } def getRequestFilename(locatie

Creating script library in SoapUI free version

守給你的承諾、 提交于 2019-12-03 07:26:54
I am new in SoapUI and groovy scripting I would like to create a repository of groovy scripts that can be reused at various test steps I am using SoapUI Free version and following is the structure of my SoapUI Project Project |-TestSuite | |-TestCase | |-TestSteps | |-LocalScript (Groovy TestStep to reuse library scripts) | |-OtherTestStep (Run TestCase TestStep) |-ScriptLibrary |-TestCase |-TestSteps |-GroovyScriptStep1 (Contain a class for commonly used functions) |-GroovyScriptStep2 (Contain another class for other functions) Here is what I was able to do: I was able to create a library

SoapUI 关联之Property Transfer、JSONPath、Xpath

。_饼干妹妹 提交于 2019-12-03 04:17:22
进行接口功能测试过程中,经常会碰到,需要获取到上一个请求响应结果中数据,传递到下一个请求中来使用。在soapui中我们通过Property Transfer来实现。 1、Property Transfer功能界面介绍 右键项目project-->new TestSuite-->new TestCase-->右键Test Steps-->Add step-->Property Transfer 详细参考官方文档: https://www.soapui.org/docs/functional-testing/teststep-reference/property-transfers.html 2、Property Transfer 之 JSONPath 假设我们有两个接口:登录、查询用户信息。登录后响应结果会返回一个token值;查询用户信息时,请求头中需带上这个token值,才能查询成功 1)登录请求,运行返回结果成功,且返回token值 2)查询用户信息,请求头中添加token值,运行,成功查询到当前登录用户的信息 如果只有以上2步,则每次都得先运行登录,copy出token值,再粘贴到查询用户信息的请求头,再运行;相当麻烦;因此在以上2步中间,我们需要插入一个step 3)右键loginIn-->Insert Step-->Property Transfer

soapui WSDL error when adding

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I keep getting this error when adding this. Any ideas. I worked on other WSDL links and they are fine except this. org.apache.xmlbeans.XmlException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 回答1: The WSDL is on https, so you need to add the domain certificate to your cacerts on JRE which comes with SOAPUI installation (also could be probably that wsdl is

how to make scriptom work with soapUI

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use scriptom to access COM objects in soapUI but i am not able to get beyond step 1, i.e., installing scriptom. I have tried the steps mentioned in http://www.soapui.org/forum/viewtopic.php?t=96 but when i run a simple command(see below) import org.codehaus.groovy.scriptom.* def tdc = new ActiveXObject ('TDApiOle80.TDConnection') i get a class not defined error(see below) Has anyone been able to successfully use scriptom with soapUI? If yes can you please help me? ps: i am using soapUI 4.5.2 Pro and OS. I need scriptom to work with

soapUI: Error does not close tag

怎甘沉沦 提交于 2019-12-03 01:01:48
I'm trying to use soapUI 4.5.2 for the first time. I've created simple .NET ASPX web service and copied the following address into the soapUI: http://localhost:52086/WebService1.asmx But, the following error came up: Error loading [http://localhost:52086/WebService1.asmx]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: does not close tag I've disabled proxy option in soapUI preferences. How to make it work? Watch for ?wsdl . You should use it like this: http://localhost:52086/WebService1.asmx?wsdl I had the same problem with SoapUI 5.0.0 on Linux Mint. In my case

SoapUI启动报错:The JVM could not be started. The maximum heap size (-Xmx) might be too large

匿名 (未验证) 提交于 2019-12-03 00:18:01
SoapUI启动的时候,报如题错误,经过排查,在安装目录\bin\下,找到SoapUI的vmoptions参数配置文件 打开发现-Xmx参数配置,将默认值改小一些即可: [plain] view plain copy 以上配置,将默认-Xmx值改成800,启动成功 文章来源: SoapUI启动报错:The JVM could not be started. The maximum heap size (-Xmx) might be too large

SoapUI “failed to load url” error when loading WSDL

╄→гoц情女王★ 提交于 2019-12-02 21:49:09
I keep having some weird problems. The main one is that I keep getting the following error when trying to add a WSDL to a new project: Error loading [https://.../token?wsdl]: java.lang.Exception: Failed to load url; https://.../token?wsdl, 0 - Here's the message recorded in the error.log file: java.lang.Exception: Failed to load url; https://.../token?wsdl, 0 - at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:184) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:121) at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils