Autotest adapters

Use official adapters to bind automated tests to Tracera cases and upload results.

What you need

  1. Your instance URL (TRACERA_BASE_URL).
  2. A project Autotest token (TRACERA_AUTOTEST_TOKEN) — Project settings → Autotest (see Tokens).
  3. The project id (TRACERA_PROJECT_ID).
  4. The test case id (testCaseId) from the case card.

Requirements

  • Node.js ≥ 22.19 (all JS adapters).
  • Cypress ≥ 14 when using @tracera/cypress.
  • WebdriverIO ≥ 9 when using @tracera/webdriverio.

Environment

The adapter reads each variable from the process environment first. If a key is unset (or empty), it uses the nearest .env file starting at the working directory and walking up parent folders (not your home directory). Process env always wins.

VariableRequiredDescription
TRACERA_BASE_URLyesInstance URL
TRACERA_AUTOTEST_TOKENyesProject Autotest token
TRACERA_PROJECT_IDyesProject id
TRACERA_TEST_RUN_IDnoAttach to an existing run (report only; no finish). Omit to create a new run
TRACERA_RUN_TITLEnoTitle for a newly created run (≤128). Only when creating a run; ignored if TRACERA_TEST_RUN_ID is set
TRACERA_REQUIRE_REPORTnoDefault false; true → fail the suite if a run cannot be created or result upload fails
TRACERA_LOG_LEVELnoerror, warn, info (default), debug

Run mode

  • Omit TRACERA_TEST_RUN_ID — the adapter creates an empty run, uploads results into it, and finishes that run when the suite ends.
  • Set TRACERA_TEST_RUN_ID — report only into that run; the adapter does not finish it.

Runners

JavaScript

Python

Later (pytest, …).

JVM

Later (JUnit, TestNG, …).

.NET

Later (NUnit, …).