Hello,

i am trying to run selenese tests (html-suite) with maven. I want to run the 
tests in firefox and iexplorer. With my config I have no problem to run both 
browser with one config if no test failure occures, but if a fauilure occurs I 
get a build error and the second browser does not start. I have tried tags like 
<testFailureIgnore> or <stopOnError> without any effect. Is it possible to use 
the maven-selenium-plugin for html suites in more then one browser?

best regards
matthias

my config:
<plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>selenium-maven-plugin</artifactId>
                                <executions>

                                        <execution>
                                                <id>iexplorerTest</id>
                                                <phase>integration-test</phase>
                                                <goals>
                                                        <goal>selenese</goal>
                                                </goals>
                                                <configuration>
                                                        
<testFailureIgnore>true</testFailureIgnore>
                                                        
<suite>${prj.suite}</suite>
                                                        
<browser>*iexplore</browser>
                                                        
<startURL>${prj.url}</startURL>
                                                        
<results>iexplore-results.html</results>
                                                        
<multiWindow>true</multiWindow>
                                                        
<stopOnFailure>false</stopOnFailure>
                                                        
<stopOnError>false</stopOnError>
                                                        
<testFailureIgnore>true</testFailureIgnore>
                                                        
<testErrorIgnore>true</testErrorIgnore>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                <id>firefoxTest</id>
                                                <phase>integration-test</phase>
                                                <goals>
                                                        <goal>selenese</goal>
                                                </goals>
                                                <configuration>
                                                        
<testFailureIgnore>true</testFailureIgnore>
                                                        
<suite>${prj.suite}</suite>
                                                        
<browser>*firefox</browser>
                                                        
<startURL>${prj.url}</startURL>
                                                        
<results>firefox-results.html</results>
                                                        
<multiWindow>true</multiWindow>
                                                        
<stopOnFailure>false</stopOnFailure>
                                                        
<stopOnError>false</stopOnError>
                                                        
<testFailureIgnore>true</testFailureIgnore>
                                                        
<testErrorIgnore>true</testErrorIgnore>
                                                </configuration>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>org.codehaus.mojo</groupId>
                                                
<artifactId>exec-maven-plugin</artifactId>
                                                <version>1.1</version>
                                        </dependency>
                                </dependencies>
                        </plugin>



stacktrace with maven -e option:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Tests failed, see result file for details: D:\workspace\p2wtest\iexplore-
results.html
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Tests failed, see result
 file for details: D:\workspace\p2wtest\iexplore-results.html
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Tests failed, see res
ult file for details: D:\workspace\p2wtest\iexplore-results.html
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaC
lassHelper.java:535)
        at groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2356
)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1255)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1185)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(Invoker
Helper.java:809)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBy
tecodeAdapter.java:230)
        at org.codehaus.groovy.maven.mojo.GroovyMojo.fail(GroovyMojo.groovy:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
        at org.codehaus.mojo.selenium.SeleneseMojo.execute(SeleneseMojo.groovy:1
63)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        ... 16 more


-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to