+

Search Tips   |   Advanced Search


Use the Selenium driver as a Maven task

You will need to include the following plugin in your pom.xml :

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-surefire-plugin</artifactId>
   <version>2.19.1</version>
    <dependencies>
     <dependency>
        <groupId>org.apache.maven.surefire</groupId>
        <artifactId>surefire-junit47</artifactId>
   <version>2.19.1</version>
     </dependency>
    </dependencies>
</plugin>

The plugin will launch all tests defined within the test repository of your Maven project.

For example, the command below only launches the test classes that end with "PerformanceTest":

mvn -Dnl.selenium.proxy.mode=Design -Dnl.design.api.url=http://[host]:7400/Design/v1/Service.svc/ -Dtest=*PerformanceTest clean test

Find more information on the Maven surefire plugin.


Home