Contributions
SoapUI running in Docker Container throwing java.lang.NoSuchMethodException: Unknown property 'host'
I was able to execute the soapUI script successfully via docker. But in log I am getting the below error. It is not actually causing the step to fail but it happens for every request I make. I was not able to find a reason or fix for this. Could you please help me? I am running SoapUI 5.5.0 open source version in Openjdk8 environment. java.lang.NoSuchMethodException: Unknown property 'host' [exec] at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1741) [exec] at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648) [exec] at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677) [exec] at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:559) [exec] at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:257) [exec] at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) [exec] at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) [exec] at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561) [exec] at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) [exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) [exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) [exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:233) [exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:323) [exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:301) [exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:231) [exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119) [exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:79) [exec] at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:192) [exec] at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:794) [exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211) [exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) [exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138) [exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) [exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128) [exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522) [exec] at java.util.concurrent.FutureTask.run(FutureTask.java:277) [exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) [exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [exec] at java.lang.Thread.run(Thread.java:818)Solved1.1KViews0likes1CommentGoogle Big Query Testing
Did anyone add Big Query result verification to the test suite using Big Query APIs? I am trying to create a test suite to call some jobs, then I want to query a Big Query Table and validate the response using SOAPUI. I am mainly looking for the Auth API and the required headers for the get call. Any help is much appreciated.Solved2KViews0likes1CommentRe: JSONSLURPER - How to check optional array available in response and save value in property?
This value will be used later in another script to compare with another variable from an input excel, but only if it is not 'NA' If i do a condition check like "if(jsonSlurper.Types.Vehicle[0].value.Cars[0].value.Properties[0])", I am getting the null object found error.4.1KViews0likes3CommentsRe: JSONSLURPER - How to check optional array available in response and save value in property?
What I am trying to do is if (condition to check if property array is present in the response) context.testCase.testSteps["Properties"].setPropertyValue("Make", jsonSlurper.Types.Vehicle[0].value.Cars[0].value.Properties[0].Make) else context.testCase.testSteps["Properties"].setPropertyValue("Make", "NA")4.1KViews0likes5CommentsJSONSLURPER - How to check optional array available in response and save value in property?
Hi, Below is a sample JSON response. { "uri": "VehiclesandGadgets", "Types": { "Vehicle": [{ "label": "Click to expand", "value": { "Cars": [{ "label": "Click to expand", "value": { "Properties": [{ "Make": "Honda", "Model": "Civic", "Color": "Red" }], "Specifications": [{ "Engine": "V6", "Gear": "Auto", "Drive": "AWD" }] }, "ov": true }] }, "ov": true }], "Gadget": [{ "label": "Click to expand", "value": { "Gaming": [{ "label": "Click to expand", "value": { "Properties": [{ "Type": "Xbox", "Model": "One", "Color": "Black" }] }, "ov": true }] }, "ov": true }] }, "isFavorite": false } In this JSON, the Vehicle and Gadgetare optional arrays. It can be present in the response or not. Similarly Cars, Properties and Specifications are optional. I want to extract the value of Make using Jsonslurper. But it is possible that properties may not be available in response and some times vehicle may not be. So in such case i want to save Make as "NA" How can I put a if check for the existence of these optional arrays?Solved4.1KViews0likes7CommentsSoapUI with Selenium Integration. How to add dependency in SOAPUI?
I am trying to integrate SOAPUI with selenium so that I can open a web application and run a batch job before proceeding further. I have the latest soapui and latest chrome in my system with latest selenium driver. I am getting the below error java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V Below is my groovy script.:- import org.openqa.selenium.By import org.openqa.selenium.WebDriver import org.openqa.selenium.WebElement import org.openqa.selenium.firefox.FirefoxDriver import org.openqa.selenium.support.ui.ExpectedCondition import org.openqa.selenium.support.ui.WebDriverWait import org.openqa.selenium.chrome.ChromeDriver //WebDriver driver = new FirefoxDriver() System.setProperty("webdriver.chrome.driver", "${path}/chromedriver.exe"); WebDriver driver = new ChromeDriver(); // And now use this to visit Google driver.get("http://www.google.com") Someone please help me to get this resolved?Solved3.3KViews0likes2Comments