Skip to content

Commit

Permalink
Update PW 1.44.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vothaian committed May 17, 2024
1 parent 08720a5 commit 997c6e1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ buildNumber.properties
.mvn/wrapper/maven-wrapper.jar
*.zip
.idea/
reports/
report/
logs/
*.iml
24 changes: 12 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.anhtester</groupId>
<artifactId>PlaywrightJava</artifactId>
<version>1.41.1</version>
<version>1.44.0</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand All @@ -19,21 +19,21 @@
<dependency>
<groupId>com.microsoft.playwright</groupId>
<artifactId>playwright</artifactId>
<version>1.41.1</version>
<version>1.44.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.9.0</version>
<version>7.10.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.11</version>
<version>2.0.13</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
Expand Down Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
<version>2.16.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.github.stephenc.monte/monte-screen-recorder -->
Expand All @@ -75,14 +75,14 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>3.0.0-beta1</version>
<version>2.23.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>3.0.0-beta1</version>
<version>2.23.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.aventstack/extentreports -->
Expand All @@ -96,36 +96,36 @@
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.25.0</version>
<version>2.27.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-attachments -->
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-attachments</artifactId>
<version>2.25.0</version>
<version>2.27.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.21</version>
<version>1.9.22.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<version>1.18.32</version>
<scope>provided</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.0.0-jre</version>
<version>33.2.0-jre</version>
</dependency>

</dependencies>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/anhtester/reports/ExtentReportManager.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.anhtester.reports;

import com.anhtester.helpers.PropertiesHelper;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.reporter.ExtentSparkReporter;

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

public synchronized static ExtentReports getExtentReports() {
ExtentSparkReporter reporter = new ExtentSparkReporter("reports/ExtentReport/ExtentReport.html");
ExtentSparkReporter reporter = new ExtentSparkReporter(PropertiesHelper.getValue("EXTENT_REPORT_PATH"));
reporter.config().setReportName("Extent Report | Anh Tester");
extentReports.attachReporter(reporter);
extentReports.setSystemInfo("Framework Name", "Selenium Java | Anh Tester");
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/anhtester/common/BaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class BaseTest {

@BeforeMethod
@Parameters({"browser"})
@Parameters({"BROWSER"})
public void createBrowser(@Optional("chrome") String browserName) {
BrowserFactory.createBrowser(browserName);
}
Expand Down
15 changes: 8 additions & 7 deletions src/test/resources/config/config.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
browser=chrome
email=admin@example.com
password=123456
timeout=20
url=https://crm.anhtester.com/admin/authentication
SCREENSHOT_PATH=reports/Screenshots/
VIDEO_RECORD_PATH=reports/VideoRecords/
BROWSER=chrome
EMAIL=admin@example.com
PASSWORD=123456
TIMEOUT=20
URL=https://crm.anhtester.com/admin/authentication
SCREENSHOT_PATH=report/Screenshots/
VIDEO_RECORD_PATH=report/VideoRecords/
EXTENT_REPORT_PATH=report/ExtentReport/ExtentReport.html
HEADLESS=false
VIDEO_RECORD=false
SCREENSHOT_FAIL=true
Expand Down

0 comments on commit 997c6e1

Please sign in to comment.