Hi Liam, we use TestNG to drive our tests. We have devised a suite file
where you can have multiple tests per browsers and you can run them all the
tests in parallel using the TestNG parallel test execution mechanism. The
sample suite file for the test looks like as follows. You can use the static
initializer to override the browser values for the test run. So the test
would pick up the browser value from the TestNG parameter rather than the
TelluriumConfig.groovy file.


<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd"; >
<suite name="Render Tests" thread-count="3" parallel="tests">
<test name="Firefox3 Windows XP">
<parameter name="browser" value="firefox3-on-windows"></parameter>
<packages>
<package name="com.tests.render.*"></package>
</packages>
</test>

    <test name="Firefox2 Windows XP">
        <parameter name="browser" value="iexplore7-on-windows"></parameter>
        <packages>
            <package name="com.tests.render.*"></package>
        </packages>
    </test>
</suite>

I am not sure, if it is also possible using JUnit. But with TestNG we are
running these tests in parallel like this.

Thanks
Haroon

On 8 December 2010 21:40, Liam <[email protected]> wrote:

> Hi Haroon,
>
> At the moment I get a new Selenium Session for each test Class.  I am
> using Junit as the testing framework, but may look into TestNg if I
> can't get his working as I would like it to.  How can I configure
> Selenium Grid to automatically run them in parallel?  Also is there
> another way to run the same test in multiple browser types (eg
> firefox, googlechrome, safari) with just the one test class other than
> altering TelluriumConfig.groovy?  I have experimented with this:
>
> http://www.mail-archive.com/[email protected]/msg00225.html
>
> which works OK but requires another test class for each browser I want
> to use, whereas I would ideally like to just have the one.
>
> Cheers,
> Liam
>
> On Dec 8, 11:16 pm, Haroon Rasheed <[email protected]> wrote:
> > Hi Liam,
> >
> > It depends on the implementation of your test framework. What happens
> when
> >  you run the  tests without selenium grid?
> >
> > Do you get a new Selenium Session for every test method or every test
> class?
> > If your tests are extending TelluriumTestNGTestCase then you will get a
> new
> > Selenium RC session before the test and this session will be closed once
> the
> > test run has finished. We are using TestNG @BeforeTest and @AfterTest
> > annotations in this case. You can read more about these onhttp://
> www.testng.org
> >
> > The behaviour of running the test would be the same, but Selenium Grid
> > provides you an option to run the tests in parallel on different boxes
> with
> > different browsers configured without much effort.
> >
> > I hope this helps, in case of any question please feel free to contact
> me.
> >
> > Thanks
> > Haroon
> >
> > On 8 December 2010 01:20, Liam <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Have since been able to fix that, thanks for the help.
> >
> > > I have another question about Selenium Grid, can it run each test
> > > within a test case on an available selenium RC or will it only run
> > > each test case as a whole on an available selenium RC?
> >
> > > Cheers,
> > > Liam
> >
> > > On Dec 7, 4:30 pm, Jian Fang <[email protected]> wrote:
> > > > Did you replace the selenium sever with the one from the 0.7.0
> package?
> >
> > > >http://aost.googlecode.com/files/tellurium-0.7.0.tar.gz
> >
> > > > Please post the full stack trace.
> >
> > > > Haroon may be able to provide you more guides on Selenium grid.
> >
> > > > Thanks,
> >
> > > > Jian
> >
> > > > On Mon, Dec 6, 2010 at 6:14 PM, Liam <[email protected]>
> wrote:
> > > > > Hi,
> >
> > > > > I am trying to use Selenium Grid to run a series of Tellurium Junit
> > > > > tests.  At this stage I'm just doing it on one machine, attempting
> to
> > > > > run the tests in parallel.  I can run the Selenium Grid demo fine
> and
> > > > > have also run some other Selenium tests using the Grid setup.
> > > > > However, when I run my Junit Tellurium tests I don't have much
> > > > > success, the first page will load and then I get the following
> error
> > > > > when it tries to run the first tellurium command:
> >
> > > > > com.thoughtworks.selenium.SeleniumException: ERROR: Unknown
> command:
> > > > > 'getBundleResponse'
> >
> > > > > I am using tellurium-core-0.7.0.jar.
> >
> > > > > I have found similar issues online that were solved by changing the
> > > > > selenium-server.jar file which I have experimented with but with no
> > > > > success.
> >
> > > > > Does anyone know what is going on here? Or have any ideas on how to
> > > > > fix it?
> >
> > > > > Thanks in advance for any replies.
> >
> > > > > --
> > > > > 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]<tellurium-users%[email protected]>
> <tellurium-users%2Bunsubscribe@ googlegroups.com>
> > > <tellurium-users%2Bunsubscribe@ googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/tellurium-users?hl=en.
> >
> > > --
> > > 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]<tellurium-users%[email protected]>
> <tellurium-users%2Bunsubscribe@ googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/tellurium-users?hl=en.
>
> --
> 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]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>

-- 
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