Skip to content

rashadkhan97/Automation-using-Junit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Testing Project with Selenium and JUnit

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

Content

Project Description

1. Webform Automation for Digital Unite

Automates the form submission process:

  • Fills in the required fields.
  • Uploads a file (≤ 2 MB).
  • Validates the success message upon submission.

2. Guest Registration Automation for WP Everest

Automates the guest registration process:

  • Completes all mandatory fields.
  • Submit the form.
  • Verifies successful registration.

3. Web Scraping for DSEBD Stock Prices

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.

Tools & Technologies

  • Programming Language: Java
  • Framework: JUnit
  • Browser Automation: Selenium WebDriver
  • IDE: IntelliJ IDEA or Eclipse

Prerequisites

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).

How To Run This?

  1. Clone the repository:
    git clone https://github.com/rashadkhan97/Automation-using-Junit.git
  2. Open the Project in any IDE
  3. Add Dependency in the build.gradle file and reload gradle from the top right
  4. 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).
  5. Output Files
    • Logs: Test results and execution details are logged in the console.
    • Text File: Scraped table data is stored in store.txt.

Project Reports

1. Webform Automation for Digital Unite

  • Automated field inputs.
  • Implemented file upload functionality.
  • Asserted the expected success message: "Thank you for your submission!".

Report

task01

2. Guest Registration Automation for WP Everest

  • 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.

Report

task02

3. Web Scraping for DSEBD Stock Prices

  • 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.

Report

task03

Text File

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages