Skip to content

This project demonstrates web form automation and data scraping using Java, Selenium, and JUnit. It includes test case design, form submission validation, and extracting table data, aimed at practicing core automation testing skills.

Notifications You must be signed in to change notification settings

faisalkabir1/Web-Automation-by-JUnit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Automation Project using JUnit & Selenium

This project contains automated test scripts for:

  1. Webform Automation for Digital Unite
  2. Webform Automation for WP Everest Demo
  3. Web Scraping from DSE (Dhaka Stock Exchange) Live Share Price Table

🚀 Technologies Used

  • Java – Core programming language for automation
  • JUnit 5 – Test framework used for structuring and running tests
  • Selenium WebDriver – For browser automation and web interaction
  • Gradle – Build automation tool
  • IntelliJ IDEA – Preferred IDE for development

✅ Test Case Descriptions

1️⃣ Digital Unite Webform

🔗 Link: Digital Unite Practice Form

📋 Steps:

  • Fill out all required fields
  • Upload a file (test.jpg – under 2MB)
  • Submit the form
  • Assert: "Thank you for your submission!"

🎬 Demo Video:

DigitalUnite.mp4

📸 Report Screenshot: img_2


2️⃣ WP Everest Guest Registration

🔗 Link: WP Everest Demo Form

📋 Steps:

  • Fill in: Firstname, Lastname, Email, Gender, DOB, Nationality, Phone, Country (Bangladesh), Agree to T&C
  • Submit the form
  • Assert successful registration

🎬 Demo Video:

faisalkabir1-Web-Automation-by-JUnit-WPeverest.mp4

📸 Report Screenshot: img_1


3️⃣ DSE Share Price Table Scraping

🔗 Link: DSE Live Share Price Table

📋 Steps:

  • Scrape all the cell values (excluding floating header)
  • Print values in console
  • Save them into ScrapedData.txt

🎬 Demo Video:

scrapfaisalkabir1-Web-Automation-by-JUnit.mp4

📸 Report Screenshot: img


🧪 How to Run

Make sure you have:

  • Java 17
  • Gradle Wrapper
  • Installed all required dependencies which are added in build.gradle file

To run tests:

./gradlew test

🧪 Run on Windows

```cmd
gradlew.bat test

🛡️ .gitignore Setup

To avoid pushing unnecessary files, include the following in your .gitignore:

.gradle
.idea
build
gradle
logs

🧑‍💻 Author

Faisal Kabir
SQA Engineer | Automation Tester | Email: [email protected]

About

This project demonstrates web form automation and data scraping using Java, Selenium, and JUnit. It includes test case design, form submission validation, and extracting table data, aimed at practicing core automation testing skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages