> For the complete documentation index, see [llms.txt](https://sealights-docs.tricentis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sealights-docs.tricentis.com/setup-and-configuration/test-tool-integrations/tosca-cloud/connect-tosca-cloud-to-sealights.md).

# Connect Tosca Cloud to SeaLights

Configure the ABAP Agent toscacloud adapter for SeaLights.

Configure the ABAP Agent **`toscacloud`** adapter. For the operational order (footprints → TIA → run), see [Run a test in Tosca Cloud](broken://pages/Bnfig4POuF0n76usnSUk). For Tosca Commander, see [Connect Tosca Commander to SeaLights](broken://pages/AD78Sh9p33IsyXh4cjaA).

SeaLights supports Tosca Cloud **1.0**. Product-side SeaLights screens: [SeaLights integration (Tosca Cloud)](https://documentation.tricentis.com/tricentis_cloud/en/content/admin_guide/sealights_integration.htm).

## Configure the `toscacloud` adapter

Create or update a test repository with `slabapcli testrepo set --type toscacloud`.

### `testrepo set` parameters for `toscacloud`

Non-secret keys use `--setting key=value`. Secrets are entered interactively (not via `--setting`). Plus common options (`--name`, `--type`, `--pipeline`, `--test-stage`) — see [Configure Test Repositories](broken://pages/RZTKL0g90WmKm4Prs0gG).

| Parameter             | Kind    | Required | Description                                                                                                         |
| --------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
| `url`                 | Setting | Yes      | Tosca Cloud REST base URL.                                                                                          |
| `spaceId`             | Setting | Yes      | Workspace / space name (resolved to a GUID at search time).                                                         |
| `scope`               | Setting | Yes      | OAuth scope for the token endpoint (for example `tta`).                                                             |
| `workstates`          | Setting | No       | Comma-separated test case workstates to include; empty = all.                                                       |
| `searchPaths`         | Setting | No       | Comma-separated list that scopes the search to specific paths. Written as top-level `searchpaths` in `config.toml`. |
| `confidenceThreshold` | Setting | No       | Integer 0–100. Minimum confidence for a match.                                                                      |
| `clientId`            | Secret  | Yes      | OIDC / OAuth client ID.                                                                                             |
| `clientSecret`        | Secret  | Yes      | OIDC / OAuth client secret.                                                                                         |

Global defaults: `[adapters.toscacloud]` in [Configuration settings](broken://pages/DZM4uWEu5r51kMDWCmDB).

### Example `config.toml` shape

```toml
[[testrepo]]
  name = 'toscacloud_repo'
  type = 'toscacloud'
  pipeline = 'my-pipeline'
  teststage = 'Regression Tests'

[testrepo.settings]
  url = 'https://my.toscacloudsite.com'
  spaceId = 'DemoWorkspace'
  scope = 'tta'
  clientId = 'oidc-client-id'
  clientSecret = 'oidc-client-secret'
  workstates = []
```

## Next step

Follow [Run a test in Tosca Cloud](broken://pages/Bnfig4POuF0n76usnSUk): start footprints, enable TIA, then configure the playlist and run.
