mrudulp / amz_search

Java Maven Selenium Sample Amazon Search Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README.md

Sample code for Testing Amazon Product Search using Selenium

Steps

  • Goto Amazon.com home page
  • Search Nikon and sort results from highest price to slowest.
  • Select second product and click it for details.
  • From details check (verify with assert) that product topic contains text “Nikon D3X”

Implementation

In the spirit of not wanting to reinvent wheel & learning from best practices from opensource community out there, this project is generated using ru.stqa.selenium archetype.

This helps in setting up basic maven dependencies, configuration file using property files & out of box WebDriver pooler to manager webdrivers.

NOTE:- Project structure is heavily modified to suite my style of code structuring.

Branches

  • There are two branches --

    • Master
    • Cucumber
  • Master branch implements Selenium test using standard PageObjects and TestNG test method.

  • Cucumber strives to implement BDD style of testing. You can refer to ProductSearch.feature for more info

Both branches closely shadow each other viz. Checkpoints closely match requirements written in ProductSearch.feature

Environment

This code is tested against --

  • Jdk build 1.8.0_60-b27
  • chromedriver 2.33.506106
  • OS X (El Capitan) 10.11.6

References

About

Java Maven Selenium Sample Amazon Search Application


Languages

Language:Java 100.0%