id | title | hide_title | sidebar_label | description | keywords | url | site_name | slug | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gitlab-integration-with-hyperexecute |
GitLab Integration:HyperExecute |
true |
GitLab |
LambdaTest integrates with GitLab Pipeline to boost your go-to market delivery. Perform automated cross browser testing with LambdaTest to ensure your development code renders seamlessly through an online Selenium grid providing 3000+ real browsers running through machines. |
|
LambdaTest |
gitlab-integration-with-hyperexecute/ |
GitLab is a web-based Git repository that provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security.
This document will show you how to integrate GitLab Pipeline with HyperExecute to greatly shorten your test cycles.
To integrate GitLab Pipeline with HyperExecute, follow the below steps:
You can use your own project to configure and test it. For demo purposes, we are using the sample repository.
:::tip Sample repo Download or Clone the code sample from the LambdaTest GitHub repository to run the tests on the HyperExecute.
To create a new project and connect your external repository to GitLab CI/CD, click the Run CI/CD for external repository tab on the bottom right.
<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/gitlab/create_gitlab_project.png').default} alt="Create New Project" width="" height=""/>
On GitLab, you can either connect your external repository from GitHub or by URL. In this example, we will connect our external repository by URL.
To connect your external repository by URL, fill in the required information in the form below and click the Create Project button at the bottom of the page.
<img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/gitlab/connect_gitlab_by_url.png').default} alt="Create New Project" width="" height=""/>
- To configure the new pipeline that you just created, click the Configure Pipeline button in the center of the page. <img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/gitlab/configure_gitlab.png').default} alt="Create New Project" width="" height=""/>
- Click on the +Set up CI/CD button as shown below. <img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/gitlab/set_up_cicd_gitlab.png').default} alt="Create New Project" width="" height=""/>
- Create a new
.gitlab-ci.yml
file at the root of the repository.
Below is a sample of GitLab YAML created for your reference:
## Define the image to use (adjust for macOS if needed)
image: ubuntu:latest
## Define pipelines (can have multiple pipelines)
pipelines:
## Default pipeline (can be named differently)
default:
## Branches to trigger this pipeline on (adjust as needed)
branches:
- master
## Define steps in the pipeline
steps:
## Download Hyperexecute CLI (descriptive name)
- name: Download Hyperexecute CLI
script: |
wget https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
chmod u+x hyperexecute
## Run Hyperexecute tests (descriptive name)
- name: Run Hyperexecute Tests
script: |
./hyperexecute --user <your_user_name> --key <your_access_key> --config <your_yaml_file_path>
- To commit your changes and run your job, click the Commit Changes button.
Below is an example of a Hyperexecute job that was triggered through the above pipeline: <img loading="lazy" src={require('../assets/images/hyperexecute/integration/ci-cd/gitlab/successful_gitlab.png').default} alt="Create New Project" width="" height=""/>
Run your tests at speeds never seen before. Happy testing! :)