-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
220 lines (213 loc) · 8.72 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?xml version="1.0" encoding="UTF-8"?>
<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>org.example</groupId>
<artifactId>IaroslavKovalskii</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<allTests>${project.basedir}/src/test/resources/allTests.xml</allTests>
<hw2Tests>${project.basedir}/src/test/resources/hw2Tests.xml</hw2Tests>
<hw3Tests>${project.basedir}/src/test/resources/hw3Tests.xml</hw3Tests>
<hw4Tests>${project.basedir}/src/test/resources/hw4Tests.xml</hw4Tests>
<hw5Tests>${project.basedir}/src/test/resources/hw5CucumberTests.xml</hw5Tests>
<addSubtractTests>${project.basedir}/src/test/resources/addSubtractTests.xml</addSubtractTests>
<multiplyDivideTests>${project.basedir}/src/test/resources/multiplyDivideTests.xml</multiplyDivideTests>
<java.version>1.8</java.version>
<testng.version>7.5.1</testng.version>
<checkstyle.version>8.41.1</checkstyle.version>
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
<selenium-java.version>3.141.59</selenium-java.version>
<webdrivermanager.version>4.4.1</webdrivermanager.version>
<lombok.version>1.18.20</lombok.version>
<aspectj.version>1.9.5</aspectj.version>
<allure-testng.version>2.13.2</allure-testng.version>
<allure-maven.version>2.10.0</allure-maven.version>
<cucumber.version>6.10.4</cucumber.version>
</properties>
<dependencies>
<dependency>
<groupId>com.epam.tat.module4</groupId>
<artifactId>calculator</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/calculator-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium-java.version}</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>${webdrivermanager.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>${allure-testng.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>
https://raw.githubusercontent.com/DmitryKhodakovsky/epam-test-auto-spring-2021/master/codestyle_checks.xml
</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<violationSeverity>warning</violationSeverity>
<consoleOutput>true</consoleOutput>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${testng.suite.file}</suiteXmlFile>
</suiteXmlFiles>
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>${allure-maven.version}</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>AddSubtractTests</id>
<properties>
<testng.suite.file>${addSubtractTests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>MultiplyDivideTests</id>
<properties>
<testng.suite.file>${multiplyDivideTests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>AllTests</id>
<properties>
<testng.suite.file>${allTests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>HomeWork2Tests</id>
<properties>
<testng.suite.file>${hw2Tests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>HomeWork3Tests</id>
<properties>
<testng.suite.file>${hw3Tests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>HomeWork4Tests</id>
<properties>
<testng.suite.file>${hw4Tests}</testng.suite.file>
</properties>
</profile>
<profile>
<id>HomeWork5CucumberTests</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<testng.suite.file>${hw5Tests}</testng.suite.file>
</properties>
</profile>
</profiles>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>${allure-maven.version}</version>
<configuration>
<reportVersion>${allure-testng.version}</reportVersion>
</configuration>
</plugin>
</plugins>
</reporting>
</project>