Skip to content

Commit 997c6e1

Browse files
committed
Update PW 1.44.0
1 parent 08720a5 commit 997c6e1

File tree

5 files changed

+24
-22
lines changed

5 files changed

+24
-22
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ buildNumber.properties
1111
.mvn/wrapper/maven-wrapper.jar
1212
*.zip
1313
.idea/
14-
reports/
14+
report/
1515
logs/
1616
*.iml

pom.xml

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

77
<groupId>com.anhtester</groupId>
88
<artifactId>PlaywrightJava</artifactId>
9-
<version>1.41.1</version>
9+
<version>1.44.0</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>
@@ -19,21 +19,21 @@
1919
<dependency>
2020
<groupId>com.microsoft.playwright</groupId>
2121
<artifactId>playwright</artifactId>
22-
<version>1.41.1</version>
22+
<version>1.44.0</version>
2323
</dependency>
2424

2525
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
2626
<dependency>
2727
<groupId>org.testng</groupId>
2828
<artifactId>testng</artifactId>
29-
<version>7.9.0</version>
29+
<version>7.10.2</version>
3030
</dependency>
3131

3232
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
3333
<dependency>
3434
<groupId>org.slf4j</groupId>
3535
<artifactId>slf4j-api</artifactId>
36-
<version>2.0.11</version>
36+
<version>2.0.13</version>
3737
</dependency>
3838

3939
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>commons-io</groupId>
6363
<artifactId>commons-io</artifactId>
64-
<version>2.15.1</version>
64+
<version>2.16.1</version>
6565
</dependency>
6666

6767
<!-- https://mvnrepository.com/artifact/com.github.stephenc.monte/monte-screen-recorder -->
@@ -75,14 +75,14 @@
7575
<dependency>
7676
<groupId>org.apache.logging.log4j</groupId>
7777
<artifactId>log4j-core</artifactId>
78-
<version>3.0.0-beta1</version>
78+
<version>2.23.1</version>
7979
</dependency>
8080

8181
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
8282
<dependency>
8383
<groupId>org.apache.logging.log4j</groupId>
8484
<artifactId>log4j-api</artifactId>
85-
<version>3.0.0-beta1</version>
85+
<version>2.23.1</version>
8686
</dependency>
8787

8888
<!-- https://mvnrepository.com/artifact/com.aventstack/extentreports -->
@@ -96,36 +96,36 @@
9696
<dependency>
9797
<groupId>io.qameta.allure</groupId>
9898
<artifactId>allure-testng</artifactId>
99-
<version>2.25.0</version>
99+
<version>2.27.0</version>
100100
</dependency>
101101

102102
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-attachments -->
103103
<dependency>
104104
<groupId>io.qameta.allure</groupId>
105105
<artifactId>allure-attachments</artifactId>
106-
<version>2.25.0</version>
106+
<version>2.27.0</version>
107107
</dependency>
108108

109109
<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
110110
<dependency>
111111
<groupId>org.aspectj</groupId>
112112
<artifactId>aspectjweaver</artifactId>
113-
<version>1.9.21</version>
113+
<version>1.9.22.1</version>
114114
</dependency>
115115

116116
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
117117
<dependency>
118118
<groupId>org.projectlombok</groupId>
119119
<artifactId>lombok</artifactId>
120-
<version>1.18.30</version>
120+
<version>1.18.32</version>
121121
<scope>provided</scope>
122122
</dependency>
123123

124124
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
125125
<dependency>
126126
<groupId>com.google.guava</groupId>
127127
<artifactId>guava</artifactId>
128-
<version>33.0.0-jre</version>
128+
<version>33.2.0-jre</version>
129129
</dependency>
130130

131131
</dependencies>

src/main/java/com/anhtester/reports/ExtentReportManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.anhtester.reports;
22

3+
import com.anhtester.helpers.PropertiesHelper;
34
import com.aventstack.extentreports.ExtentReports;
45
import com.aventstack.extentreports.reporter.ExtentSparkReporter;
56

@@ -8,7 +9,7 @@ public class ExtentReportManager {
89
private static final ExtentReports extentReports = new ExtentReports();
910

1011
public synchronized static ExtentReports getExtentReports() {
11-
ExtentSparkReporter reporter = new ExtentSparkReporter("reports/ExtentReport/ExtentReport.html");
12+
ExtentSparkReporter reporter = new ExtentSparkReporter(PropertiesHelper.getValue("EXTENT_REPORT_PATH"));
1213
reporter.config().setReportName("Extent Report | Anh Tester");
1314
extentReports.attachReporter(reporter);
1415
extentReports.setSystemInfo("Framework Name", "Selenium Java | Anh Tester");

src/test/java/com/anhtester/common/BaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class BaseTest {
1010

1111
@BeforeMethod
12-
@Parameters({"browser"})
12+
@Parameters({"BROWSER"})
1313
public void createBrowser(@Optional("chrome") String browserName) {
1414
BrowserFactory.createBrowser(browserName);
1515
}

src/test/resources/config/config.properties

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
browser=chrome
2-
3-
password=123456
4-
timeout=20
5-
url=https://crm.anhtester.com/admin/authentication
6-
SCREENSHOT_PATH=reports/Screenshots/
7-
VIDEO_RECORD_PATH=reports/VideoRecords/
1+
BROWSER=chrome
2+
3+
PASSWORD=123456
4+
TIMEOUT=20
5+
URL=https://crm.anhtester.com/admin/authentication
6+
SCREENSHOT_PATH=report/Screenshots/
7+
VIDEO_RECORD_PATH=report/VideoRecords/
8+
EXTENT_REPORT_PATH=report/ExtentReport/ExtentReport.html
89
HEADLESS=false
910
VIDEO_RECORD=false
1011
SCREENSHOT_FAIL=true

0 commit comments

Comments
 (0)