Skip to content

This project demonstrates automating form submission, covering various web elements and verifying the success message. It requires Selenium WebDriver for interaction and JUnit for test execution.

Notifications You must be signed in to change notification settings

ra-hul/Guest-Registration-form-Junit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guest Registration Web Form Automation Using Junit

Overview

In this project, it demonstrates how to automate the submission of a form. The form is available on this site:(https://demo.wpeverest.com/user-registration/guest-registration-form/). The automation process covers different kinds of webelements such as input fields, date picker , drop down menu , checkbox , radio button, submit button and a successful submission message. To automate this project, you need knowledge of Selenium WebDriver to interact with web elements (input fields, date picker,dropdown menu, etc.) and the JUnit framework

Elements of the Form

  • Name input field
  • Phone number input Field
  • Email imput field
  • User Password Field
  • Radio Buttons
  • Date picker
  • Nationality input field
  • Choosing country from dropdown menu
  • Mandatory Checkbox
  • Submit Button

Essentials for automation

  • Chromedriver
  • Java
  • Selenium Webdriver
  • Junit Framework

Automation Process Overview

To automate the form filling, the findElements and findElement methods are used. These methods are utilize to locate such as id, cssSelector, and className to interact with web elements, "sendkeys()" method also used for passing the value for interction. The "Thread.sleep()" method is also called to pause the execution for 2000 ms. The "click()" method is used to click the buttons, radio button. JavaScript Executor is also used for date picker.For assertion, the "getText()" method is used to retrieve the text and verify if the actual text matches the expected text ("User successfully registered."). The comparison is done using the assertEquals() method. "driver.quit()" method used for totally terminate the browser after the completion of automation

Report:

  • Need to use gradle for creating the report.

  • For installation in this project Binary only file is used

  • Report shows the success rate of the test

  • Used the "gradle clean test" command for creating the test report.

    Assignment_Junit_Bonus

Recorded Video Using Screen recoder

JunitSceenRecord.mp4

About

This project demonstrates automating form submission, covering various web elements and verifying the success message. It requires Selenium WebDriver for interaction and JUnit for test execution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages