Skip to main content

Missing Secrets

Variables and secrets live in Settings → Variables & Secrets and are referenced from Gherkin as {{var:NAME}} and {{secret:NAME}} (type @ in the editor to autocomplete). Login steps, staging credentials, API tokens, and private test data usually depend on them. Secrets are encrypted and write-only after saving. The settings and editor display secret names rather than revealing stored values. Avoid printing credentials in your own test code or copying them into screenshots.

Common Missing Values​

ValueCommon use
Test username and passwordSigning in to the app under test.
API tokenCalling a backend or setting up test data.
Environment URL or tenant valueTargeting the right staging, QA, or customer environment.
Plugin-required valuesSome plugins declare values they need before they can run.

The failure message usually names the token that could not be resolved.

Symptoms​

SymptomWhat it usually means
Run or generation reports a secret token was not foundThe name inside {{secret:NAME}} does not match any entry in Variables & Secrets.
Run fails during loginTest credentials are missing, wrong, or saved under a different name.
A value resolves as emptyThe entry exists with a different name, or was saved in a different project.
A plugin refuses to runThe plugin requires a value that has not been added yet.

Add Or Replace A Value​

  1. Open Settings → Variables & Secrets in the project that owns the test.
  2. Add an entry whose name exactly matches the token in your Gherkin ({{secret:NAME}} or {{var:NAME}}).
  3. Paste the value and save. Secret values are hidden after saving. Tokens are displayed as chips in the editor and result steps; a chip is a reference, not the credential itself.
  4. Re-run generation or the test run that failed.

For the full setup flow, see Add API keys and secrets.

Important Notes​

  • Use the saved name shown by the picker; check spelling and the selected project.
  • If a secret value changed, replace it and run again; you cannot read the old value back.
  • Use {{var:NAME}} for non-sensitive values you want visible, and {{secret:NAME}} for credentials.