Skip to content

harryvn/automation-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

A bare minimum automation framework

Table of Contents

  1. Standalone Execution
  2. Execution using PM2


Change Directory

cd e2e

Install Package Dependencies

npm install

Install Browser Driver Dependencies

npm run setup

npm-run-setup


Start Selenium-Standalone Server

npm start

npm-start


Execute Test Cases

npm test

The above command will:

  • open browser
  • execute test cases
  • generate HTML report

Console Output npm-test

Execution in Action

Note: This is a sample login page, if you want to know more check out this at GitHub npm-test-running

HTML Report report



PM2 Implementation

Install Dependency

npm install -g pm2

Start Server

pm2 start ecosystem.config.js

image

Note: the above command will start the selenium server in the background, you can access it here

image


Run Tests

npm test

Stop Server

pm2 stop ecosystem.config.js

image


Dispose Server

pm2 delete ecosystem.config.js

image


About

A bare minimum automation framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published