https://github.com/sarthakrana21/e2e-parallel-cross-browser-testing
This repository contains automated test scripts for end to end web application testing using Selenium and TestNG. The tests are designed for cross-browser testing, specifically on Chrome and Safari.
https://github.com/sarthakrana21/e2e-parallel-cross-browser-testing
automation-testing java selenium-webdriver testng
Last synced: 3 months ago
JSON representation
This repository contains automated test scripts for end to end web application testing using Selenium and TestNG. The tests are designed for cross-browser testing, specifically on Chrome and Safari.
- Host: GitHub
- URL: https://github.com/sarthakrana21/e2e-parallel-cross-browser-testing
- Owner: SarthakRana21
- Created: 2023-12-07T08:36:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T08:44:20.000Z (over 2 years ago)
- Last Synced: 2025-06-03T17:42:49.625Z (about 1 year ago)
- Topics: automation-testing, java, selenium-webdriver, testng
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E2E-Parallel-Cross-Browser-Testing
This repository contains automated test scripts for end to end web application testing using Selenium and TestNG. The tests are designed for cross-browser testing, specifically on Chrome and Safari.
---
## Prerequisites
Make sure you have the following software installed on your machine:
- [Java Development Kit (JDK)](https://www.oracle.com/java/technologies/javase-downloads.html)
- [TestNG](https://testng.org/doc/download.html)
- [Selenium WebDriver](https://www.selenium.dev/documentation/en/webdriver/driver_requirements/)
## Project Structure
- **baseNg.java**: This class initializes the WebDriver based on the specified browser (Chrome or Safari) and performs setup and teardown operations for each test class.
- **CreateNewProfile.java**: This class contains tests related to creating a new user profile, registering, and logging out. It extends the `baseNg` class for browser setup.
- **loginNewProfile.java**: This class focuses on user login, searching for products, and adding items to the cart. It also extends the `baseNg` class for browser setup.
## TestNG Suite Configuration
The `testng.xml` file orchestrates the test suite, allowing parallel execution of tests on both Chrome and Safari browsers.
## Running the Tests
To execute the tests, run the `testng.xml` file. Ensure that the necessary drivers (chromedriver and safaridriver) are available in the specified paths.
## Test Data
- For user registration, random email addresses are generated using Apache Commons Lang's `RandomStringUtils`.
## Additional Information
- The tests use explicit waits for synchronization, enhancing reliability.
- The project is designed to facilitate easy integration into continuous integration (CI) pipelines.
---
## Output-