Coder Social home page Coder Social logo

sadabnepal / selenium-javascript-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 278 KB

Mocha framework using Selenium, TypeScript, Mocha, Chai, Docker to test web application

JavaScript 14.38% TypeScript 85.62%
boilerplate-project chai mocha mochawesome selenium selenium-javascript test-automation test-framework docker docker-compose

selenium-javascript-test's Introduction

Selenium Webdriver Test Framework

This is a sample project that uses selenium, typescript, mocha and chai.

Requirements

NodeJs Docker VSCode

Getting Started

Clone Repository

git clone https://github.com/sadabnepal/selenium-javascript-test.git
cd selenium-javascript-test

Install packages:

npm install

Setup husky:

npm run prepare

Run tests:

npm run test

Lint & fix

npm run lint
npm run lint:fix

Run test on Docker

npm run docker:start        [ start the docker container ]
npm run docker:stop         [ stop the docker container ]

npm run docker:start:arm    [ start the docker container for mac m1 chip ]
npm run docker:stop:arm     [ stop the docker container for mac m1 chip ]

Sample Report SampleReport

Key Features

  • Custom types for browser
  • Support to run test with all major browser
  • Parallel execution with mocha framework
  • Docker for testing against/using containerization
  • dotenv to support multiple environment
  • eslint linting tools integrated
  • husky git hooks for pre-commit checks (eslint)

learning references:

topic references
selenium https://www.npmjs.com/package/selenium-webdriver
mocha https://ricostacruz.com/mocha/
mocha config https://github.com/mochajs/mocha/tree/master/example/config
chai https://www.chaijs.com
report https://github.com/adamgruber/mochawesome
dotenv https://www.npmjs.com/package/dotenv
eslint https://eslint.org/docs/latest/use/getting-started
vscode settings https://code.visualstudio.com/docs/getstarted/settings

selenium-javascript-test's People

Contributors

sadabnepal 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.