Re: selenium-maven-plugin howto specifie multiple browsers
Obviously I was wrong: according to [0], execution of a single plugin multiple times is possible. [0] http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307 hth, - martin On 05 Feb 2009, Martin Höller wrote: Hi! Executing one plugin with different configurations in one phase seems to be a common problem in maven. Problems usually occur with the maven-antrun-plugin or the exec-maven-plugin, but as we see it could also hit other plugins as well. I think(!) the only possibility you have is to use profiles to define the configuration of your selenium plugin and run maven multiple times with different profiles actived. hth, - martin On Thursday 05 February 2009 kukudas wrote: Hi thanks for your response. I want to run the Selenium tests as html suits in the integration-test lifecycle, which works perfect but just in one browser. I thought that there is somehow a way to tell maven that he has to launch the tests in diffrend browsers aswell. Mick Knutson-4 wrote: 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 kukuda...@googlemail.com 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-br owsers-tp21830943p21830943.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org signature.asc Description: PGP signature
Re: selenium-maven-plugin howto specifie multiple browsers
Hi thanks for your response. I want to run the Selenium tests as html suits in the integration-test lifecycle, which works perfect but just in one browser. I thought that there is somehow a way to tell maven that he has to launch the tests in diffrend browsers aswell. Mick Knutson-4 wrote: 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 kukuda...@googlemail.com 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-browsers-tp21830943p21847008.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: selenium-maven-plugin howto specifie multiple browsers
Hi! Executing one plugin with different configurations in one phase seems to be a common problem in maven. Problems usually occur with the maven-antrun-plugin or the exec-maven-plugin, but as we see it could also hit other plugins as well. I think(!) the only possibility you have is to use profiles to define the configuration of your selenium plugin and run maven multiple times with different profiles actived. hth, - martin On Thursday 05 February 2009 kukudas wrote: Hi thanks for your response. I want to run the Selenium tests as html suits in the integration-test lifecycle, which works perfect but just in one browser. I thought that there is somehow a way to tell maven that he has to launch the tests in diffrend browsers aswell. Mick Knutson-4 wrote: 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 kukuda...@googlemail.com 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-br owsers-tp21830943p21830943.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org signature.asc Description: This is a digitally signed message part.
selenium-maven-plugin howto specifie multiple browsers
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org