soapui

SOAPUI java illegalstateexception scheme 'https' not registered

点点圈 提交于 2019-12-06 17:01:00
问题 I am trying to test connection to webservice using the soap UI. Created the project by importing the WSDL into soapUI and also set the keystore and keystore password under SSL seetings. However when I submit the request I get below error. Not sure how to register "https". Can you please help? java.lang.IllegalStateException: Scheme 'https' not registered 回答1: You can try to create a groovy testStep in your testCase with the code below, this code creates the SSLContext and registry the https

Creating automatic folder and files in soapui

别来无恙 提交于 2019-12-06 15:55:23
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"); } If you want to get the path from a testSuite property, you can do it as you do with the project property, using context.expand : def yourPath =

关于soapui接口的笔记

大憨熊 提交于 2019-12-06 15:28:09
1、接口包含内容 #request: HTTP版本/请求地址url 请求方法:GET、POST、PUT、DELETE等 请求头:content—type 请求正文:请求参数 #response: 状态码:标记响应状态的一个识别,200=OK,(只代表服务器接收到,不代码响应正确) 响应头:content-Type 响应正文:响应码,msg #开发定义的接口文档 如果开发没有写接口文档或者不全,可自己抓包捕获(fiddler/浏览器F12开发者工具) 2、接口传递的数据格式:Conetent—Type   ~application/json (键值对) { “name”:“namevalue”, “pwd”:“12345” }   ~application/x-www.form-urlencode(表单形式)   ~text/xml(标签) <name>namevalue</name> <pwd>123456</pwd>   ~multipart/form—data(表单形式,上传文件) 3、接口测试流程   ~获取接口需求   ~编写接口测试用例及评审   ~整理接口测试脚本   ~执行接口测试用例   ~提交bug并完成跟踪   ~测试结束出具报告 4、接口文档一般包含:1、接口说明(请求方式、响应类型、请求参数、接口地址)            2、数据库连接说明(数据库地址

SoapUI request to WCF service fails using certificates

荒凉一梦 提交于 2019-12-06 15:20:25
I have a custom binding like following for my WCF service which I am trying to call from the soapUI 4.5.1 <customBinding> <binding name="NewBinding0"> <transactionFlow /> <security authenticationMode="MutualCertificate" defaultAlgorithmSuite="Basic128" securityHeaderLayout="Lax" includeTimestamp="false" messageProtectionOrder="SignBeforeEncrypt" allowInsecureTransport="true" requireSignatureConfirmation="false" requireDerivedKeys="false" keyEntropyMode="ClientEntropy" requireSecurityContextCancellation="false" allowSerializedSigningTokenOnReply="true" messageSecurityVersion=

Groovy in SOAPUI Asserting on repeating nodes located by expected data

跟風遠走 提交于 2019-12-06 14:51:41
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 has to be associated with the correct ns2:Code value. For instance, to make this test pass I would

How to compare values from response of two different requests in SOAP UI using groovy?

久未见 提交于 2019-12-06 14:39:00
I am using SOAP UI Pro for test automation and I am new for that. I am using this tool for Rest API automation. I sent a POST service request and got some response for example : unique id, first name, last name. Now I send another GET request with input parameters as first name, last name from my previous POST request response (using property transfer step) and in response I got another unique id (response of GET). My requirement is to compare these two unique ids from these two different responses using groovy and mark test pass or fail based on the outcome. Please help. You can access the

SOAPUI: How to find node count in JSON response

☆樱花仙子☆ 提交于 2019-12-06 14:29:23
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", "Role": "Dr" }, { "EmployeeId": "777", "EmployeeName": "Keerthi", "Role": "Dr" }, { "EmployeeId":

Is it legal to have different SOAP namespaces/versions between the request and response?

两盒软妹~` 提交于 2019-12-06 14:26:14
问题 THIRD EDIT: I now believe that this problem is due to a SOAP version mismatch (1.1 request, 1.2 response) masquerading as a namespace problem. Is it illegal to mix versions, or just bad style? Am I completely out of luck if I can't change my SOAP version or the service's? SECOND EDIT: Clarified error message, and tried to reduce "tl;dr"-ness. EDIT: [Link deleted, not related] Using soapUI, I'm sending a request that starts with: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap

getNodeValue() returns null although response xml holder does not

吃可爱长大的小学妹 提交于 2019-12-06 12:53:52
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( context ) def f = new File(groovyUtils.projectPath + "\\Trial\\TestData1.csv"); int row; log.info(f

KSOAP2 for Android gives

好久不见. 提交于 2019-12-06 11:00:13
问题 I'm trying to access a web service whose WSDL is at http://srilanka.lk:9080/services/CropServiceProxy?wsdl . Using SoapUI I sent a request and successfully got a response. Then using KSoap2 for Android I tried to get a response. But all I get is a SoapFault Error. The code is as follows. String NAMESPACE = "http://schemas.icta.lk/xsd/crop/handler/v1"; String URL = "http://www.srilanka.lk:9080/services/CropServiceProxy.CropServiceProxyHttpSoap12Endpoint"; String method_name = "getCropDataList"