Skip to content

Commit 44fa459

Browse files
authored
AYS-658 | All Dependencies Have Been Upgraded to Latest Versions (#53)
1 parent 7088cc3 commit 44fa459

File tree

2 files changed

+59
-33
lines changed

2 files changed

+59
-33
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,29 @@ You can run specific test suites by modifying the testng.xml file under the test
7777

7878
---
7979

80+
## Running Tests from the Command Line
81+
82+
You can run tests from the command line using Maven. Navigate to the project directory and run the following command:
83+
84+
**Daily Test Execution:**
85+
86+
- Smoke Test
87+
88+
```bash
89+
mvn clean test -P daily
90+
```
91+
92+
**Weekly(All) Test Execution:**
93+
94+
- Smoke Test
95+
- Regression Test
96+
97+
```bash
98+
mvn clean test -P weekly
99+
```
100+
101+
---
102+
80103
## Generating Reports
81104

82105
Test execution reports can be found in the target folder. You can open the HTML report in a web browser to view

pom.xml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,24 @@
1212
<name>ays-fe-ui-automation</name>
1313

1414
<properties>
15-
1615
<java.version>17</java.version>
1716
<maven.compiler.source>${java.version}</maven.compiler.source>
1817
<maven.compiler.target>${java.version}</maven.compiler.target>
1918
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2019

21-
<selenium-java.version>4.24.0</selenium-java.version>
22-
<cucumber-java.version>7.18.1</cucumber-java.version>
23-
<testng.version>7.10.2</testng.version>
24-
<cucumber-testng.version>7.18.1</cucumber-testng.version>
20+
<selenium-java.version>4.31.0</selenium-java.version>
21+
<cucumber.version>7.22.0</cucumber.version>
22+
<testng.version>7.11.0</testng.version>
2523
<extentreports-cucumber7-adapter.version>1.14.0</extentreports-cucumber7-adapter.version>
26-
<mysql-connector-j.version>9.0.0</mysql-connector-j.version>
27-
<lombok.version>1.18.34</lombok.version>
24+
<lombok.version>1.18.38</lombok.version>
2825
<jquery.version>3.7.1</jquery.version>
29-
<gson.version>2.11.0</gson.version>
30-
<snakeyaml.version>2.3</snakeyaml.version>
26+
<gson.version>2.13.0</gson.version>
27+
<snakeyaml.version>2.4</snakeyaml.version>
3128
<javafaker.version>1.0.2</javafaker.version>
3229
<junit.version>4.13.2</junit.version>
33-
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
34-
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
35-
<logback-classic.version>1.5.8</logback-classic.version>
30+
<maven-surfire.version>3.5.2</maven-surfire.version>
31+
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
32+
<logback-classic.version>1.5.18</logback-classic.version>
3633
<commons-compress.version>1.27.1</commons-compress.version>
3734
</properties>
3835

@@ -47,14 +44,15 @@
4744
<dependency>
4845
<groupId>io.cucumber</groupId>
4946
<artifactId>cucumber-java</artifactId>
50-
<version>${cucumber-java.version}</version>
47+
<version>${cucumber.version}</version>
5148
<scope>test</scope>
5249
</dependency>
5350

5451
<dependency>
5552
<groupId>org.testng</groupId>
5653
<artifactId>testng</artifactId>
5754
<version>${testng.version}</version>
55+
<scope>test</scope>
5856
<exclusions>
5957
<exclusion>
6058
<groupId>org.webjars</groupId>
@@ -65,20 +63,20 @@
6563
<artifactId>slf4j-api</artifactId>
6664
</exclusion>
6765
</exclusions>
68-
<scope>test</scope>
6966
</dependency>
7067

7168
<dependency>
7269
<groupId>io.cucumber</groupId>
7370
<artifactId>cucumber-testng</artifactId>
74-
<version>${cucumber-testng.version}</version>
71+
<version>${cucumber.version}</version>
7572
<scope>test</scope>
7673
</dependency>
7774

7875
<dependency>
7976
<groupId>tech.grasshopper</groupId>
8077
<artifactId>extentreports-cucumber7-adapter</artifactId>
8178
<version>${extentreports-cucumber7-adapter.version}</version>
79+
<scope>test</scope>
8280
<exclusions>
8381
<exclusion>
8482
<groupId>com.google.code.gson</groupId>
@@ -113,14 +111,6 @@
113111
<artifactId>cucumber-java</artifactId>
114112
</exclusion>
115113
</exclusions>
116-
<scope>test</scope>
117-
</dependency>
118-
119-
<dependency>
120-
<groupId>com.mysql</groupId>
121-
<artifactId>mysql-connector-j</artifactId>
122-
<version>${mysql-connector-j.version}</version>
123-
<scope>test</scope>
124114
</dependency>
125115

126116
<dependency>
@@ -129,10 +119,12 @@
129119
<version>${lombok.version}</version>
130120
<scope>test</scope>
131121
</dependency>
122+
132123
<dependency>
133124
<groupId>com.github.javafaker</groupId>
134125
<artifactId>javafaker</artifactId>
135126
<version>${javafaker.version}</version>
127+
<scope>test</scope>
136128
<exclusions>
137129
<exclusion>
138130
<groupId>org.yaml</groupId>
@@ -143,24 +135,26 @@
143135
<artifactId>commons-lang3</artifactId>
144136
</exclusion>
145137
</exclusions>
146-
<scope>test</scope>
147138
</dependency>
139+
148140
<dependency>
149141
<groupId>org.yaml</groupId>
150142
<artifactId>snakeyaml</artifactId>
151143
<version>${snakeyaml.version}</version>
144+
<scope>test</scope>
152145
</dependency>
153146

154147
<dependency>
155148
<groupId>com.google.code.gson</groupId>
156149
<artifactId>gson</artifactId>
150+
<version>${gson.version}</version>
151+
<scope>test</scope>
157152
<exclusions>
158153
<exclusion>
159154
<groupId>com.google.errorprone</groupId>
160155
<artifactId>error_prone_annotations</artifactId>
161156
</exclusion>
162157
</exclusions>
163-
<version>${gson.version}</version>
164158
</dependency>
165159

166160
<dependency>
@@ -179,8 +173,8 @@
179173
<groupId>org.apache.commons</groupId>
180174
<artifactId>commons-compress</artifactId>
181175
<version>${commons-compress.version}</version>
176+
<scope>test</scope>
182177
</dependency>
183-
184178
</dependencies>
185179

186180

@@ -204,11 +198,6 @@
204198
</plugins>
205199
</build>
206200

207-
208-
<!-- ========================== -->
209-
<!-- for pipeline compatibility -->
210-
<!-- ========================== -->
211-
212201
<profiles>
213202
<profile>
214203
<id>weekly</id>
@@ -217,7 +206,14 @@
217206
<plugin>
218207
<groupId>org.apache.maven.plugins</groupId>
219208
<artifactId>maven-surefire-plugin</artifactId>
220-
<version>${maven-surefire-plugin.version}</version>
209+
<version>${maven-surfire.version}</version>
210+
<dependencies>
211+
<dependency>
212+
<groupId>org.apache.maven.surefire</groupId>
213+
<artifactId>surefire-testng</artifactId>
214+
<version>${maven-surfire.version}</version>
215+
</dependency>
216+
</dependencies>
221217
<configuration>
222218
<suiteXmlFiles>
223219
<suiteXmlFile>src/test/resources/testsuite/RegressionTest.xml</suiteXmlFile>
@@ -234,7 +230,14 @@
234230
<plugin>
235231
<groupId>org.apache.maven.plugins</groupId>
236232
<artifactId>maven-surefire-plugin</artifactId>
237-
<version>${maven-surefire-plugin.version}</version>
233+
<version>${maven-surfire.version}</version>
234+
<dependencies>
235+
<dependency>
236+
<groupId>org.apache.maven.surefire</groupId>
237+
<artifactId>surefire-testng</artifactId>
238+
<version>${maven-surfire.version}</version>
239+
</dependency>
240+
</dependencies>
238241
<configuration>
239242
<suiteXmlFiles>
240243
<suiteXmlFile>src/test/resources/testsuite/SmokeTest.xml</suiteXmlFile>

0 commit comments

Comments
 (0)