/SeleniumAutomationPractice

Selenium Webdriver Test Automation Practices

Primary LanguageJavaGNU General Public License v3.0GPL-3.0


logo

automationpractice.com Selenium Automation Practices

Selenium Test Automation Practices

About The Project

This project using Java with Maven Selenium and Maven JUnit libraries.

There is positive and negative test cases.

Positive Test Cases
(src/test/java/com/automationpractice/tests/PositiveTests.java)

1. Automate User Registration process of e-commerce website.

  • Open this url http://automationpractice.com/index.php
  • Click on sign in link.
  • Enter your email address in 'Create and account' section.
  • Click on Create an Account button.
  • Enter your Personal Information, Address and Contact info.
  • Click on Register button.
  • Validate that user is created.

2. Automate 'Search Product' feature of e-commerce website with Selenium.

  • Open link http://automationpractice.com/index.php
  • Move your cursor over Women's link.
  • Click on sub menu 'T-shirts'
  • Get Name/Text of the first product displayed on the page.
  • Now enter the same product name in the search bar present on top of page and click search button.
  • Validate that same product is displayed on searched page with same details which were displayed on T-Shirt's page.

3. Automate end-to-end "Buy Product" feature of the e-commerce website.

  • Open link http://automationpractice.com/index.php
  • Login to the website.
  • Move your cursor over Women's link.
  • Click on sub menu 'T-shirts'.
  • Mouse hover on the second product displayed.
  • 'More' button will be displayed, click on 'More' button.
  • Increase quantity to 2.
  • Select size 'L'
  • Select color.
  • Click 'Add to Cart' button.
  • Click 'Proceed to checkout' button.
  • Complete the buy order process till payment.
  • Make sure that Product is ordered.

Negative Test Cases
(src/test/java/com/automationpractice/tests/NegativeTests.java)

1. Verify invalid email address error.

  • Open this url http://automationpractice.com/index.php
  • Click on sign in link.
  • Enter invalid email address in the email box and click enter.
  • Validate that an error message is displaying saying "Invalid email address."

2. Verify error messages for mandatory fields.

  • Open this url http://automationpractice.com/index.php
  • Click on sign in link.
  • Enter email address and click Register button.
  • Leave the mandatory fields (marked with *) blank and click Register button.
  • Verify that error has been displayed for the mandatory fields.

3. Verify error messages for entering incorrect values in fields.

  • Open this url http://automationpractice.com/index.php
  • Click on sign in link.
  • Enter email address and click Register button.
  • Enter incorrect values in fields like., enter numbers in first and last name, city field etc., and enter alphabets in Mobile no, Zip postal code etc., and click on 'Register' button.
  • Verify that error messages fpr respective fields are displaying.

Credits

Automate Amazon like E-Commerce Website with Selenium WebDriver

License

Distributed under the GNU General Public License v3.0 License. See LICENSE for more information.

Contact

Yunus Emre Çelik - @bashengaistaken - yunusemre.celik@testinium.com

Project Link: https://github.com/yunusemrecelikk/SeleniumAutomationPractice