A portfolio-ready Java automation testing framework demonstrating end-to-end QA practices for an e-commerce application.
This project combines UI automation, API automation, test data, reporting, and CI execution in one maintainable framework.
- Web UI automation with Selenium WebDriver
- Java programming and TestNG
- Page Object Model (POM)
- Functional, regression, smoke, negative and boundary testing
- REST API automation with REST Assured
- SQL/database validation
- Reusable waits, assertions and utilities
- Maven build management
- Git/GitHub version control
- CI execution with GitHub Actions
- HTML test reporting
| Technology | Purpose |
|---|---|
| Java | Programming language |
| Selenium WebDriver | Web UI automation |
| TestNG | Test execution and assertions |
| REST Assured | API automation |
| Maven | Build and dependency management |
| SQL/MySQL | Database validation |
| Git/GitHub | Version control |
| GitHub Actions | CI automation |
ecommerce-web-api-automation-framework/
├── src/
│ ├── main/java/com/diya/automation/
│ │ ├── api/
│ │ ├── config/
│ │ ├── pages/
│ │ └── utils/
│ └── test/java/com/diya/automation/
│ ├── api/
│ └── ui/
├── src/test/resources/
│ ├── config.properties
│ └── testdata/
├── .github/workflows/maven.yml
├── pom.xml
├── testng.xml
├── .gitignore
└── README.md
- Login validation
- Product search
- Product selection
- Cart operations
- Checkout validation
- GET products
- POST login
- Response status validation
- Response body validation
- Negative API scenarios
- Product data verification
- Order/user data verification
- UI/API to database consistency checks
The framework follows Page Object Model principles so page locators and page actions remain separate from test cases. Common browser operations, waits and configuration are centralized in reusable utility classes.
- JDK 17+
- Maven 3.8+
- Chrome browser
- Git
mvn clean testmvn test -DsuiteXmlFile=testng.xmlUpdate src/test/resources/config.properties with the environment you want to test:
baseUrl=https://your-test-application.example
apiBaseUrl=https://your-api.example
browser=chromeDo not commit real credentials, API keys, or production secrets.
The GitHub Actions workflow runs Maven tests automatically when code is pushed or a pull request is opened.
TestNG generates execution results under:
target/surefire-reports/
- Review requirements
- Identify test scenarios
- Create positive and negative test cases
- Automate stable UI/API flows
- Execute smoke tests
- Execute regression tests
- Validate defects and retest fixes
- Publish test results
- Run the suite through CI
This repository is designed as a learning and portfolio project. Replace the example application URL and test data with a publicly available practice application before presenting execution evidence.
Diya Jatar
Java | Selenium | TestNG | REST Assured | SQL | Git | CI/CD