Hi Jian,

Sorry for late reply. I was busy with other work.

I also moved to jdk1.6 and I am able to compile it using mvn. Any
thing else I need to modify ?

I am facing strange problem I feel some thing related to versions
only.

When I execute my demo test case with 'tellurium-core-0.7.0-
SNAPSHOT.jar' my selenium server it self stopping before executing
test case. Same  Test case If I use 'tellurium-core0.6.0.jar' it works
fine.

Console log tellurium-core-0.7.0-SNAPSHOT.jar:
====================================

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!
16:40:08.488 INFO - Java: Sun Microsystems Inc. 14.0-b16
16:40:08.488 INFO - OS: Windows XP 5.1 x86
16:40:08.503 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@]
16:40:08.582 INFO - Version Jetty/5.1.x
16:40:08.582 INFO - Started HttpContext[/selenium-server/driver,/
selenium-server/driver]
16:40:08.582 INFO - Started HttpContext[/selenium-server,/selenium-
server]
16:40:08.582 INFO - Started HttpContext[/,/]
16:40:08.597 INFO - Started SocketListener on 0.0.0.0:4444
16:40:08.597 INFO - Started org.mortbay.jetty.ser...@1a4181c
Configure Selenium Client using configuration file
16:40:14.097 INFO - Stopping Acceptor ServerSocket
[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
16:40:14.207 INFO - Stopped SocketListener on 0.0.0.0:4444
16:40:14.300 INFO - Stopped HttpContext[/selenium-server/driver,/
selenium-server/driver]
16:40:14.379 INFO - Stopped HttpContext[/selenium-server,/selenium-
server]
16:40:14.472 INFO - Stopped HttpContext[/,/]
16:40:14.472 INFO - Stopped org.mortbay.jetty.ser...@1a4181c
FAILED: test1
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:751)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod
(InvokerHelper.java:728)
        at org.codehaus.groovy.runtime.callsite.NullCallSite.call
(NullCallSite.java:17)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:117)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:125)
        at org.tellurium.connector.SeleniumConnector.connectUrl
(SeleniumConnector.groovy:47)
        at org.tellurium.test.java.BaseTelluriumJavaTestCase.connectUrl
(BaseTelluriumJavaTestCase.java:50)
        at com.tellurium.testng.grid.test.DemoCitrixPage.test1
(DemoCitrixPage.java:39)
... Removed 22 stack frames


Regards,
Satyadev

On Aug 27, 10:02 am, Jian Fang <[email protected]> wrote:
> We upgraded to Java 6 for 0.7.0-SNAPSHOT. You need to upgrade your Java
> version.
>
> Thanks,
>
> Jian
>
>
>
> On Thu, Aug 27, 2009 at 1:00 AM, satyadev <[email protected]> wrote:
>
> > Hi,
>
> > Now it says class version problem .
>
> > D:\your_artifact_id\src\test\groovy\test\GoogleSearchTestCase.java:6:
> > cannot acc
> > ess org.tellurium.test.java.TelluriumTestNGTestCase
> > bad class file: C:\Documents and Settings\satyadevs\.m2\repository
> > \tellurium\tel
> > lurium-core\0.7.0-SNAPSHOT\tellurium-core-0.7.0-SNAPSHOT.jar(org/
> > tellurium/test/
> > java/TelluriumTestNGTestCase.class)
> > class file has wrong version 50.0, should be 49.0
> > Please remove or make sure it appears in the correct subdirectory of
> > the classpa
> > th.
> > import org.tellurium.test.java.TelluriumTestNGTestCase;
> >                               ^
> > 1 error
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
>
> > regards,
> > Satyadev
>
> > On Aug 26, 10:22 pm, Jian Fang <[email protected]> wrote:
> > > Since openUrl is enforced to start a new browser session, if you want to
> > > continue using connectUrl for the same browser session, please consult
> > the
> > > following example,
>
> > > public class GoogleSearchTestCase extends TelluriumJavaTestCase {
> > >     private static GoogleSearchModule gsm;
>
> > >     @BeforeClass
> > >     public static void initUi() {
> > >         gsm = new GoogleSearchModule();
> > >         gsm.defineUi();
> > >         connectSeleniumServer();
> > >     }
>
> > >     @Before
> > >     public void connectToGoogle() {
> > >         connectUrl("http://www.google.com";);
> > >     }
>
> > >     @Test
> > >     public void testGoogleSearchWithXPath() {
> > >         //turn off jQuery Selector
> > >         gsm.disableJQuerySelector();
> > >         gsm.doGoogleSearch("tellurium Groovy Test");
> > >     }
>
> > >     @Test
> > >     public void testGoogleSearchWithSelectorCached() {
> > >         //turn on jQuery Selector
> > >         gsm.useJQuerySelector();
> > >         gsm.enableSelectorCache();
> > >         gsm.setCacheMaxSize(10);
> > >         gsm.doGoogleSearch("tellurium Groovy Test");
> > >     }
> > > ...
>
> > > }
>
> > > You can do the similar thing for your Tellurium TestNG test cases.
>
> > > Thanks,
>
> > > Jian
>
> > > On Wed, Aug 26, 2009 at 9:35 AM, Jian Fang <[email protected]>
> > wrote:
> > > > You should use Tellurium Maven archetype 0.7.0-SNAPSHOT for Tellurium
> > 0.7.0
> > > > project. Please see the updated information on
>
> > > >http://code.google.com/p/aost/wiki/TelluriumMavenArchetypes#Tellurium.
> > ..
>
> > > > On Wed, Aug 26, 2009 at 6:31 AM, satyadev <[email protected]> wrote:
>
> > > >> Hi ,
>
> > > >> I tried though maven as specified in
> > > >>http://code.google.com/p/aost/wiki/TelluriumMavenArchetypes
>
> > > >> I modified  depedency  in POM.xml
> > > >>     <dependency>
> > > >>            <groupId>tellurium</groupId>
> > > >>            <artifactId>tellurium-core</artifactId>
> > > >>            <version>0.7.0</version>
> > > >>            <scope>compile</scope>
> > > >>        </dependency>
>
> > > >> I get following error :
> > > >> Downloading:
> > > >>http://kungfuters.org/nexus/content/repositories/releases/tellurium/t.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:pom:0.7.0' in
> > > >> repository kungfuters-public-releases-repo (http://kungfuters.org/
> > > >> nexus/content/repositories/releases<
> >http://kungfuters.org/%0Anexus/content/repositories/releases>
> > > >> )
> > > >> Downloading:
> > > >>http://google-caja.googlecode.com/svn/maven/tellurium/tellurium-core/.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:pom:0.7.0' in
> > > >> repository caja (http://google-caja.googlecode.com/svn/maven)
> > > >> Downloading:
> > > >>http://kungfuters.org/nexus/content/repositories/thirdparty/tellurium.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:pom:0.7.0' in
> > > >> repository kungfuters-thirdparty-releases-repo (
> >http://kungfuters.org/
> > > >> nexus/content/repositories/thirdparty<
> >http://kungfuters.org/%0Anexus/content/repositories/thirdparty>
> > > >> )
> > > >> Downloading:
> > > >>http://archiva.openqa.org/repository/releases/tellurium/tellurium-cor.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:pom:0.7.0' in
> > > >> repository openqa-release-repo (http://archiva.openqa.org/repository/
> > > >> releases)
> > > >> Downloading:
> > > >>http://repo1.maven.org/maven2/tellurium/tellurium-core/0.7.0/telluriu.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:pom:0.7.0' in
> > > >> repository central (http://repo1.maven.org/maven2)
> > > >> Downloading:
> > > >>http://kungfuters.org/nexus/content/repositories/releases/tellurium/t.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:jar:0.7.0' in
> > > >> repository kungfuters-public-releases-repo (http://kungfuters.org/
> > > >> nexus/content/repositories/releases<
> >http://kungfuters.org/%0Anexus/content/repositories/releases>
> > > >> )
> > > >> Downloading:
> > > >>http://google-caja.googlecode.com/svn/maven/tellurium/tellurium-core/.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:jar:0.7.0' in
> > > >> repository caja (http://google-caja.googlecode.com/svn/maven)
> > > >> Downloading:
> > > >>http://kungfuters.org/nexus/content/repositories/thirdparty/tellurium.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:jar:0.7.0' in
> > > >> repository kungfuters-thirdparty-releases-repo (
> >http://kungfuters.org/
> > > >> nexus/content/repositories/thirdparty<
> >http://kungfuters.org/%0Anexus/content/repositories/thirdparty>
> > > >> )
> > > >> Downloading:
> > > >>http://archiva.openqa.org/repository/releases/tellurium/tellurium-cor.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:jar:0.7.0' in
> > > >> repository openqa-release-repo (http://archiva.openqa.org/repository/
> > > >> releases)
> > > >> Downloading:
> > > >>http://repo1.maven.org/maven2/tellurium/tellurium-core/0.7.0/telluriu.
> > ..
> > > >> [INFO] Unable to find resource 'tellurium:tellurium-core:jar:0.7.0' in
> > > >> repository central (http://repo1.maven.org/maven2)
> > > >> [INFO]
>
> > ------------------------------------------------------------------------
> > > >> [ERROR] BUILD ERROR
> > > >> [INFO]
>
> > ------------------------------------------------------------------------
> > > >> [INFO] Failed to resolve artifact.
>
> > > >> Missing:
> > > >> ----------
> > > >> 1) tellurium:tellurium-core:jar:0.7.0
>
> > > >> I am new to new maven so let me know where I did a mistake ?
>
> > > >> On Aug 26, 7:36 am, John <[email protected]> wrote:
> > > >> > Hi Satyadev,
>
> > > >> > I just added the following three methods in
> > BaseTelluriumJavaTestCase
> > > >> > for your convenience,
>
> > > >> >     public static void openUrlWithBrowserParameters(String url,
> > String
> > > >> > serverHost, int serverPort, String baseUrl, String browser, String
> > > >> > browserOptions)
>
> > > >> >     public static void openUrlWithBrowserParameters(String url,
> > String
> > > >> > serverHost, int serverPort, String browser, String browserOptions)
>
> > > >> >     public static void openUrlWithBrowserParameters(String url,
> > String
> > > >> > serverHost, int serverPort, String browser)
>
> > > >> > You can use them in your TestNG test case to pass in the browser
> > > >> > parameters. For example, I tested the following
> > > >> > TestNG test case,
>
> > > >> > public class GoogleStartPageTestNGTestCase extends
> > > >> > TelluriumTestNGTestCase {
> > > >> >     protected static NewGoogleStartPage ngsp;
>
> > > >> >     @BeforeClass
> > > >> >     public static void initUi() {
> > > >> >         ngsp = new NewGoogleStartPage();
> > > >> >         ngsp.defineUi();
> > > >> >     }
>
> > > >> >     @DataProvider(name = "browser-provider")
> > > >> >     public Object[][] browserParameters() {
> > > >> >         return new Object[][]{new Object[] {"localhost", 4444,
> > > >> > "*chrome"},
> > > >> >                 new Object[] {"localhost", 4444, "*firefox"}};
> > > >> >     }
>
> > > >> >     @Test(dataProvider = "browser-provider")
> > > >> >     @Parameters({"serverHost", "serverPort", "browser"})
> > > >> >     public void testGoogleSearch(String serverHost, int serverPort,
> > > >> > String browser){
> > > >> >         openUrlWithBrowserParameters("http://www.google.com";,
> > > >> > serverHost, serverPort, browser);
> > > >> >         ngsp.doGoogleSearch("tellurium selenium Groovy Test");
> > > >> >         disconnectSeleniumServer();
> > > >> >    }
>
> > > >> >   �...@test(dataProvider = "browser-provider")
> > > >> >   �...@parameters({"serverHost", "serverPort", "browser"})
> > > >> >    public void testGoogleSearchFeelingLucky(String serverHost, int
> > > >> > serverPort, String browser){
> > > >> >        openUrlWithBrowserParameters("http://www.google.com";,
> > > >> > serverHost, serverPort, browser);
> > > >> >        ngsp.doImFeelingLucky("tellurium selenium DSL Testing");
> > > >> >        disconnectSeleniumServer();
> > > >> >    }
>
> > > >> > }
>
> > > >> > The test works fine. Please you should use the latest core 0.7.0
> > > >> > snapshot from our Maven repo if
> > > >> > you want to use the new methods.
>
> > > >> > All,
>
> > > >> > openUrlWithBrowserParameters() is similar to openUrl(), which will
> > > >> > create a new browser session.
> > > >> > If you like to reuse the same browser session, please use connectUrl
> > > >> > ().
>
> > > >> > Let me know if we can improve this further.
>
> > > >> > Thanks,
>
> > > >> > Jian
>
> > > >> > On Aug 25, 1:23 pm, Jian Fang <[email protected]>
> > wrote:
>
> > > >> > > Sorry, I didn't read your previous posts. Seems you want to use
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to