# DevOps

The DevOps Integration functionality allows you to log defects and other issues on DevOps based on reports generated by Avo Assure.

#### Different execution trigger types in DevOps

{% hint style="info" %}
To learn more about DevOps Intergration, refer to[ DevOps Integration](https://docs.avoautomation.com/integrations-in-avo-assure/devops-integration)
{% endhint %}

**A. HTTP Request**

HTTP Request is used when a test case requires communication with external web services or APIs, like RESTful. It enables you to send HTTP requests and validate the responses, making it possible to automate scenarios where system-to-system interaction is necessary.

**B. Code snippet**

Code snippet is helpful when custom logic is needed beyond the available built-in actions. You can embed and run small scripts or code blocks in various programming languages directly within your test workflow, allowing flexibility to handle complex scenarios.

**C. Cloud Execution**

Cloud Execution supports running automated tests in cloud-based environments rather than on local machines. In Avo Assure, Cloud Execution currently supports **Harness** and **Docker** as execution triggers. It enables scalability, cross-browser/device testing, and reduces dependency on local infrastructure.

## **A. HTTP Request**

Below are the steps to trigger execution using HTTP request:

1. On the **Execution** tab, select parent folder.
2. &#x20;Select **DevOps** from the top right corner and the **DevOps** pop-up appears.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FaDipFtr4R7h4bmKbP5gk%2Fimage.png?alt=media&#x26;token=77b2ac25-f912-414a-95c4-758a6f6bbc5e" alt=""><figcaption></figcaption></figure>

3. Select **HTTP Request** to send HTTP requests and validate responses when the Testcase requires interaction with external webservices or APIs.
4. Copy **DevOps Integration URL** and **DevOps Request body** from the **DevOps** windo&#x77;**.**
5. Select **Asynchronous** or **Synchronous**:
   1. **Asynchronous:** Execution Responses are generated simultaneously during the execution.
   2. **Synchronous:** Execution Responses are generated after the end of execution.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F6yUt2yjfwAsjsBg1cQzi%2Fimage.png?alt=media&#x26;token=08df4ec2-45f8-491f-949b-edb2dbe361d8" alt=""><figcaption></figcaption></figure>

## **B. Code snippet**

1. Select parent folder and select **DevOps** from the top right corner. The **DevOps** pop-up appears.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FF1pkwk8hYLrApTjnTyrH%2Fimage.png?alt=media&#x26;token=a00b9aa9-9cb6-4cd5-b612-1ef8ee97cb82" alt=""><figcaption></figcaption></figure>

2. Select **Code snippet** to add custom logic by embedding and running scripts within the test workflow, enabling handling of complex scenarios.

3. Enter the time in second in the **Set The Time**r to trigger the execution at the provided time.

4. Select the language form **Select Language.**

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong>: </p><ul><li><p>Avo Assure supports following Languages:</p><ul><li>cURL</li><li>Javascript</li><li>Python</li><li>PowerShell - RestMethod</li><li>Shell - wget </li></ul></li><li>According to the language the code snippet changes.</li></ul></div>

5. Select **Proxy** and provide **Proxy URL.**

{% hint style="info" %}
**Note**: By default, the **Proxy** option is disabled. By enabling, it allows you to provide a **Proxy URL**.
{% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FlDv14UXRwQaDVvdqEStx%2Fimage.png?alt=media&#x26;token=db0c6444-6bf7-489b-9d4d-3294447cedf3" alt=""><figcaption></figcaption></figure>

## **C. Cloud Execution**

1. Select parent folder and select **DevOps** from the top right corner. The **DevOps** pop-up appears.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F1TZqG5AFx8OFCRb9sleD%2Fimage.png?alt=media&#x26;token=fa08750d-31cf-4cf5-8535-7a54d0f807b6" alt=""><figcaption></figcaption></figure>

2. Select **Cloud Execution** and **copy** the code snippet containing the execution list details.

{% hint style="info" %}
**Note:**&#x20;

* You can Increase or decrease the **Parallel Count** as required for execution.
* Cloud Execution supports two environments — **Docker** and **Harness**.
* Copy and save both code snippets in a file (e.g., Notepad) for later use when triggering the execution on the cloud environment.
  {% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FdTEPWvPIFz3j6htViac0%2Fimage.png?alt=media&#x26;token=e81f245b-2feb-49c2-bc24-305769d6888a" alt=""><figcaption></figcaption></figure>
