/Nemo-Lambdatest-sample

Run test automation on cloud with Nemo.js and LambdaTest. This is a sample repo to help you execute Nemo.js framework based test scripts in parallel with LambdaTest automation testing cloud

Primary LanguageJavaScript

Run Selenium Tests With NemoJS On LambdaTest

JavaScript

Blog   ⋅   Docs   ⋅   Learning Hub   ⋅   Newsletter   ⋅   Certifications   ⋅   YouTube

     

Learn how to use NemoJS framework to configure and run your JavaScript automation testing scripts on the LambdaTest platform

Table of Contents

Pre-requisites

Before starting running your Selenium tests with NemoJS, ensure you have the following things configured.

  1. Make sure you have NodeJS installed. You can install it from the official NodeJS website. You can also install NodeJS by running the following command in the terminal.
$ brew install node
  1. Clone the repo.
git clone https://github.com/LambdaTest/Nemo-Lambdatest-sample.git
cd Nemo-Lambdatest-sample
  1. Install the dependencies by executing the following command.
npm install
  1. To run your Selenium tests with NemoJS, you would need to set your LambdaTest username and access key in the environment variables. To get it, visit Automation Dashboard and click on the Key button from the top-right.

For Windows:

set LT_USERNAME="YOUR_LAMBDATEST_USERNAME"
set LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY"

For Mac/Linux:

export LT_USERNAME="YOUR_LAMBDATEST_USERNAME"
export LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY"
  1. Set the environment variables in nemo.config.js file with your LambdaTest Username and Access Key.

Running The Single Test Case With NemoJS

Test Scenario: To run your single test case with NemoJS on LambdaTest, let’s understand our test case scenario, the below Nemo.js automation script will test a sample to-do list app. The code marks two list items as done, adds a list item, and then outputs the total number of pending items. Check out the nemo.test.js file to run your first sample test.

To run the single test, execute the below command in the terminal.

npx nemo -P chrome

Running The Parallel Tests With NemoJS

Test Scenario: In this code, we will test our Sample to-do app in three browser versions and operating systems. Check out the nemo.config.js file to run your first sample test.

Now run the below command to run the parallel tests.

npx nemo -P chrome,chrome_2,firefox

Documentation & Resources 📚

Visit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.

LambdaTest Community 👥

The LambdaTest Community allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎

What's New At LambdaTest ❓

To stay updated with the latest features and product add-ons, visit Changelog

About LambdaTest

LambdaTest is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs.

Features

  • Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.
  • Real-time cross browser testing on 3000+ environments.
  • Test on Real device cloud
  • Blazing fast test automation with HyperExecute
  • Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.
  • Smart Visual Regression Testing on cloud
  • 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.
  • Automated Screenshot testing across multiple browsers in a single click.
  • Local testing of web and mobile apps.
  • Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.
  • Geolocation testing of web and mobile apps across 53+ countries.
  • LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports

We are here to help you 🎧