Skip to content

Somesh-ojha/NodeJs-Cucumber-Selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJs-Cucumber-Selenium-Sample

Node.js is an efficient, light weight and cross platform runtime environment for executing JavaScript code. npm(node package manager) is the largest ecosystem of open source libraries. LambdaTest enables node.js scripts to run on the Selenium automation grid. This tutorial will help you run Nodejs automation scripts over LambdaTest Selenium Grid.

Prerequisites

  1. Install npm.
sudo apt install npm 
  1. Install NodeJS.
sudo apt install nodejs 

Steps to Run your First Test

Step 1. Clone the NodeJs Cucumber Selenium Repository.

git clone https://github.com/LambdaTest/NodeJs-Cucumber-Selenium.git 

Step 2. Export the Lambda-test Credentials. You can get these from your automation dashboard.

For Linux/macOS::

export LT_USERNAME="YOUR_USERNAME" export LT_ACCESS_KEY="YOUR ACCESS KEY" 

For Windows:

set LT_USERNAME="YOUR_USERNAME" set LT_ACCESS_KEY="YOUR ACCESS KEY" 

Step 3. Inside Nodejs.Ccumber.Selenium repository install necessary packages.

cd NodeJs-Cucumber-Selenium npm i 

Step 4. To run your First Test.

npm run single 

Step 5. To run parallel Test.

npm run parallel 

Step 6. To run your test locally.

npm run local 

Step 7. Or, you can run all three test.

npm run test 

See the Results

You can check your test results on the Automation Dashboard. Automation Testing Logs

About LambdaTest

LambdaTest is a cloud based Selenium Grid Infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your Selenium test automation to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

About

NodeJs-Cucumber-Selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • Gherkin 6.7%