> For the complete documentation index, see [llms.txt](https://docs.sealights.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration/managing-test-stages-in-sealights.md).

# Managing Test Stages in Sealights

## What are test stages <a href="#what-are-test-stages" id="what-are-test-stages"></a>

* Sealights captures code coverage and tests information in Test Stages. For instance Integration Tests, Regression Tests, Functinoa Tests etc.
* Test Stage names are determined by the configuration provided to the agent/api when starting one and can be anything the user wants.
* The name has no affect on the performance of Sealights and are there for identification and reporting purposes.
* You should always maintain the same Test Stage name for the same set of tests to maintain the continuity of reporting and functionality over time

## Limitations <a href="#limitations" id="limitations"></a>

* A single Test Stage can be open for a given lab ID (environment under test) at any given time
* If a Test Stage is opened against a lab ID while another one is already open, the first one will be closed automatically\
  To have multiple Tests Stages open in parallel, you need to have them running against separate lab ID’s

## Methods to Open Test Stages <a href="#methods-to-open-test-stages" id="methods-to-open-test-stages"></a>

* Use an integrated agent on a supported test runner. See the various agents integrations for more details
* Using the Start/End CLI commands provided by each agent. See the various agents documentaion for more details
* Using the Sealights Test Sessions API’s. See Sealights [Public API's documentation](https://api-doc.sealights.io/#15b5ade9-a82d-4240-8c32-5d4c7ae6e45d) form more details
* Using the [Chrome Extension](https://sealights.atlassian.net/wiki/spaces/SUP/pages/139886693)
* Setting up a Continuous Test Stage (CTS)

### Continuous Test Stage (CTS) <a href="#continuous-test-stage-cts" id="continuous-test-stage-cts"></a>

The Continuous Test Stage is a System configured Test Stage which will remain open indefinably and will move from one build to the next automatically having coverage linked to the latest reported build.

* New builds will be created as agents come up with the lab ID associated to it
* Coverage will be calculated automatically every 15 minutes
* Tests can still be reported to the same Test Stage for TIA purposes, but need to be reported under the exact same Test Stage name
* You cannot open a different Test Stage against the CTS lab ID

#### Key Benefits of CTS <a href="#key-benefits-of-cts" id="key-benefits-of-cts"></a>

* **Continuously capturing Coverage**: Coverage data is captured around the clock, ensuring comprehensive visibility across all testing activities. This is especially beneficial for capturing Manual Tests
* **Automated Reporting**: No need for additional configuration and setup whic means less resources needed to be involved in the configurations

#### How to enable CTS <a href="#how-to-enable-cts" id="how-to-enable-cts"></a>

Submit a Ticket to the SeaLights Support Team with the lab ID and Test Stage name.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration/managing-test-stages-in-sealights.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
