Skip to content

Commit 6175b92

Browse files
committed
update on Read.ME file
1 parent bf8cf97 commit 6175b92

File tree

6 files changed

+90
-24
lines changed

6 files changed

+90
-24
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM ubuntu:latest
2-
LABEL authors="aman"
2+
LABEL authors="amaan"
33

44
ENTRYPOINT ["top", "-b"]

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# AUTOMATION TEST FRAMEWORK
1+
# AUTOMATION TESTING FRAMEWORK
2+
3+
This is a robust, scalable, and extensible Test Automation Framework using **Java**, **TestNG**, **Selenium**, *
4+
*ExtentReports**, and other modern tools. Designed for both UI and API testing with support for HTML reporting and
5+
logging.
6+
7+
---
8+
9+
### 📦 Dependencies
10+
11+
| Dependency | Version | Purpose |
12+
|--------------------|----------|-----------------------------------------------------------------|
13+
| `selenium-java` | `4.30.0` | Core browser automation using Chrome, Firefox, etc. |
14+
| `testng` | `7.10.2` | Test execution framework for grouping, parallel execution, etc. |
15+
| `extentreports` | `5.1.1` | Beautiful HTML reports with screenshots, logs, test outcomes. |
16+
| `assertj-core` | `3.25.3` | Fluent, readable assertion syntax. |
17+
| `webdrivermanager` | `5.7.0` | Automatically downloads and manages browser drivers. |
18+
| `rest-assured` | `4.3.3` | API testing for RESTful services. |
19+
| `log4j-core` | `2.24.3` | Logging of test events and debugging info. |
20+
| `slf4j-simple` | `2.0.13` | SLF4J implementation used for simplified logging output. |
21+
22+
---
23+
24+
### 🧪 Running Tests
25+
26+
```
27+
mvn clean install
28+
```
29+
30+
Run tests via TestNG:
31+
32+
```
33+
mvn test
34+
```

pom.xml

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>org.automation</groupId>
7+
<groupId>org.automation.qa</groupId>
88
<artifactId>selenium-framework</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

@@ -23,14 +23,21 @@
2323
<version>4.30.0</version>
2424
</dependency>
2525

26-
<!-- TestNG -->
26+
<!-- TestNG Framework -->
2727
<dependency>
2828
<groupId>org.testng</groupId>
2929
<artifactId>testng</artifactId>
3030
<version>7.10.2</version>
3131
<scope>test</scope>
3232
</dependency>
3333

34+
<!-- ExtentReports for Beautiful HTML Reports -->
35+
<dependency>
36+
<groupId>com.aventstack</groupId>
37+
<artifactId>extentreports</artifactId>
38+
<version>5.1.1</version>
39+
</dependency>
40+
3441
<!-- AssertJ -->
3542
<dependency>
3643
<groupId>org.assertj</groupId>
@@ -45,42 +52,58 @@
4552
<version>5.7.0</version>
4653
</dependency>
4754

48-
<!-- Allure TestNG Adapter -->
49-
<dependency>
50-
<groupId>io.qameta.allure</groupId>
51-
<artifactId>allure-testng</artifactId>
52-
<version>2.27.0</version>
53-
</dependency>
54-
55+
<!-- Rest Assured for API -->
5556
<dependency>
5657
<groupId>io.rest-assured</groupId>
5758
<artifactId>rest-assured</artifactId>
5859
<version>4.3.3</version>
5960
</dependency>
6061

61-
</dependencies>
62+
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
63+
<dependency>
64+
<groupId>org.apache.logging.log4j</groupId>
65+
<artifactId>log4j-core</artifactId>
66+
<version>2.24.3</version>
67+
</dependency>
68+
69+
<dependency>
70+
<groupId>org.jetbrains</groupId>
71+
<artifactId>annotations</artifactId>
72+
<version>RELEASE</version>
73+
<scope>compile</scope>
74+
</dependency>
6275

76+
<!-- Logging - debugging/logs -->
77+
<dependency>
78+
<groupId>org.slf4j</groupId>
79+
<artifactId>slf4j-simple</artifactId>
80+
<version>2.0.13</version>
81+
</dependency>
82+
83+
<dependency>
84+
<groupId>commons-io</groupId>
85+
<artifactId>commons-io</artifactId>
86+
<version>2.15.1</version>
87+
</dependency>
88+
89+
</dependencies>
6390

6491

6592
<build>
6693
<plugins>
67-
<!-- Maven Compiler Plugin -->
94+
95+
<!-- Run TestNG from CLI -->
6896
<plugin>
6997
<groupId>org.apache.maven.plugins</groupId>
70-
<artifactId>maven-compiler-plugin</artifactId>
71-
<version>3.10.1</version>
98+
<artifactId>maven-surefire-plugin</artifactId>
99+
<version>3.2.5</version>
72100
<configuration>
73-
<source>21</source>
74-
<target>21</target>
101+
<suiteXmlFiles>
102+
<suiteXmlFile>testng.xml</suiteXmlFile>
103+
</suiteXmlFiles>
75104
</configuration>
76105
</plugin>
77106

78-
<!-- Allure Maven Plugin -->
79-
<plugin>
80-
<groupId>io.qameta.allure</groupId>
81-
<artifactId>allure-maven</artifactId>
82-
<version>2.11.2</version>
83-
</plugin>
84107
</plugins>
85108
</build>
86109

src/main/java/base/BasePage.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package base;
22

3+
import org.openqa.selenium.chrome.ChromeDriver;
4+
35
public class BasePage {
6+
public static void main(String[] args) {
7+
ChromeDriver driver = new ChromeDriver();
8+
9+
System.out.println("BasePage.main");
10+
}
411

5-
}
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
browser=chrome
2+
base.url=https://demoapp.com
3+
timeout=15

0 commit comments

Comments
 (0)