---
title: "Trigger Test Plan Execution from CI/CD and API"
slug: "trigger-test-plan-execution-from-cicd-and-api"
description: "In this feature video, learn how to trigger a test execution through an API."
tags: ["Automated Test Execution", "Get Started", "Test Modeller"]
updated: 2024-09-27T14:46:45Z
published: 2024-09-27T14:46:45Z
canonical: "knowledge.curiositysoftware.ie/trigger-test-plan-execution-from-cicd-and-api"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.curiositysoftware.ie/llms.txt
> Use this file to discover all available pages before exploring further.

# Trigger Test Plan Execution from CI/CD and API

In this feature video, learn how to trigger a test execution through an API.

[Embedded content](https://www.youtube.com/embed/Gv8W1pd70_M?&amp;wmode=opaque&amp;rel=0)

### Generate and Publish your Test Cases into a Test Plan

Inside a model, generate your test cases by navigating to **Scenarios**, clicking **Run**, and selecting the**Options**button next to **Automation Code**.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978527395.png)

Under the **Publish** tab, there is an option to publish the test cases into a **Test Plan**. In this example, we will be publishing our tests into a regression test plan.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978546124.png)

On the Modeller Homepage, navigate to **Tests** → **Test Plan** to view your test plans.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978551004.png)

After selecting a plan, you are taken to the **Test Suite** page. Here you can see the test cases that have been published to the plan, as well as their results. We can publish test cases from many different models in one single plan.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978555612.png)

---

### Execute Test Plan via an API Request

Under the **Actions** button, there is an option to **Embed in Pipeline**. This will show us the instructions to instrument the Test Suite execution via an API request.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978569966.png)![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978575158.png)

We can select the relevant API request and submit it through any tool that can submit API calls (in our example, we are using Postman).

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978580881.png)

We use the Job ID that was generated to query and track the status, as well as retrieve the results.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978586658.png)

---

### View Job Execution inside Quality Modeller

Back inside Quality Modeller, we can see that a new job has been created. This will trigger the creation and execution of the test cases that were part of the Test Plan.

![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978630734.png)![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1678978635555.png)

Quality Modeller is Curiosity's flow-driven model-based tool which provides a range of accelerators and connectors for building flowcharts rapidly. Align all stakeholders to quality outcomes and create critical assets early, delivering superior software at speed.

## Related

- [Automating Tests](/automating-and-executing-tests-in-test-modeller.md)
- [Quality Modeller 101](/test-modeller-101.md)
- [Quality Modeller](/get-started-with-test-modeller.md)
- [QuickStart Tutorials](/quickstart-tutorials-1.md)
