Re: [m2] Selenium, profiles and executing certain browsers on certain OSs

2007-03-06 Thread mraible

My current setup only executes Cargo and Selenium when -Dmaven.test.skip=true
is not passed in.  If I move the  information to the regular 
part of my pom.xml, do I leave the  information in profiles?

After adding another profile for Selenium on OS X (for Safari), my
"integration-testing" section is almost 200 lines long. Yes, it does work,
but it does seem awful verbose.

http://rafb.net/p/2hIgrI84.html

Matt


Eric Redmond wrote:
> 
> Sure... pull the build configurations out of the profiles into the project
> build and replace the ant config values with properties... then use the
> profiles to set those property values.
> 
> Eric
> 
> On 3/6/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>>
>> I'm using the  Ant task to run some Selenium tests in my
>> project.
>> I want tests to run in Firefox on all platforms, and Firefox and IE when
>> running on Windows.  I've got everything working using the XML below, but
>> it's quite verbose.  Is there a way to simplify, or is this the
>> recommended
>> strategy?
>>
>> 
>> 
>> ${cargo.container}
>> 
>> 
>> !maven.test.skip
>> 
>> 
>> 
>> 
>> 
>> org.codehaus.cargo
>> cargo-maven2-plugin
>> 0.2
>> ...
>> 
>> 
>> maven-antrun-plugin
>> 
>> 
>> launch-selenium
>> integration-test
>> 
>> 
>> > resource="selenium-ant.properties">
>> > refid="maven.plugin.classpath"/>
>> 
>> > suite="src/test/resources/selenium/TestSuite.html"
>>   browser="*firefox"
>> timeoutInSeconds="180"
>>
>> results="${project.build.directory}/selenium-firefox-results.html"
>>
>> startURL="http://${cargo.host}:${cargo.port}/${project.build.finalName
>> }/"/>
>> 
>> 
>> 
>> run
>> 
>> 
>> 
>> 
>> 
>> ant
>> ant-nodeps
>> 1.6.5
>> 
>> 
>>
>> org.openqa.selenium.server
>> selenium-server
>> 0.9.1-SNAPSHOT
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> windows
>> 
>> 
>> Windows
>> 
>> 
>> 
>> 
>> 
>> maven-antrun-plugin
>> 
>> 
>> launch-selenium
>> integration-test
>> 
>> 
>> > resource="selenium-ant.properties">
>> > refid="maven.plugin.classpath"/>
>> 
>> > suite="src/test/resources/selenium/TestSuite.html"
>>   browser="*firefox"
>> timeoutInSeconds="180"
>>
>> results="${project.build.directory}/selenium-firefox-results.html"
>>
>> startURL="http://${cargo.host}:${cargo.port}/${project.build.finalName
>> }/"/>
>> > suite="src/test/resources/selenium/TestSuite.html"
>>   browser="*iexplore"
>> timeoutInSeconds="180"
>>
>> results="${project.build.directory}/selenium-ie-results.html"
>>
>> startURL="http://${cargo.host}:${cargo.port}/${project.build.finalName
>> }/"/>
>> 
>> 
>> 
>> run
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Thanks,
>>
>> Matt
>> --
>> View this message in context:
>> http://www.nabble.com/Selenium%2C-profiles-and-executing-certain-browsers-on-certain-OSs-tf3358368s177.html#a9341212
>> Sent from the Maven - U

Re: Selenium, profiles and executing certain browsers on certain OSs

2007-03-06 Thread Eric Redmond

Sure... pull the build configurations out of the profiles into the project
build and replace the ant config values with properties... then use the
profiles to set those property values.

Eric

On 3/6/07, mraible <[EMAIL PROTECTED]> wrote:



I'm using the  Ant task to run some Selenium tests in my
project.
I want tests to run in Firefox on all platforms, and Firefox and IE when
running on Windows.  I've got everything working using the XML below, but
it's quite verbose.  Is there a way to simplify, or is this the
recommended
strategy?



${cargo.container}


!maven.test.skip





org.codehaus.cargo
cargo-maven2-plugin
0.2
...


maven-antrun-plugin


launch-selenium
integration-test





http://${cargo.host}:${cargo.port}/${project.build.finalName
}/"/>



run





ant
ant-nodeps
1.6.5



org.openqa.selenium.server
selenium-server
0.9.1-SNAPSHOT







windows


Windows





maven-antrun-plugin


launch-selenium
integration-test





http://${cargo.host}:${cargo.port}/${project.build.finalName
}/"/>
http://${cargo.host}:${cargo.port}/${project.build.finalName
}/"/>



run









Thanks,

Matt
--
View this message in context:
http://www.nabble.com/Selenium%2C-profiles-and-executing-certain-browsers-on-certain-OSs-tf3358368s177.html#a9341212
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://codehaus.org/~eredmond


Selenium, profiles and executing certain browsers on certain OSs

2007-03-06 Thread mraible

I'm using the  Ant task to run some Selenium tests in my project. 
I want tests to run in Firefox on all platforms, and Firefox and IE when
running on Windows.  I've got everything working using the XML below, but
it's quite verbose.  Is there a way to simplify, or is this the recommended
strategy?



${cargo.container}


!maven.test.skip





org.codehaus.cargo
cargo-maven2-plugin
0.2
...


maven-antrun-plugin


launch-selenium
integration-test





http://${cargo.host}:${cargo.port}/${project.build.finalName}/"/>



run





ant
ant-nodeps
1.6.5


   
org.openqa.selenium.server
selenium-server
0.9.1-SNAPSHOT







windows


Windows





maven-antrun-plugin


launch-selenium
integration-test





http://${cargo.host}:${cargo.port}/${project.build.finalName}/"/>
http://${cargo.host}:${cargo.port}/${project.build.finalName}/"/>



run









Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/Selenium%2C-profiles-and-executing-certain-browsers-on-certain-OSs-tf3358368s177.html#a9341212
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]