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.
1 |
npm install npm@latest -g |
1 2 |
$ export LT_USERNAME= {your LambdaTest username} $ export LT_ACCESS_KEY= {your LambdaTest access_key} |
1 2 |
$ set LT_USERNAME= {your LambdaTest username} $ set LT_ACCESS_KEY= {your LambdaTest access_key} |
8080
i.e. http://127.0.0.1:8080.fly
CLI tool for Concourse CI/CD. We recommend using the latest fly version, you can check the fly version using:
1 |
$ fly -v |
Note: Clone this GitHub repository for Selenium and Concourse CI.
Open your terminal or command prompt. Login to your Concourse server and save the target.
1 |
$ fly -t ci login -c http://127.0.0.1:8080 -u test -p test |
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
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
resources: - name: nodejs-selenium-sample type: git icon: github source: uri: https://github.com/sushobhit-lt/nodejs-selenium-sample.git jobs: - name: 'Run over Lambdatest Hub' public: true plan: - get: nodejs-selenium-sample trigger: true - task: 'Install dependencies and execute' config: platform: linux image_resource: type: registry-image source: { repository: node, tag: "12" } inputs: - name: nodejs-selenium-sample run: path: /bin/sh args: - -c - | cd nodejs-selenium-sample npm install export LT_USERNAME=Your_LambdaTest_Username export LT_ACCESS_KEY=Your_LambdaTest_Access_Key node index.js |
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.
1 |
$ fly -t ci set-pipeline -p nodejs-lambda-sample -c pipeline-config.yml |
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.
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.
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!