-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
116 lines (116 loc) · 4.86 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.demo</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<build>
<!--
the plugin maven-surefire is used by maven to run testng functional tests
the plugin reportng is specified by us to generate formatted HTML reports
-->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
<argLine>-XX:MaxPermSize=1024M</argLine>
<printSummary>true</printSummary>
<!-- Uncomment the below section to enable a testng file to be passed as argument -->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<properties>
<!-- the below piece of property tells testng to disable its default listener
thereby allowing us to use the reportng.HTMLREporter plugin to generate reports -->
<property>
<name>usedefaultlistener</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter</value>
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.uncommons</groupId>
<artifactId>reportng</artifactId>
<version>1.1.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- the below dependencies for google code guice were required in my mac machine,
it might not be required in your environment so you can remove these if your tests run without
issues after removing them
-->
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-struts</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.guice</groupId>
<artifactId>guice-servlet</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.jteigen.scalatest</groupId>
<artifactId>junit4runner</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<!-- the below dependency is for adding the latest version of WebDriver to the project
if there is an issue with the version of webdriver, go ahead and update the version once the fix is available
in the next version this will ensure that you are not trying to solve a problem that is already solved
-->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.20.0</version>
</dependency>
<!--<dependency>-->
<!--<groupId>org.seleniumhq.selenium</groupId>-->
<!--<artifactId>selenium-api</artifactId>-->
<!--<version>2.14.0</version>-->
<!--</dependency>-->
</dependencies>
<!-- the below are additional repositories which I added to download reportng reporter this is the
repository where reportng is located -->
<repositories>
<repository>
<id>java.net-Public</id>
<name>Maven Java Net Snapshots and Releases</name>
<url>https://maven.java.net/content/groups/public/</url>
</repository>
<repository>
<id>guice-maven</id>
<name>guice maven</name>
<url>http://guice-maven.googlecode.com/svn/trunk</url>
</repository>
</repositories>
</project>