Giter VIP home page Giter VIP logo

zippia-selenium-test-project's Introduction

Zippia-Selenium-Test-Project

Selenium test project for Zippia

Prerequisite:

  1. Latest chrome browser: Make sure to have latest chrome browser installed on your local machine (Since the current framework configured to execute on chrome browser but we can have multiple browsers configured by adding few configuration steps with which we can achieve cross browser testing.)

  2. Latest node.js: Install from the site - https://nodejs.org/en/ take the LTS version based on your Operating system (Once node is installed check node version by firing command to the terminal or cmd node -v) image

  3. Latest JDK: JDK is required for executing report. Follow installing JDK and Setting JAVA_HOME steps from document (https://www.oracle.com/webfolder/technetwork/tutorials/oraclecode/windows-hol-setup.pdf) and once its done check installed jdk verison by firing command to terminal or cmd java --version image

Run Some Sample Tests:

To execute the entire test suite in local machine, you can use below mentioned option:

  1. To execute this project on local machine enter mentioned command to terminal by navigating to the root directory of project: npm run test or npm test

image

  1. To view allure reports on browser enter mentioned command to terminal by navigating to the root directory of project: npm run report

image

Tech Stack:

  1. Programming Language: JavaScript
  2. Testing Framework: Mocha JavaScript Framework
  3. Assertion: Chai library
  4. Design pattern: Page Object Model (POM)
  5. Reports: Allure reports
  6. Source Code Management: Git

Mocha JavaScript framework:

Tests are written in the Mocha framework. See below screenshot and More about Mocha can be found at https://mochajs.org/

image

Design Pattern used: Page Object Model (POM): A way of representing interactions with a page or component. It Helps to be more maintainable and easier to read.

Within your web app's UI there are areas that your tests interact with. A Page Object simply models these as objects within the test code. This reduces the amount of duplicated code and means that if the UI changes, the fix need only be applied in one place. In other wards one of the challenges of writing test automation is keeping your [selectors] (classes, id's, or xpath's etc.) up to date with the latest version of your code. The next challenge is to keep the code you write nice and [DRY] (Don't Repeat Yourself). The page object pattern helps us accomplish this in one solution. Instead of including our selectors in Spec file (in Mocha), we instead place them in a .js file where we can manage all these selectors and methods together. Your test file should only call the test methods.

image

Allure Reports:

The Allure Reporter creates Allure test reports which is an HTML generated website with all necessary information to debug your test results and take a look on error screenshots. image

image

zippia-selenium-test-project's People

Contributors

ajaygzb avatar

Watchers

James Cloos avatar  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.