# Jenkins

Integrating Jenkins with SimplifyQA allows teams to automate their test execution as part of the CI/CD pipeline. This setup enables seamless execution of test suites post-code deployment, ensuring quality assurance at every stage of the development lifecycle.

### Prerequisites

* You have an active SimplifyQA subscription
* An agent is installed and running on the machine for execution
* You have an active Jenkins subscription

### Create a Pipeline in SimplifyQA

1. Log in to your SimplifyQA account
2. Navigate to the **Pipelines** section from the left-hand panel.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FZsQ7987X7z8ArM3Psmav%2FLeft%20Panel%20-%20Pipeline.png?alt=media&#x26;token=68f7aba4-f1fb-499a-9bd8-13ac26ff10fd" alt=""><figcaption></figcaption></figure>

3. Click on **+Pipeline** to create a new one.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FE920JFU4uBHLMGIb3kna%2F%2B%20Pipeline.png?alt=media&#x26;token=9b30ed29-acab-4010-b70f-8a18f0df582a" alt=""><figcaption></figcaption></figure>

4. Enter a meaningful name for your pipeline.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FGUk5k9MYTNbei9HxLi6g%2Fpipeline.png?alt=media&#x26;token=4d908544-cf86-405f-804b-61d88af3f5bb" alt=""><figcaption></figcaption></figure>

5. Enter the required details and click on save to create the pipeline

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FrRhfwci3oes5WldQFyzk%2Flocal%20pipeline.png?alt=media&#x26;token=04f99867-f6d3-42df-b706-d1b0fc6030cb" alt=""><figcaption></figcaption></figure>

#### Configure the pipeline details:

* **Pipeline Type:** Choose whether you want to run on **Test Case** or **Suite**
* **Execution Type:** Choose whether you want to run on **Local** or **Cloud**
  * **Local Execution**

    If you choose to run tests locally:

    * Select **Local** under Execution Type.
    * You must specify the **Local Machine Name** where the SimplifyQA Agent is installed and running.
  * **Cloud Execution**

    If you opt for Cloud Execution, you need to register your execution environment on the cloud first. This allows to spin up virtual machines or containers for remote execution. Refer to [Cloud Configuration](https://docs.simplifyqa.ai/marketplace/integrating-with-cloud-platforms/vm-based) to configure your cloud.
* **Test Case/Suite ID:** Select the test case or suite
* **Version & Execution Type:** Select the desired versions
* **Machine Name:** Specify the [machine](https://docs.simplifyqa.ai/simplifyqa-installation-and-setup/register-your-machine) for test execution
* **Environment:** Choose the target environment
* **Release and Sprint:** Define these for tracking purposes

### Install SimplifyQA Extension in  Jenkins

1. Log in to your Jenkins account.
2. Go to **Manage Jenkins** from the sidebar.
3. Click on **Manage Plugins**.
4. Navigate to the **Available** tab.
5. In the search bar, type **SimplifyQA Automation Hub**.
6. Select the plugin and click **Install**.
7. Once installed, verify it appears under the **Installed** tab.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F10k8ppAMSwKdD5Sko1oo%2Finstalled%20plugin.png?alt=media&#x26;token=5ecfa548-d2c4-422f-9ca7-d927d4689fc0" alt=""><figcaption></figcaption></figure>

### Create a Jenkins Job

1. On the Jenkins dashboard, click on **New Item**.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FxA7lc41YcvRv2AuHzrS8%2Fjenkins%20new%20item.png?alt=media&#x26;token=99231103-d57a-43d5-8734-c548bf2d3f76" alt="" width="218"><figcaption></figcaption></figure>

2. Enter a name for your project.
3. Select **Freestyle project** and click **OK**.
4. This creates a new Jenkins job you can now configure with SimplifyQA.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F8XbOpqsseIxDwXOxjmNW%2Fbuild%20details.png?alt=media&#x26;token=49c54464-9170-433b-85a1-b7831419ec98" alt=""><figcaption></figcaption></figure>

### Configure SimplifyQA Automation Hub in Build Step

1. Go to the newly created Jenkins project and click **Configure**.
2. Scroll to the **Build** section.
3. Click **Add build step** → Select **SimplifyQA Pipeline Executor**.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F3GGgxAqV649nFt2wtJgq%2Fbuild%20step%20-%20pipeline%20executor.png?alt=media&#x26;token=10f56a42-91cd-4eca-ab05-0d55d81745fe" alt=""><figcaption></figcaption></figure>

### Fill in Required Fields in Build Configuration

You’ll be prompted to provide:

* **API URL** – Base API endpoint for SimplifyQA (e.g., `https://app.simplifyqa.com/api`)
* **API Key** – [Used for authentication](#generate-api-key-from-simplifyqa).
* **Pipeline ID** – The ID of the test pipeline you want to execute.
* **Threshold** – Minimum pass percentage required to mark the build as successful (e.g., `80`).

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FAVW1RY1aVfLXwgIo9baA%2Fsave%20and%20apply.png?alt=media&#x26;token=094c2fe3-91e5-4f41-8a26-886531f45520" alt=""><figcaption></figcaption></figure>

#### Generate API Key from SimplifyQA

* Log in to **SimplifyQA**.
* Navigate to **Settings → Security → Create & Manage API Token**.
* Click **Generate Token**, name your token, and click **Save**.
* Copy the generated API key and paste it into the Jenkins configuration.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FPjI2dr6CbEBtAfZzOrXn%2Fapi%20token.png?alt=media&#x26;token=6310184e-1040-4652-8286-c9352f86f095" alt=""><figcaption></figcaption></figure>

### Save & Build

1. After entering all required details, click **Save** and **Apply**.
2. You can now trigger a Jenkins build to execute your test pipeline in SimplifyQA.

### Monitor Logs in Console Output

1. Trigger the build from Jenkins.
2. Click on the build number → **Console Output**.
3. The output will show:
   1. API authentication success/failure
   2. Pipeline execution status
   3. Number of test cases passed/failed
4. You can also view detailed test execution in SimplifyQA under the **Execution** tab.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FSX1NfCn8F7Oh6iv5FZja%2Fconsole%20output.png?alt=media&#x26;token=1ca0aa3b-10eb-45c0-a118-389d371d707d" alt=""><figcaption></figcaption></figure>

Integrating Jenkins with SimplifyQA allows teams to automate their test execution as part of the CI/CD pipeline. This setup enables seamless execution of test suites post-code deployment, ensuring quality assurance at every stage of the development lifecycle.

### Prerequisites

* You have an active SimplifyQA subscription
* An agent is installed and running on the machine for execution
* You have an active Jenkins subscription

### Create a Pipeline in SimplifyQA

1. Log in to your SimplifyQA account
2. Navigate to the **Pipelines** section from the left-hand panel.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FZsQ7987X7z8ArM3Psmav%2FLeft%20Panel%20-%20Pipeline.png?alt=media&#x26;token=68f7aba4-f1fb-499a-9bd8-13ac26ff10fd" alt=""><figcaption></figcaption></figure>

3. Click on **+Pipeline** to create a new one.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FE920JFU4uBHLMGIb3kna%2F%2B%20Pipeline.png?alt=media&#x26;token=9b30ed29-acab-4010-b70f-8a18f0df582a" alt=""><figcaption></figcaption></figure>

4. Enter a meaningful name for your pipeline.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FGUk5k9MYTNbei9HxLi6g%2Fpipeline.png?alt=media&#x26;token=4d908544-cf86-405f-804b-61d88af3f5bb" alt=""><figcaption></figcaption></figure>

5. Enter the required details and click on save to create the pipeline

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FrRhfwci3oes5WldQFyzk%2Flocal%20pipeline.png?alt=media&#x26;token=04f99867-f6d3-42df-b706-d1b0fc6030cb" alt=""><figcaption></figcaption></figure>

#### Configure the pipeline details:

* **Pipeline Type:** Choose whether you want to run on **Test Case** or **Suite**
* **Execution Type:** Choose whether you want to run on **Local** or **Cloud**
  * **Local Execution**

    If you choose to run tests locally:

    * Select **Local** under Execution Type.
    * You must specify the **Local Machine Name** where the SimplifyQA Agent is installed and running.
  * **Cloud Execution**

    If you opt for Cloud Execution, you need to register your execution environment on the cloud first. This allows to spin up virtual machines or containers for remote execution. Refer to [Cloud Configuration](https://docs.simplifyqa.ai/marketplace/integrating-with-cloud-platforms/vm-based) to configure your cloud.
* **Test Case/Suite ID:** Select the test case or suite
* **Version & Execution Type:** Select the desired versions
* **Machine Name:** Specify the [machine](https://docs.simplifyqa.ai/simplifyqa-installation-and-setup/register-your-machine) for test execution
* **Environment:** Choose the target environment
* **Release and Sprint:** Define these for tracking purposes

### Install SimplifyQA Extension in  Jenkins

1. Log in to your Jenkins account.
2. Go to **Manage Jenkins** from the sidebar.
3. Click on **Manage Plugins**.
4. Navigate to the **Available** tab.
5. In the search bar, type **SimplifyQA Automation Hub**.
6. Select the plugin and click **Install**.
7. Once installed, verify it appears under the **Installed** tab.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F10k8ppAMSwKdD5Sko1oo%2Finstalled%20plugin.png?alt=media&#x26;token=5ecfa548-d2c4-422f-9ca7-d927d4689fc0" alt=""><figcaption></figcaption></figure>

### Create a Jenkins Job

1. On the Jenkins dashboard, click on **New Item**.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FxA7lc41YcvRv2AuHzrS8%2Fjenkins%20new%20item.png?alt=media&#x26;token=99231103-d57a-43d5-8734-c548bf2d3f76" alt="" width="218"><figcaption></figcaption></figure>

2. Enter a name for your project.
3. Select **Freestyle project** and click **OK**.
4. This creates a new Jenkins job you can now configure with SimplifyQA.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F8XbOpqsseIxDwXOxjmNW%2Fbuild%20details.png?alt=media&#x26;token=49c54464-9170-433b-85a1-b7831419ec98" alt=""><figcaption></figcaption></figure>

### Configure SimplifyQA Automation Hub in Build Step

1. Go to the newly created Jenkins project and click **Configure**.
2. Scroll to the **Build** section.
3. Click **Add build step** → Select **SimplifyQA Pipeline Executor**.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2F3GGgxAqV649nFt2wtJgq%2Fbuild%20step%20-%20pipeline%20executor.png?alt=media&#x26;token=10f56a42-91cd-4eca-ab05-0d55d81745fe" alt=""><figcaption></figcaption></figure>

### Fill in Required Fields in Build Configuration

You’ll be prompted to provide:

* **API URL** – Base API endpoint for SimplifyQA (e.g., `https://app.simplifyqa.com/api`)
* **API Key** – [Used for authentication](#generate-api-key-from-simplifyqa).
* **Pipeline ID** – The ID of the test pipeline you want to execute.
* **Threshold** – Minimum pass percentage required to mark the build as successful (e.g., `80`).

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FAVW1RY1aVfLXwgIo9baA%2Fsave%20and%20apply.png?alt=media&#x26;token=094c2fe3-91e5-4f41-8a26-886531f45520" alt=""><figcaption></figcaption></figure>

#### Generate API Key from SimplifyQA

* Log in to **SimplifyQA**.
* Navigate to **Settings → Security → Create & Manage API Token**.
* Click **Generate Token**, name your token, and click **Save**.
* Copy the generated API key and paste it into the Jenkins configuration.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FPjI2dr6CbEBtAfZzOrXn%2Fapi%20token.png?alt=media&#x26;token=6310184e-1040-4652-8286-c9352f86f095" alt=""><figcaption></figcaption></figure>

### Save & Build

1. After entering all required details, click **Save** and **Apply**.
2. You can now trigger a Jenkins build to execute your test pipeline in SimplifyQA.

### Monitor Logs in Console Output

1. Trigger the build from Jenkins.
2. Click on the build number → **Console Output**.
3. The output will show:
   1. API authentication success/failure
   2. Pipeline execution status
   3. Number of test cases passed/failed
4. You can also view detailed test execution in SimplifyQA under the **Execution** tab.

<figure><img src="https://2640723101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMxErCxeVwmOt7GY9s22U%2Fuploads%2FSX1NfCn8F7Oh6iv5FZja%2Fconsole%20output.png?alt=media&#x26;token=1ca0aa3b-10eb-45c0-a118-389d371d707d" alt=""><figcaption></figcaption></figure>
