Pom.xml configuration of Webdriver+testng+reportng+maven+svn+jenkins Automated test framework

Source: Internet
Author: User
Tags testng

<project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
<modelVersion>4.0.0</modelVersion>

<groupId>com.main.stuty</groupId>
<artifactId>web-driver</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>web-driver</name>
<url>http://maven.apache.org</url>

<!--maven parameter configuration, which references different testng.xml--
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--troubleshooting Console output garbled problems--
<argLine>-Dfile.encoding=UTF-8</argLine>
<xmlFileName>testng.xml</xmlFileName>
</properties>


<!--maven references depend on different jars--
<dependencies>

<!--dependent testng--
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.9.10</version>
<!--avoid problems with the jar package dependencies that are not found at compile time-
<!--<scope>test</scope>--
</dependency>

<!--dependent Reportng Association testng--
<dependency>
<groupId>org.uncommons</groupId>
<artifactId>reportng</artifactId>
<version>1.1.4</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</exclusion>
</exclusions>
</dependency>

<!--relies on guice-->
<dependency>
<groupid>com.google.inject</groupid>
< Artifactid>guice</artifactid>
<version>3.0</version>
<scope>test</scope
</dependency>

<!--dependent Selenium Drive pack--
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
<scope>compile</scope>
<!--interpretation of the corresponding value in the scope Tag: * compile, default, applies to all stages and will be published along with the Project. * provided, similar to compile, expect
This dependency is provided by the JDK, container, or User. such as Servlet.jar. * runtime, used only at runtime, such as JDBC driver, for run and test Phases. *
test, used only during testing, to compile and run the test Code. Will not be published with the Project. * system, similar to provided, needs to explicitly provide a jar containing dependencies, Maven
It is not found in Repository. -
</dependency>
<dependency>
<groupId>net.sourceforge.jexcelapi</groupId>
<artifactId>jxl</artifactId>
<version>2.6.12</version>
</dependency>
</dependencies>


<build>
<plugins>
<!--add Plug-in maven-surefire-plugin (to perform unit tests for an app in the Maven build lifecycle Test phase), Associate testng.xml, Add reportng listener, Modify the final testng report--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>res/${xmlFileName}</suiteXmlFile>
</suiteXmlFiles>
<!--<systemPropertyVariables> tag is set to FALSE in order for HTML in log to display properly on the page, avoid displaying it directly as an HTML string--
<systemPropertyVariables>
<org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output>
</systemPropertyVariables>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter</value>
</property>
</properties>
<workingDirectory>target/</workingDirectory>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

</plugins>
</build>
</project>

Pom.xml configuration of Webdriver+testng+reportng+maven+svn+jenkins Automated test framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.