Yes. It is necessary if you do not use openUrl. On Wed, Aug 26, 2009 at 3:23 PM, Gabriel Johnson <[email protected]>wrote:
> Nevermind. I just saw your reply on the "TestNG + selenium Grid" thread. > Did you announce that the addition of the connectSeleniumServer method is > necessary? > TestNG + selenium Grid" > > On Wed, Aug 26, 2009 at 2:17 PM, Gabriel Johnson > <[email protected]>wrote: > >> Hi Jian, >> >> I'd like to send the html to you, but I have a bigger problem right now. I >> left work yesterday (after having switched to XPath) and everything was >> working fine. When I came back this morning, however, The browser doesn't >> even start up. Here's the console: >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> Running gov.usgswim.biodata.test.ProjectPageTestCase >> Parse configuration file: TelluriumConfig.groovy >> Configure UI Object Builders using configuration file >> Configure widget modules using configuration file >> Configure event handler using configuration file >> Configure data accessor using configuration file >> Configure dispatcher using configuration file >> Configure Embedded Selenium Server using configuration file >> Warning: No user-extensions.js found! >> 14:03:35.005 INFO - Java: Apple Inc. 11.3-b02-83 >> 14:03:35.005 INFO - OS: Mac OS X 10.5.7 x86_64 >> 14:03:35.012 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@] >> 14:03:35.077 INFO - Version Jetty/5.1.x >> 14:03:35.078 INFO - Started >> HttpContext[/selenium-server/driver,/selenium-server/driver] >> 14:03:35.079 INFO - Started HttpContext[/selenium-server,/selenium-server] >> 14:03:35.079 INFO - Started HttpContext[/,/] >> 14:03:35.089 INFO - Started SocketListener on 0.0.0.0:10000 >> 14:03:35.090 INFO - Started org.mortbay.jetty.ser...@506c0c49 >> Configure Selenium Client using configuration file >> 14:03:40.699 INFO - Stopping Acceptor ServerSocket[addr= >> 0.0.0.0/0.0.0.0,port=0,localport=10000] >> 14:03:40.794 INFO - Stopped SocketListener on 0.0.0.0:10000 >> 14:03:41.229 INFO - Stopped >> HttpContext[/selenium-server/driver,/selenium-server/driver] >> 14:03:41.624 INFO - Stopped HttpContext[/selenium-server,/selenium-server] >> 14:03:41.977 INFO - Stopped HttpContext[/,/] >> 14:03:41.977 INFO - Stopped org.mortbay.jetty.ser...@506c0c49 >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.924 sec >> <<< FAILURE! >> >> Results : >> >> Tests in error: >> >> createProjectFillingAllFields(gov.usgswim.biodata.test.ProjectPageTestCase) >> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] There are test failures. >> >> *********************************************************** >> >> Here's the surefire report: >> >> >> ------------------------------------------------------------------------------- >> Test set: gov.usgswim.biodata.test.ProjectPageTestCase >> >> ------------------------------------------------------------------------------- >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.923 sec >> <<< FAILURE! >> createProjectFillingAllFields(gov.usgswim.biodata.test.ProjectPageTestCase) >> Time elapsed: 0.005 sec <<< ERROR! >> java.lang.NullPointerException: Cannot invoke method open() on null object >> at >> org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) >> at >> org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:743) >> at >> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:720) >> at >> org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17) >> at >> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43) >> at >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) >> at >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) >> at >> org.tellurium.connector.SeleniumConnector.connectUrl(SeleniumConnector.groovy:47) >> at >> org.tellurium.test.java.BaseTelluriumJavaTestCase.connectUrl(BaseTelluriumJavaTestCase.java:50) >> at >> gov.usgswim.biodata.test.ProjectPageTestCase.connectToProjectPage(ProjectPageTestCase.java:44) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122) >> at >> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86) >> at >> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) >> at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) >> at >> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) >> at >> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) >> at >> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) >> at >> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) >> at >> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) >> at >> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) >> at >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:177) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) >> at >> org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:241) >> at >> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:537) >> at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> at >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> at >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> >> Thanks in advance, >> >> Gabe >> >> >> On Tue, Aug 25, 2009 at 10:51 PM, Jian Fang <[email protected]>wrote: >> >>> Gabe, >>> >>> The wired thing is that I get back only one match for both XPath and >>> jQuery selector by using the html sources you posted for the diagnose >>> method. Please take a look at the trunk core code, more specifically, >>> >>> >>> http://code.google.com/p/aost/source/browse/trunk/core/src/test/groovy/example/other/GaGroupModule.groovy >>> >>> >>> http://code.google.com/p/aost/source/browse/trunk/core/src/test/groovy/example/test/java/GaTestCase.java >>> >>> Maybe my html source is too simple? >>> >>> Thanks, >>> >>> Jian >>> >>> On Tue, Aug 25, 2009 at 5:30 PM, Jian Fang <[email protected]>wrote: >>> >>>> Multiple matches mean that the generated runtime locator is not unique >>>> enough to specify the UI element. Could you send me the big html, which >>>> includes all the multiple matches, to my email account? I like to manually >>>> try the generated jQuery selector to see what is the problem. Hope it is >>>> not >>>> the jQuery selector group implementation problem. >>>> >>>> Thanks, >>>> >>>> Jian >>>> >>>> >>>> On Tue, Aug 25, 2009 at 4:58 PM, Gabriel Johnson < >>>> [email protected]> wrote: >>>> >>>>> I'll try using XPath, but I'm still confused as to why I'm getting >>>>> multiple matches. If I'm using group locating and have unique text in the >>>>> title of each list, why do I match all five lists on the page? >>>> >>>> >>> >>> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
