This repository contains three automated test cases implemented using Java, Selenium, and JUnit:
1. Webform Automation for Digital Unite
2. Guest Registration Automation for WP Everest
3. Web Scraping for DSEBD Stock Prices
Automates the form submission process:
- Fills in the required fields.
- Uploads a file (≤ 2 MB).
- Validates the success message upon submission.
Automates the guest registration process:
- Completes all mandatory fields.
- Submit the form.
- Verifies successful registration.
Automates stock market data extraction:
- Scrapes stock table data from the DSEBD website.
- Prints all cell values.
- Stores the data in a text file for further reference.
- Programming Language: Java
- Framework: JUnit
- Browser Automation: Selenium WebDriver
- IDE: IntelliJ IDEA or Eclipse
Ensure you have the following installed:
- Java Development Kit (JDK) 8 or higher.
- A Selenium-compatible web browser (e.g., Chrome, Firefox).
- ChromeDriver or GeckoDriver (match your browser version).
- Clone the repository:
git clone https://github.com/rashadkhan97/Automation-using-Junit.git
- Open the Project in any IDE
- Add Dependency in the build.gradle file and reload gradle from the top right
- Dependencies Add:
- Verification
- For the web forms:
- Check the assertion logs for success or failure messages.
- For the table scraping:
- Verify the console output and the generated text file (e.g., store.txt).
- For the web forms:
- Output Files
- Logs: Test results and execution details are logged in the console.
- Text File: Scraped table data is stored in store.txt.
- Automated field inputs.
- Implemented file upload functionality.
- Asserted the expected success message: "Thank you for your submission!".
- Automated field inputs for First Name, Last Name, Email, Password, Gender, DOB, Nationality, Phone, Country, and acceptance of Terms & Conditions.
- Asserted successful registration upon submission.
- Scraped table data from the provided webpage using Selenium.
- Printed all table cell values in the console.
- Stored the scraped data into a text file for reference.




