Skip to content

Commit 3254605

Browse files
committed
Update Selenium 4.32.0 and core Cucumber Framework
1 parent 2d69958 commit 3254605

File tree

8 files changed

+89
-3304
lines changed

8 files changed

+89
-3304
lines changed

.github/workflows/maven.yml

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,57 @@ jobs:
1515
runs-on: windows-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up JDK 17
20-
uses: actions/setup-java@v3
21-
with:
22-
distribution: 'corretto'
23-
java-version: '17'
24-
cache: maven
25-
- name: Build with Maven
26-
run: mvn clean test --file pom.xml
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
fetch-depth: 0
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: 'corretto'
26+
java-version: '17'
27+
cache: maven
28+
- name: Run test with Maven
29+
run: mvn clean test allure:report --file pom.xml
30+
31+
- name: Upload Extent Report
32+
if: always()
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: cucumber-extent-report
36+
path: exports/reports/CucumberExtentReports/CucumberExtentReports.html
37+
38+
- name: Upload Cucumber Report
39+
if: always()
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: cucumber-report
43+
path: exports/reports/CucumberReports/cucumber-reports/cucumber-html-reports
44+
45+
- name: Upload Allure Report
46+
if: always()
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: allure-report
50+
path: target/site/allure-maven-plugin/
51+
52+
- name: Upload Logs file
53+
if: always()
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: logs-file
57+
path: exports/logs/applog.log
58+
59+
- name: Upload videos for tests
60+
if: always()
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: test-videos
64+
path: exports/ExportData/Videos
65+
66+
- name: Upload screenshots for tests
67+
if: always()
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: test-screenshots
71+
path: exports/ExportData/Images

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/main/java/com/anhtester/keywords"]
2+
path = src/main/java/com/anhtester/keywords
3+
url = https://github.com/anhtester/keywords.git

CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v1.8.6
2+
======
3+
May 22, 2025
4+
* Update Selenium 4.32.0 support CDP 136
5+
* Add .gitmodules file for keywords package contains WebUI class
6+
17
v1.8.5
28
======
39
Feb 23, 2025

pom.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.anhtester</groupId>
88
<artifactId>anhtester-cucumber-testng</artifactId>
9-
<version>1.8.5</version>
9+
<version>1.8.6</version>
1010
<name>TestAutomationFrameworkCucumberTestNG</name>
1111
<url>https://github.com/anhtester/AutomationFrameworkCucumberTestNG</url>
1212

@@ -15,42 +15,42 @@
1515
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
1616
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1717
<java-compiler.version>17</java-compiler.version>
18-
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
18+
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
1919

20-
<cucumber.java.version>7.21.1</cucumber.java.version>
21-
<gherkin.version>32.0.0</gherkin.version>
20+
<cucumber.java.version>7.22.2</cucumber.java.version>
21+
<gherkin.version>32.1.1</gherkin.version>
2222
<cucumber-reporting.version>5.8.4</cucumber-reporting.version>
23-
<selenium.version>4.29.0</selenium.version>
23+
<selenium.version>4.32.0</selenium.version>
2424
<testng.version>7.11.0</testng.version>
25-
<aspectjweaver.version>1.9.22.1</aspectjweaver.version>
25+
<aspectjweaver.version>1.9.24</aspectjweaver.version>
2626
<log4j.version>2.24.3</log4j.version>
27-
<slf4j.version>2.0.16</slf4j.version>
27+
<slf4j.version>2.0.17</slf4j.version>
2828
<allure-testng.version>2.29.1</allure-testng.version>
2929
<allure-maven.version>2.15.2</allure-maven.version>
3030
<allure-environment-writer.version>1.0.0</allure-environment-writer.version>
3131
<allure.cmd.download.url>
3232
https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline
3333
</allure.cmd.download.url>
3434
<extentreports.version>5.1.2</extentreports.version>
35-
<apache-poi.version>5.4.0</apache-poi.version>
35+
<apache-poi.version>5.4.1</apache-poi.version>
3636
<apache-poi-xml.version>5.2.5</apache-poi-xml.version>
37-
<commons-io.version>2.18.0</commons-io.version>
37+
<commons-io.version>2.19.0</commons-io.version>
3838
<owner.version>1.0.12</owner.version>
3939
<assertj.version>3.24.2</assertj.version>
4040
<monte-screen-recorder.version>0.7.7.0</monte-screen-recorder.version>
4141
<mysql-connector-java.version>8.0.33</mysql-connector-java.version>
42-
<lombok.version>1.18.36</lombok.version>
42+
<lombok.version>1.18.38</lombok.version>
4343
<data.supplier.version>1.9.7</data.supplier.version>
4444
<javax.mail.version>1.6.2</javax.mail.version>
4545
<zip.version>1.17</zip.version>
46-
<rest-assured.version>5.5.1</rest-assured.version>
47-
<gson.version>2.12.1</gson.version>
48-
<jackson-databind.version>2.18.2</jackson-databind.version>
49-
<datafaker.version>2.4.2</datafaker.version>
46+
<rest-assured.version>5.5.2</rest-assured.version>
47+
<gson.version>2.13.1</gson.version>
48+
<jackson-databind.version>2.19.0</jackson-databind.version>
49+
<datafaker.version>2.4.3</datafaker.version>
5050
<telegram.bot.version>8.3.0</telegram.bot.version>
5151
<commons-lang3.version>3.17.0</commons-lang3.version>
5252
<extentreports-cucumber7-adapter.version>1.14.0</extentreports-cucumber7-adapter.version>
53-
<mysql-connector-j.version>9.2.0</mysql-connector-j.version>
53+
<mysql-connector-j.version>9.3.0</mysql-connector-j.version>
5454

5555
<!-- Suite XML path -->
5656
<suite.feature>src/test/resources/suites/SuiteFeatureByTag.xml</suite.feature>
@@ -213,13 +213,13 @@
213213
<dependency>
214214
<groupId>org.slf4j</groupId>
215215
<artifactId>slf4j-api</artifactId>
216-
<version>2.0.16</version>
216+
<version>2.0.17</version>
217217
</dependency>
218218
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
219219
<dependency>
220220
<groupId>org.slf4j</groupId>
221221
<artifactId>slf4j-simple</artifactId>
222-
<version>2.0.16</version>
222+
<version>2.0.17</version>
223223
</dependency>
224224

225225
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-testng -->
@@ -387,9 +387,9 @@
387387
<artifactId>allure-maven</artifactId>
388388
<version>${allure-maven.version}</version>
389389
<configuration>
390-
<reportVersion>${allure-testng.version}</reportVersion>
390+
<reportVersion>2.34.0</reportVersion>
391391
<allureDownloadUrl>
392-
${allure.cmd.download.url}/${allure-testng.version}/allure-commandline-${allure-testng.version}.zip
392+
${allure.cmd.download.url}/2.34.0/allure-commandline-2.34.0.zip
393393
</allureDownloadUrl>
394394
</configuration>
395395
</plugin>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# keywords
1+
## WebUI
2+
3+
`WebUI` là một class cung cấp các phương thức hỗ trợ tự động hóa kiểm thử giao diện người dùng (UI) trong các dự án sử dụng Selenium WebDriver. Class này bao gồm các phương thức để chờ đợi trạng thái của các phần tử, kiểm tra thuộc tính, và đảm bảo trang web hoặc các framework như JQuery, Angular đã tải xong.

src/main/java/com/anhtester/keywords/WebUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.openqa.selenium.chrome.ChromeOptions;
2525
import org.openqa.selenium.devtools.DevTools;
2626
import org.openqa.selenium.devtools.HasDevTools;
27-
import org.openqa.selenium.devtools.v133.network.Network;
28-
import org.openqa.selenium.devtools.v133.network.model.Headers;
27+
import org.openqa.selenium.devtools.v136.network.Network;
28+
import org.openqa.selenium.devtools.v136.network.model.Headers;
2929
import org.openqa.selenium.interactions.Actions;
3030
import org.openqa.selenium.print.PrintOptions;
3131
import org.openqa.selenium.support.ui.ExpectedCondition;

0 commit comments

Comments
 (0)