CAPABILITY GENERATOR

LambdaTest DocumentationAutomation Testing ● AWS CodePipeline Integration With LambdaTest

AWS CodePipeline Integration With LambdaTest


AWS CodePipeline is a cloud-based continuous delivery platform for fully automating your release pipelines. Provides an intuitive interface for configuring & modelling different stages of release cycles, so you could envision how your code changes would look when pushed across these different changes. You can also track your pipeline in real-time, you could also look into the pipeline history to understand the timestamps involved in the execution of various pipelines.

LambdaTest integration with AWS CodePipeline will help you perform automated cross browser testing through a Selenium Grid offering 2000+ real browsers, browser versions. Now, not only can you commit changes to your code using AWS CodePipeline, but you can also validate any UI/UX anomalies of your web application through a wide variety of browsers using LambdaTest, a cloud-based cross browser testing tool.

Prerequisite


  1. Login details in AWS CodePipeline CI.
  2. A GitHub repository. Here is our sample GitHub repository for AWS CodePipeline.
  3. LambdaTest Authentication Credentials
  4. Be aware of your 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:
      $ export LT_USERNAME= {your lambdatest username}
      $ export LT_ACCESS_KEY= {your lambdatest access_key}
    • For Windows:
      $ set LT_USERNAME= {your lambdatest username}
      $ set LT_ACCESS_KEY= {your lambdatest access_key}

Integrating Your LambdaTest Account With AWS CodePipeline


Step 1: Login to your AWS CodePipeline instance. Visit the Pipelines page and create a new pipeline.

create-pipeline

Step 2: Set your pipeline settings for a new service role.

choose pipeline settings

Step 3: Now, provide your git details in the next step to Add Source Stage.

Provide Git details

Step 4: Follow the steps in AWS CodePipeline & fill the form page on the next step to Add build stage.

add build stage in AWS CodePipeline

Step 5: Create a new build project while adding a Build Stage.

create a new project

Step 6: Choose a Deploy Provider on deploy stage screen and click on Next.

Choose a Deploy Provider

Note: Find the sample code from our GitHub repository for AWS CodePipeline.

Step 7: Start a build and pull the codes from Git. Read the below buildspec.yml from your project’s root directory.

Step 8: Monitor your test being triggered on the LambdaTest platform. You will observe the below output generated.

Kudos! Now, you can rapidly commit changes and validate them for UI/UX anomalies by executing automated cross browser testing using LambdaTest Selenium Grid. Happy Testing! 🙂