Skip to content

Commit 2d8b6aa

Browse files
committed
Full Course
1 parent bcfd603 commit 2d8b6aa

File tree

22 files changed

+844
-302
lines changed

22 files changed

+844
-302
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ build/
4646
out/
4747
*.iml
4848
reports/
49-
report/
49+
report/
50+
logs/
51+
*.log

pom.xml

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
</properties>
1616

1717
<dependencies>
18-
1918
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
2019
<dependency>
2120
<groupId>org.seleniumhq.selenium</groupId>
2221
<artifactId>selenium-java</artifactId>
23-
<version>4.15.0</version>
22+
<version>4.16.1</version>
2423
</dependency>
2524

2625
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
@@ -48,21 +47,21 @@
4847
<dependency>
4948
<groupId>org.apache.poi</groupId>
5049
<artifactId>poi</artifactId>
51-
<version>5.2.4</version>
50+
<version>5.2.5</version>
5251
</dependency>
5352

5453
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
5554
<dependency>
5655
<groupId>org.apache.poi</groupId>
5756
<artifactId>poi-ooxml</artifactId>
58-
<version>5.2.4</version>
57+
<version>5.2.5</version>
5958
</dependency>
6059

6160
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
6261
<dependency>
6362
<groupId>commons-io</groupId>
6463
<artifactId>commons-io</artifactId>
65-
<version>2.15.0</version>
64+
<version>2.15.1</version>
6665
</dependency>
6766

6867
<!-- https://mvnrepository.com/artifact/com.github.stephenc.monte/monte-screen-recorder -->
@@ -72,6 +71,82 @@
7271
<version>0.7.7.0</version>
7372
</dependency>
7473

74+
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
75+
<dependency>
76+
<groupId>org.apache.logging.log4j</groupId>
77+
<artifactId>log4j-core</artifactId>
78+
<version>3.0.0-beta1</version>
79+
</dependency>
80+
81+
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
82+
<dependency>
83+
<groupId>org.apache.logging.log4j</groupId>
84+
<artifactId>log4j-api</artifactId>
85+
<version>3.0.0-beta1</version>
86+
</dependency>
87+
88+
<!-- https://mvnrepository.com/artifact/com.aventstack/extentreports -->
89+
<dependency>
90+
<groupId>com.aventstack</groupId>
91+
<artifactId>extentreports</artifactId>
92+
<version>5.1.1</version>
93+
</dependency>
94+
95+
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-testng -->
96+
<dependency>
97+
<groupId>io.qameta.allure</groupId>
98+
<artifactId>allure-testng</artifactId>
99+
<version>2.25.0</version>
100+
</dependency>
101+
102+
<!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-attachments -->
103+
<dependency>
104+
<groupId>io.qameta.allure</groupId>
105+
<artifactId>allure-attachments</artifactId>
106+
<version>2.25.0</version>
107+
</dependency>
108+
109+
<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
110+
<dependency>
111+
<groupId>org.aspectj</groupId>
112+
<artifactId>aspectjweaver</artifactId>
113+
<version>1.9.21</version>
114+
</dependency>
115+
116+
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
117+
<dependency>
118+
<groupId>org.projectlombok</groupId>
119+
<artifactId>lombok</artifactId>
120+
<version>1.18.30</version>
121+
<scope>provided</scope>
122+
</dependency>
123+
75124
</dependencies>
76125

126+
<build>
127+
<pluginManagement>
128+
<plugins>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-surefire-plugin</artifactId>
132+
<version>3.2.2</version>
133+
<configuration>
134+
<suiteXmlFiles>
135+
<!-- Call Suite name -->
136+
<!--<suiteXmlFile>suites/SuiteLoginTest.xml</suiteXmlFile>-->
137+
</suiteXmlFiles>
138+
<argLine>
139+
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/1.9.21/aspectjweaver-1.9.21.jar"
140+
</argLine>
141+
<testFailureIgnore>true</testFailureIgnore>
142+
<systemPropertyVariables>
143+
<!--Đường dẫn xuất ra report-->
144+
<allure.results.directory>target/allure-results</allure.results.directory>
145+
</systemPropertyVariables>
146+
</configuration>
147+
</plugin>
148+
</plugins>
149+
</pluginManagement>
150+
</build>
151+
77152
</project>

src/main/java/com/anhtester/constants/ConfigData.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ public class ConfigData {
77
// public static String EMAIL = "admin@example.com";
88
// public static String PASSWORD = "123456";
99

10-
static {
11-
PropertiesHelper.loadAllFiles();
12-
}
13-
1410
public static String URL = PropertiesHelper.getValue("url");
1511
public static String EMAIL = PropertiesHelper.getValue("email");
1612
public static String PASSWORD = PropertiesHelper.getValue("password");

src/main/java/com/anhtester/helpers/CaptureHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ public static void takeScreenshot(String screenshotName) {
117117
}
118118
}
119119

120-
}
120+
}

src/main/java/com/anhtester/helpers/PropertiesHelper.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.anhtester.helpers;
22

3-
import com.anhtester.helpers.SystemHelper;
4-
53
import java.io.FileInputStream;
64
import java.io.FileOutputStream;
75
import java.io.IOException;
@@ -20,8 +18,6 @@ public static Properties loadAllFiles() {
2018
LinkedList<String> files = new LinkedList<>();
2119
// Add tất cả file Properties vào đây theo mẫu
2220
files.add("src/test/resources/configs/configs.properties");
23-
files.add("src/test/resources/configs/file1.properties");
24-
files.add("src/test/resources/configs/file2.properties");
2521

2622
try {
2723
properties = new Properties();

0 commit comments

Comments
 (0)