Contributions
Re: [RES] How to increase the number of threads for Geb Runner
Thanks Henrik! Exactly what I was hoping for. Hopefully with this change I'm able to run with the load I am asked to do, which would open us up to buying the pro version .11 years agoPlace ReadyAPI QuestionsReadyAPI Questions656Views0likes0Comments[RES] How to increase the number of threads for Geb Runner
I have noticed that you cannot increase the number of running requests above 100 for both the Script and Geb Runners. Is there a way to do this? I've looked in the components' scripts as well as through all the settings for the runners and system settings and can't find anything. I know SoapUI runner allows you to increase it, but porting the script through SoapUI and then into LoadUI seems wasteful when a Geb runner can run it directly.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes2CommentsRe: SoapUI Runner Question
Update: I added an import statement for the missing class and expected it to throw an error on the import statement. One would imagine that if it is not in the class path that it would not find it and error out here, yes? Yet the error occurs in the same location that it did prior to the import. Something is fishy here and I can't figure it out! The following is the error stack trace. As you can see it appears to be an felix classpath problem, which I am clueless on java.lang.NoClassDefFoundError: org/apache/commons/httpclient/protocol/ProtocolSocketFactory at org.openqa.selenium.htmlunit.HtmlUnitDriver.newWebClient(HtmlUnitDriver.java:285) at org.openqa.selenium.htmlunit.HtmlUnitDriver.createWebClient(HtmlUnitDriver.java:259) at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:130) at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:186) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) at Script1.run(Script1.groovy:14) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:149) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135) at com.eviware.loadui.components.soapui.SoapUISamplerComponent$SoapUITestCaseRunner.run(SoapUISamplerComponent.java:717) at com.eviware.loadui.components.soapui.SoapUISamplerComponent.sample(SoapUISamplerComponent.java:559) at com.eviware.loadui.impl.component.categories.RunnerBase.doSample(RunnerBase.java:507) at com.eviware.loadui.impl.component.categories.RunnerBase.access$700(RunnerBase.java:68) at com.eviware.loadui.impl.component.categories.RunnerBase$Worker.run(RunnerBase.java:774) at com.eviware.loadui.util.dispatch.CustomThreadPoolExecutor$Worker.run(CustomThreadPoolExecutor.java:197) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.protocol.ProtocolSocketFactory not found by com.eviware.loadui.soapui-plugin [27] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) at java.lang.ClassLoader.loadClass(Unknown Source) ... 29 more12 years agoPlace ReadyAPI QuestionsReadyAPI Questions641Views0likes0CommentsInfinite "Creating Component" for Geb Runner
I am attempting to create a geb runner component on a fresh install of 2.5.1 and it creates an infinite loop attempting to load the component Geb Runner. The log file has it attempting to load the dependency net.sourceforge.htmlunit:htmlunit as the last line and that is it.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes3CommentsSoapUI Runner Question
How does this work? It appears that load UI has encapsulated the functionality of SoapUI within it in order to execute the test steps. However, there is clearly a disconnect between those two systems as I am able to execute a Selenium groovy script in SoapUI and not in LoadUI. I have done the following steps: 1) Ensured that all external dependencies are included in the extension folder of LoadUI 2) Executed the script in SoapUI and verified the behavior. 3) Imported the same script into LoadUI using the SoapUI runner. This step failed due to a class not found exception on org.apache.commons.httpclient.protocol.ProtocolSocketFactory. This class is included in the external dependency library and I have looked through the bin to ensure that there isn't a duplicate class. 4) Executed the groovy script using the script runner. This step failed miserably, every execution of any script I've ever done gives me a "cannot bind on null object" exception. 5) Executed the SoapUI Script using IEDriver/FirefoxDriver implementations of webdriver These worked, however I need it to be HtmlUnit so I can do it without GUI soaking up CPU/RAM usage. There is clearly something with the classpath where the jar is not being loaded into the same classpath that the soapUI runner is using. Has anybody worked with HtmlUnit in LoadUI? Figured out classpathing issues similar to this? Any help would be greatly appreciated!12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentRe: Problem with with loadUI startup and Selenium client driver
You have a dependency conflict. Those JARs exist within the loadUI lib which are loaded when you start up. When the dependencies are loaded from the ext folder it creates a class naming conflict and the jvm shuts down the application. Remove those JARs from the lib folder and replace them with your new JARs, and that should do it.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsSoapUI Test Case execution failure
I'm able to execute a test case in soap ui without issue but when I load it into load ui I get a class not found exception for one of the classes that I'm able to locate within the jar, so I know it exists. I've executed other test cases with other forms of driver and it works just fine. I'm able to import the class in the groovy script in soap UI, so I know it's not having a problem locating it in there. The script is as follows (excuse the generalization, need to be within my confidentiality agreement) : import org.openqa.selenium.WebDriver import org.openqa.selenium.By import org.openqa.selenium.htmlunit.HtmlUnitDriver WebDriver driver = new HtmlUnitDriver(true); driver.get("http://somewebsite.com") driver.findElement(By.id("USER")).clear() driver.findElement(By.id("USER")).sendKeys("some username") driver.findElement(By.id("PASSWORD")).clear() driver.findElement(By.id("PASSWORD")).sendKeys("some password") return driver.getTitle() The class it's missing is org.apache.commons.httpclient.protocol.ProtocolSocketFactory I've verified that class doesn't exist elsewhere within any of the jars, so there are no overriding classes. It exists in one jar and one jar only. I'm at a loss as to what is going on, any help would be greatly appreciated. If more info is needed I will gladly supply it. I'm within inches of getting this implemented at my company, potentially going to the pro version if it works12 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes2CommentsGroovy Script Failing
I have attempted to create a groovy script via selenium and have it execute a few simple tasks. I am able to execute the groovy script from eclipse using the groovyConsole, however, when I run it within LoadUI I get a null pointer exception as follows: "java.lang.NullPointerException: Cannot set property 'binding' on null object'. I have the 3 jar's that my script is grabbing in the ext directory of my load UI (I read somewhere that it could be a problem if they are not there). Here is the script: @Grapes([ @Grab("org.seleniumhq.selenium:selenium-support:2.23.1"), @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.23.1") ]) import org.openqa.selenium.firefox.FirefoxDriver import org.openqa.selenium.By FirefoxDriver driver = new FirefoxDriver() driver.get("http://www.up.com"); driver.findElement(By.linkText("Employees")).click(); driver.findElement(By.cssSelector("div.grpbox > ul > li > a")).click(); driver.findElement(By.linkText("ePayroll")).click(); driver.findElement(By.id("USER")).clear(); driver.findElement(By.id("USER")).sendKeys("USER_ID"); driver.quit(); Any help would be greatly appreciated.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Comments