soapui

Selenium UnreachableBrowserException - “Could not start a new session” in SoapUI Groovy TestStep

谁说胖子不能爱 提交于 2019-12-17 19:14:59
问题 I use SoapUI Pro 5.1.2 on Win7 x32, and try to connect to Selenium Webdriver in Groovy TestStep. For this purpose I added selenium-standalone-server.jar v2.45.0 in $SOAP_HOME$\bin\ext folder. My Groovy TestStep code: import org.openqa.selenium.WebDriver import org.openqa.selenium.chrome.ChromeDriver System.setProperty('webdriver.chrome.driver', 'C:\\\\Windows\\system32\\chromedriver.exe') log.info(System.getProperty('webdriver.chrome.driver')) //got 'C:\\Windows\system32\chromedriver.exe'

SoapUI getting request parameters in mock service script

做~自己de王妃 提交于 2019-12-17 15:37:45
问题 This is probably a very easy one for all SoapUI regulars. In a SoapUI mock service response script, how do I extract the value inside the request I'm replying to? Let's say the incoming request has <ns1:foo> <ns3:data> <ns3:CustomerNumber>1234</ns3:CustomerNumber> </ns3:data> </ns1:foo> How do I get the "1234" into a Groovy variable? I tried with an xmlHolder but I seem to have the wrong XPath. (I know how to set a property and integrate its value into the response already.) 回答1: If you want

Creating a Test Report from Project level tear down script

僤鯓⒐⒋嵵緔 提交于 2019-12-17 14:53:42
问题 I have generate a report based on an execution of a test suite where it creates a folder directory and insert a file displaying the report. This is compiled within a TearDown Script at Test Suite level. Below is the code: def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def dataFolder = groovyUtils.projectPath def failedTestCases = 0 def succeedTestCases = 0 def totalTestCases = 0 def testCaseFailed = "" def testCaseSucceed = "" def date = new Date() def folderTime = date

How to parse a URL to fetch it's parameters in groovy?

亡梦爱人 提交于 2019-12-14 03:37:17
问题 I am new to groovy scripting and looking on to parse the URL and print it's parameter. This url is : https://www.google.com/?aaa=111&bbb=222&ccc=33&dd=1484088989_b23f248ac6e5d9a9b47475526bb92ee1 How can i fetch dd parameter from the URL? I appreciate your help! 回答1: You need to add a groovy script. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); def testCase = context.testCase; def testStep = testCase.getTestStepByName("NAME_TESTStepRequest"); def endpoint =testStep

How do you run SOAP UI test suite with Commandline tool like Jenkins

和自甴很熟 提交于 2019-12-14 02:13:15
问题 I am new to soap ui and Jenkins how do you run soap ui test suites using Jenkins? how do you generate reports in soap ui? 回答1: I think below link has all the information you need http://www.soapui.org/Test-Automation/functional-tests.html Jenkins is actually a continuous integration tool. Once you are able to invoke SOAP UI via Command line, then you can use jenkins to run your tests periodically in the remote machines you have configured. 回答2: Forget going to SoapUI documentation to get it

SoapUI Testrunner giving error about TestAssertionRegistry

徘徊边缘 提交于 2019-12-14 01:30:12
问题 I am able to run my test case successfully with valid assertions, but when running via testrunner, it starts off with these errors - ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] ERROR [TestAssertionRegistry] Missing assertion for type [JsonPath Match] Where do these errors come from? I disabled all my test steps but to

How to set character encoding in SOAP request

不想你离开。 提交于 2019-12-14 00:50:39
问题 I am calling a SAP SOAP Service from a web servlet in Java. For some reason SAP is giving me an error every time I use special characters in the fields of my request such as 'è' or 'à'. The WSDL of the SOAP Service is defined in UTF-8 and I have set my character encoding accordingly as you can see below. However I am not sure this is the correct way. Also, notice that if I use SOAP UI (with the same envelope) the request works correctly so it must be something on Java side. URL url = new URL

Jenkins throws org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA

微笑、不失礼 提交于 2019-12-13 19:40:22
问题 I am running automated tests using SOAPUI. My tests run safe when running in SOAPUI but one test fails when running in Jenkins as maven project. 10:54:36,633 ERROR [SoapUI] An error occurred [error: Unexpected element: CDATA], see error log for details org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712) at org.apache.xmlbeans.impl.store

WCF - SOAP Action mismatch error while testing with SoapUI

丶灬走出姿态 提交于 2019-12-13 16:25:10
问题 How do I fix this? > <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" > xmlns:a="http://www.w3.org/2005/08/addressing"> <s:Header> > <a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/fault</a:Action> > </s:Header> <s:Body> > <s:Fault> > <s:Code> > <s:Value>s:Sender</s:Value> > <s:Subcode> > <s:Value>a:ActionMismatch</s:Value> > </s:Subcode> > </s:Code> > <s:Reason> > <s:Text xml:lang="en-US">The SOAP action specified on the message, '', does not match the HTTP

How to Decrypt Recieving Message from WSO2 Secured Proxy Service in Soap UI 5.0.0

五迷三道 提交于 2019-12-13 15:21:02
问题 I am trying to call a secure proxy service in WSO2 ESB. I followed this tutorial. I have successfully called the proxy service. I have also received the response in my proxy service "Out" sequence. But when I am sending this response back to SOAPUI. I am facing certain problems. I have done all the configurations as mentioned in the tutorial. First Method: When I try to send my request and define "Authentication" Properties in the following way. In which i include both the Outgoing WSS and