# TestRail

> Read TestRail projects, standalone test runs, and run result counts.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/testrail

## Actions

### Get run

Read a test run and its result counts.

**Inputs**

- Run ID (`run_id`, number, required): Run ID from List runs. At least 1.

**Outputs**

- `data` (object): The response from TestRail.

**Example output**

```json
{
  "data": {
    "failed_count": 1,
    "id": 42,
    "is_completed": false,
    "name": "Release Regression",
    "passed_count": 8,
    "project_id": 1,
    "untested_count": 2
  }
}
```

### List projects

Read one page of accessible TestRail projects.

**Inputs**

- Limit (`limit`, number): Maximum number of records in this page. From 1 to 250.
- Offset (`offset`, number): Number of records to skip before this page. At least 0.
- Is completed (`is_completed`, number): 0 for active projects; 1 for completed projects. One of: `0`, `1`.

**Outputs**

- `data` (object): The response from TestRail.

**Example output**

```json
{
  "data": {
    "limit": 10,
    "offset": 0,
    "projects": [
      {
        "id": 1,
        "is_completed": false,
        "name": "Example Project"
      }
    ],
    "size": 1
  }
}
```

### List runs

Read one page of standalone test runs in a project.

**Inputs**

- Project ID (`project_id`, number, required): Project ID from List projects. At least 1.
- Limit (`limit`, number): Maximum number of records in this page. From 1 to 250.
- Offset (`offset`, number): Number of records to skip before this page. At least 0.
- Is completed (`is_completed`, number): 0 for active runs; 1 for completed runs. One of: `0`, `1`.

**Outputs**

- `data` (object): The response from TestRail.

**Example output**

```json
{
  "data": {
    "limit": 10,
    "offset": 0,
    "runs": [
      {
        "failed_count": 1,
        "id": 42,
        "is_completed": false,
        "name": "Release Regression",
        "passed_count": 8,
        "project_id": 1
      }
    ],
    "size": 1
  }
}
```
