CAPABILITY GENERATOR

LambdaTestAutomation Testing ● Selenium Testing With Concourse CI And LambdaTest

Selenium Testing With Concourse CI And LambdaTest


Concourse CI is an open-source CI/CD tool which is triggered over Docker containers. It offers a scalable and straightforward solution to your CI/CD pipelines with an intuitive UI that allows you to analyze the dashboard and validate your build execution. Offering a container-centric approach, Concourse CI offers a sturdy pipeline as each task in every job is handled in its container, controlling its dependencies.

Concourse CI can be integrated with LambdaTest to perform automation testing with a cloud Selenium Grid of 2000+ real browsers for mobile and desktop. This document will help you understand how you can integrate your Concourse CI instance with LambdaTest Selenium Grid for continuous testing.

Prerequisites

  • A LambdaTest account. It is free to get started. Sign up now.
  • Install NPM(Node Package Manager). If you have npm already installed, you may want to upgrade it to latest version. Here the code you can run in your terminal to upgrade npm.
  • LambdaTest Authentication Credentials i.e. your LambdaTest username, access key and HubURL. You need to set them up as your environment variables. You can retrieve them from your LambdaTest automation dashboard by clicking on the key icon near the help button.
    • For Linux/Mac:
    • For Windows:
  • Install Concourse and start a Concourse server at port 8080 i.e. http://127.0.0.1:8080.
  • Install fly CLI tool for Concourse CI/CD. We recommend using the latest fly version, you can check the fly version using:

Configuring Concourse-CI Pipeline


Open your terminal or command prompt. Login to your Concourse server and save the target.

Next, we need to update the environment variables in the YAML file. To access your YAML file, you need to go to the project-folder/concourse-ci. Here you will find the YAML file i.e. pipeline-config.yml.

After you specify the right configuration in the pipeline-config.yml, you now need to create your concourse pipeline with the help of fly CLI.

Now, you will find the nodejs-selenium-sample pipeline in the Concourse Web UI. You can run the pipeline over LambdaTest Selenium Grid from the UI itself.

nodejs-LambdaTest-sample-pipeline

After you trigger the test, you will notice the different stages of test execution. The Concourse CI will get the nodejs-selenium-sample and execute it on LambdaTest after installing the right dependencies.

nodejs-LambdaTest-sample-execute
Deploy your code in a reliable manner at scale using Concourse CI integration with LambdaTest, and ensure it looks robust across every browser to provide a seamless user experience to all your visitors. Happy Testing!