-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
211 lines (178 loc) · 7.88 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>Cucumber_JDBC_UI_DB_Testing_Framework</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<argLine>-Duser.language=en</argLine>
</properties>
<!-- Dependencies -->
<dependencies>
<!-- Selenium WebDriver library for browser automation -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.25.0</version>
</dependency>
<!-- Cucumber library for writing feature files in Gherkin syntax (used in Java) -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.11.0</version>
<scope>test</scope>
</dependency>
<!-- Cucumber TestNG integration for running Cucumber tests within the TestNG framework -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>7.11.0</version>
<scope>test</scope>
</dependency>
<!-- TestNG library for organizing and managing test cases -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.10.2</version>
<scope>test</scope>
</dependency>
<!-- SLF4J API for logging (API only, requires implementation) -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.16</version>
</dependency>
<!-- SLF4J Simple Logger for simple, console-based logging (used during testing) -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.16</version>
<scope>test</scope>
</dependency>
<!-- Log4j dependencies for logging configuration -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>
<!-- Apache Commons IO for file handling utilities like FileUtils -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<!-- Apache Commons Lang for utilities to handle core Java functionalities (e.g., String manipulation) -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>
<!-- ExtentReports adapter for Cucumber 7 to generate rich test reports -->
<dependency>
<groupId>tech.grasshopper</groupId>
<artifactId>extentreports-cucumber7-adapter</artifactId>
<version>1.14.0</version>
</dependency>
<!-- Apache POI library for reading and writing Microsoft Office Excel files -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.3</version>
</dependency>
<!-- Apache POI library (OOXML version) for handling Excel files in .xlsx format -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.3</version>
</dependency>
<!-- MySQL JDBC driver for database connection and interaction with MySQL databases -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.33</version>
</dependency>
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
<!-- Plugin configuration where we determine where Jenkins' run command will execute -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<!-- Uncomment the following suiteXmlFiles section to specify a custom XML test suite file -->
<!-- <suiteXmlFiles> -->
<!-- <suiteXmlFile>src/test/java/xml/SmokeTest.xml</suiteXmlFile> -->
<!-- </suiteXmlFiles> -->
<includes>
<!-- Specifies which class or classes to run; **/ allows locating by any folder structure -->
<include>**/_04_TestRunnerSmoke.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- Profile for running Smoke tests -->
<profile>
<id>SmokeNew</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<!-- Uncomment the following suiteXmlFiles section to specify a custom XML test suite file -->
<!-- <suiteXmlFiles> -->
<!-- <suiteXmlFile>src/test/java/xml/SmokeTest.xml</suiteXmlFile> -->
<!-- </suiteXmlFiles> -->
<includes>
<!-- Specifies which class or classes to run; **/ allows locating by any folder structure -->
<include>**/_04_TestRunnerRegression.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Profile for running Regression tests -->
<profile>
<id>Regression</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<!-- Uncomment the following suiteXmlFiles section to specify a custom XML test suite file -->
<!-- <suiteXmlFiles> -->
<!-- <suiteXmlFile>src/test/java/xml/RegressionTest.xml</suiteXmlFile> -->
<!-- </suiteXmlFiles> -->
<includes>
<!-- Specifies which class or classes to run; **/ allows locating by any folder structure -->
<include>**/_05_TestRunnerRegression.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>