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
> >> > > TelluriumTestNGTestCase
> >> > > in the following way so that you don't need to do all the setup and
> >> tear
> >> > > down work, right?
>
> >> > > public class WebTestInvolvingMultiEnvironments extends
> >> > > TelluriumTestNGTestCase
> >> > > {
> >> > >       �...@test(groups = {"default" },description = "firstEnvironment 
> >> > > -->
> >> Using
> >> > > the Firefox Web Browser on Window ")
> >> > >       �...@parameters({"seleniumHost", "seleniumPort",
> >> "firstEnvironment",
> >> > > "webSite"})
> >> > >        public void test1(String seleniumHost, String seleniumPort,
> >> String
> >> > > firstEnvironment, String webSite) {
> >> > >                Function1();
> >> > >        }
>
> >> > >       �...@test(groups = {"default"},description = "secondEnvironment 
> >> > > -->
> >> Using
> >> > > the Internet Explorer Web Browser on other Window ")
> >> > >       �...@parameters({"seleniumHost", "seleniumPort",
> >> "secondEnvironment",
> >> > > "webSite"})
> >> > >        public void test2(String seleniumHost, String seleniumPort,
> >> String
> >> > > secondEnvironment, String webSite){
> >> > >                Function1();
> >> > >        }
>
> >> > > If that is the case, the current TelluriumTestNGTestCase does not
> >> support
> >> > > that yet. But we can add such support soon. We simply didn't have
> >> enough use
> >> > > cases when we implemented the TelluriumTestNGTestCase. Your request is
> >> a
> >> > > good one to improve TelluriumTestNGTestCase.
>
> >> > > We will try to add the support and let you know when we are done. For
> >> the
> >> > > time being, please still use the
>
> ...
>
> 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