Contributions
Command line gives 'proxySelector == null' how does one stop this from running?
I have a gs that works fine when i run manually in windows, but when i run from centos i get this most irritating message here is my code import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.Keys; import org.openqa.selenium.remote.DesiredCapabilities; path = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "driverPath" ) drive= com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "driver" ) fpath= path+drive System.setProperty('webdriver.chrome.driver',fpath) url = "https://www.google.com" ProxySelector proxy = ProxySelector.getDefault() ProxySelector.setDefault(proxy) ChromeOptions chromeOptions = new ChromeOptions() chromeOptions.addArguments("--headless") chromeOptions.addArguments("--window-size=1024x768") WebDriver driver = new ChromeDriver(chromeOptions) WebDriverWait wait = new WebDriverWait(driver,30) driver.manage().window().maximize() driver.get(url) driver.findElement(By.xpath("//input[@title='Search']")).sendKeys("hello") driver.findElement(By.xpath("//input[@value='Google Search']")).click() driver.close() driver.quit() return; I run it the following way ./testrunner.sh -G driver=chromedriver -G driverPath=/opt/drivers/ -G capturePath=/opt/captures/ -s Regression -c "Open Google" /opt/projects/opengoogle.xml I have even added this in the .vmoptions file -Dsoapui.browser.disabled=true But yet i am still getting Driver info: driver.version: ChromeDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at Script1.run(Script1.groovy:27) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:76) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:594) at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:573) at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:405) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:202) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137) at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112) at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122) Caused by: java.lang.NullPointerException: proxySelector == null at okhttp3.Address.<init>(Address.java:79) at okhttp3.internal.http.RetryAndFollowUpInterceptor.createAddress(RetryAndFollowUpInterceptor.java:206) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:112) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:102) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) ... 30 more How does one either disable this proxy call, or make it not null. I see a few people are having the same issue. I'm using the right versions according to maven repo 17:55:20,663 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/selenium-server-standalone-3.141.5.jar] to extensions classpath 17:55:20,664 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/postgresql-42.2.2.jar] to extensions classpath 17:55:20,664 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/client-combined-3.141.5.jar] to extensions classpath 17:55:20,664 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/client-combined-3.141.5-sources.jar] to extensions classpath 17:55:20,664 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/byte-buddy-1.8.15.jar] to extensions classpath 17:55:20,665 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/okhttp-3.11.0.jar] to extensions classpath 17:55:20,665 INFO [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/okio-1.14.0.jar] to extensions classpath Note guava-25.0-jre.jar is in the lib directory not the ext PRETTY please can you tell me how to get this working? thanks925Views0likes0CommentsRe: how to access testRunner from the TearDown of TestSuite?
This just wasn't working for what i needed so i kept searching and found the below answer (i feel daft now lol) https://community.smartbear.com/t5/SoapUI-NG/Resolved-Access-results-from-testSuite-teardownscript/td-p/195507 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0CommentsRe: how to access testRunner from the TearDown of TestSuite?
Thank you. I tried and got back to my first problem "No such property: testRunner" lol, so i just changed it to log.info TestRunner and it's working. awesome. Now to see if i can use it :)7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes1CommentRe: how to access testRunner from the TearDown of TestSuite?
I would really like to know how to achieve this. I'm assuming its a type of import and when i try the below import com.eviware.soapui.model.testsuite log.info testRunner i get org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script14.groovy: 1: unable to resolve class com.eviware.soapui.model.testsuite @ line 1, column 1. import com.eviware.soapui.model.testsuite ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.eviware.soapui.model.testsuite @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:146) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1145) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:141) at org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:632) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:523) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at groovy.lang.GroovyShell.parse(GroovyShell.java:643) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.WsdlTestSuite.runTearDownScript(WsdlTestSuite.java:495) at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel$TearDownScriptGroovyEditorModel$1.actionPerformed(WsdlTestSuiteDesktopPanel.java:405) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 1 error7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3Commentsno such property: testRequest in a teardown script
My teardown script sits at test case level but i'm getting this error in the log ":ERROR:groovy.lang.MissingPropertyException: No such property: testRequest for class: com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep" This is odd because it writes the first request and resposne to a property and bombs afterwards. Please help? Did i import the right stuff? import com.eviware.soapui.model.iface.MessageExchange import com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep testRunner.results.each{ testStepResult -> testRunner.testCase.setPropertyValue("${testStepResult.testStep.name}_timeStamp","${testStepResult.timeStamp}")} testRunner.results.each{ testStepResult -> testRunner.testCase.setPropertyValue("${testStepResult.testStep.name}_timeTaken","${testStepResult.timeTaken}")} testRunner.results.each{ testStepResult -> testRunner.testCase.setPropertyValue("${testStepResult.testStep.name}_status","${testStepResult.status}")} testRunner.results.each{ testStepResult -> def step = "${testStepResult.testStep.name}" def response = "\${${step}#Response}" def request = new String(testRunner.testCase.getTestStepByName("$step").testRequest.messageExchange.rawRequestData) testRunner.testCase.setPropertyValue("${testStepResult.testStep.name}_response",context.expand(response)) testRunner.testCase.setPropertyValue("${testStepResult.testStep.name}_request",request) } I've used the context.expand method on request but a) this doesn't work for REST requests as rawrequest custom property is always blank and subsequently b) using getPropertyValue("RawRequest")is always blank Please help, many thanks1.8KViews0likes1CommentRe: ajax plugin
You are absolutely correct, that what I want. Thank you, I have played around alot with selenium and soap but was hoping to steer away from selenium just for an ajax call. Looks like I can't though, as i've been trying for a while and google doesnt even know so... I will have a look at using a groovy step, maybe there is a way to view the data from ajax that way.3.4KViews0likes1Commentajax plugin
Hi all, Is there a way to view the ajax-content inside of soapUI? I'm trying to view the web application but all i can see is the barebone HTML. I'm using REST to login and call the servlet but i see no data from the database this way, this is handled by the java i believe many thanks, sebSolved3.4KViews0likes5CommentsRe: how do you access content of an assertion test step within groovy
this is the best i could do - if anyone could give me a way to not list through (i know its better this way below for a few reasons) def ass = "" def assList = testRunner.getTestCase().getTestStepByName("${it.name}").getAssertionList() for(x in assList) {ass = x.getToken().toString()}1.2KViews0likes1Comment