Giter VIP home page Giter VIP logo

amazonpoc's Introduction

Automated Testing POC Instructions

Problem solved:

This test automation solution is a POC to implement the BDD automated testing of the web applications. The Application Under Test(AUT) for this POC is Amazon India shopping portal https://www.amazon.in/. The test scenarios covered are - log into the application and search products from the search box.

Technologies used:

  1. Javascript.
  2. Node.js v12.22.1 javascript execution engine.
  3. WebDriverIO provides Cucumber.js test framework and WebDriver protocol integration for cross-browser testing.
  4. ChromeDriver v89.x.x npm package for executing tests on Chrome browser. It will need Chrome browser version v89 or higher for the tests to execute.
  5. Cucumber-html-reporter npm package to translate Cucumber JSON test report to HTML test report.
  6. Hamjest npm package provides library of composable matchers for defining meaningful and readable assertions in javascript.
  7. Winston npm package for logging.
  8. Config npm package for application configuration settings.
  9. Fs-extra npm package for file system operations.

Opening and Setting up Project:

  1. Visual Studio Code (vscode) used as IDE to develop this solution.

  2. To open the project in vscode, go to File -> Open Folder then locate and select the project folder and click Select Folder button.

  3. To install project dependencies, open the Terminal or Command Prompt and go to the project folder '...\amazonPOC' and run the following command -

    npm install
    

    (live internet connection required to install these dependencies and make sure node.js is installed and included in PATH environment variable.)

  4. User should have 'write' permissions to the location where '...\amazonPOC' directory is located. This is required only for installing dependencies, creating and writing report and log files at the locations '...\amazonPOC\node_modules', '...\amazonPOC\reports' and '...\amazonPOC\logs' respectively.

  5. To get better vscode IDE support, ensure that Cucumber (Gherkin) Full Support vscode extension is installed.

Running Tests:

Open the Terminal or Command Prompt and go to Directory '.....\amazonPOC' and run below command:

npx wdio run wdio.conf.js

Note:

Tests execute in the Chrome browser in the headless mode.

Test Artifacts:

  1. Execution report: Execution report file 'cucumber-tests.html' generated and located at '....\amazonPOC\reports'.
  2. Execution logs: Log file 'cucumber-tests.log' generated and located at '....\amazonPOC\logs'.

amazonpoc's People

Contributors

cod3rboy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.