I use TestNG to do this.
I have my test method to start the server:

    *...@beforeclass(groups = {"selenium" })
    @Parameters(
        { "selenium-server-address", "browser-type", "application-address" }
    )
    protected void startSeleniumServer(String seleniumServerAddress,
        String browserType, String applicationAddress) throws Exception {
        log.info("Starting Selenium client");
        selenium = new DefaultSelenium(seleniumServerAddress,
                SeleniumServer.getDefaultPort(), browserType,
                applicationAddress);
        selenium.start();
    }*

Then in my testng.xml:

   * <test name="Acegi Login - IE">
        <parameter name="browser-type" value="*iexplore"/>

        <classes>
            <class name="com.baselogic.selenium.LoginTest"/>
        </classes>
    </test>*


Note this is para-phrased. I actually need to write a blog on this. But
hopefully this can help get you started.


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, Feb 4, 2009 at 8:55 AM, kukudas <[email protected]> wrote:

>
> hi,
>
> how can i run selenese command with more than one browser ? Atm i use
> <browser>*opera</browser> for example. I couldn't find any hint in the
> documentation i hope somebody can help me.
>
> Thanks kukudas
> --
> View this message in context:
> http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-browsers-tp21830943p21830943.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to