soapui

script library using Groovy - SOAPUI

断了今生、忘了曾经 提交于 2019-12-11 09:52:36
问题 Hi there, I’m starting to work with SOAPUI and Groovy. I found the reusable code problem. I mean, I would like to avoid having a lot of copies of the same script in different projects. As I want to make a "global library", how could I do it? I saw the following method, http://www.spamer.me.uk/wiki/doku.php/soapui_reusable_script_library?rev=1350558275 but I have some doubts. Would it be the only way to do it? Thank you very much for your help and sorry for the inconvenience. 回答1: You need

Context missing from called test case

泄露秘密 提交于 2019-12-11 09:39:56
问题 In SoapUI I’m running a test case from a groovy script with this code: def contextMap = new StringToObjectMap(context) def myTestCase_1 = myTestSuite.getTestCaseByName("TestcaseName") myTestCase_1.run(contextMap, false) In the called test case I set some context properties in a groovy script in this way: context.setProperty(“ProperyName”,”Value”) After the called test case has finished the created property values are missing in the context of the groovy script that has called this test case.

How to check a value matches with another correpsonding value in a json response

妖精的绣舞 提交于 2019-12-11 07:54:57
问题 What is the most dynamic way of checking each instance of a json response value matches another json response value within a script assertion? What I mean is lets say I have the following response below: { "xxx": [{ "roomInformation": [{ "xxx": xxx }], "totalPrice": xxx }, { "roomInformation": [{ xxx: xxx }], "totalPrice": xxx } ] } I want to check that the first room price to match with the first totalPrice and the second roomPrice to match with the second totalPrice . It has to be dynamic

In a WSDL file, can the XPath of a response element be determined without invoking the service?

扶醉桌前 提交于 2019-12-11 07:36:52
问题 In a WSDL file, can the XPath of a response element be determined without invoking the service? I mean just by looking at the wsdl content is it possible? If so what tools are there which makes it easy to do this. Can this be done using SOAP UI? 回答1: Sure. Consume the WSDL with SoapUI, create a MockService with sample responses, usually with ? for the values in the tags. Position your cursor on one of those. Below the request is a multi-tab status window. Click the XML tab, and that will

How to execute shell script using soapUI

匆匆过客 提交于 2019-12-11 07:13:38
问题 I have one shell script like sample.sh . I want to execute this script using soapUI. How to execute it using soap UI?? 回答1: You can use Groovy Step to do this. Something like: p = Runtime.getRuntime().exec("sample.sh") p.waitFor() 回答2: if you want to get results as a string: Windows: def result = 'cmd /c sample.bat'.execute().text Shell: def result = 'sh -c sample.sh'.execute().text Please note, the "cmd /c" or "sh -c" part is needed usually to execute a file. If you want to run simple

generating web-service classes using soapUI with a WSDL over HTTPS

*爱你&永不变心* 提交于 2019-12-11 07:07:33
问题 I'm using SoapUI to generate my web service client classes (using wsimport/jax-ws ri if it makes a difference). I've had no problem with this for several services, however, the one im working on now has a wsdl file which is served via https and I get the following error when I try to generate my client classes. [ERROR] sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to

Is it possible to test a webservice using just an endpoint and XML code using SOAPUI Pro tool?

谁说我不能喝 提交于 2019-12-11 05:43:38
问题 I have been given an endpoint and piece of XML to test using SOAPUI Pro tool. Can someone please tell me how do i go about it with the available information? Or should i be asking for more information from the developer? Since i'm new to webservice testing, can someone please help me out?. Thanks in advance. 回答1: Yes you can use this information to test your web service. Try putting a ?wsdl at the end of your endpoint this should give you the wsdl. Load the wsdl url onto soapUI which will

Can I use SOAPUI for concurrency testing?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 05:33:03
问题 I am trying to test my web service using SOAPUI (the free version). For testing concurrency, I wished to fire concurrent threads from SOAPUI onto the service. But with the options, the thread count increases gradually (even in the burst mode). The machine where SOAPUI is installed is a WinXP machine. Can I actually do the concurrency testing? If so how? Please guide me. I am waiting for your answers and help. 回答1: If you want a constant load just use the "simple" strategy. Select a thread

How to parameterise a value in Soap request

非 Y 不嫁゛ 提交于 2019-12-11 03:30:43
问题 I am new to soapUI so getting to grips with the tool, so any help would be much appreciated.. We have two environment configured (DEV, Staging) each with different end points which enables me to run my testsuite on either of the two environment. As part of request in one of my testcases, I need to supply an 'accountID' however this accountID is different for each Environment therefore I would like to know how and where I can add the logic that would enable me to chose different account ID

How to update Resource value in ReadyAPI/SoapUI dynamically by groovy?

可紊 提交于 2019-12-11 03:12:03
问题 my resource is in this format "testing/101/getCustomer/99" Here I need to change "101" and "99" part dynamically by groovy so that I can run for multiple values in same test case. I looked into the ReadyAPI's built in feature, but it was not that helpful. I also found this link, but it changed the resource in the entire project. The solution I am looking for is in test case level. As my each test case will have different url. https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-set