Skip to main content

Overview and concepts

API Test lets teams build, run and report tests for REST, SOAP and MQ interfaces without writing code. This page explains the concepts you will meet on every other page.

Concepts and terms​

TermMeaning
CollectionA set of cases run in order. Has a Draft (the editable copy) and numbered Published versions (v1, v2…). Has a permanent collection key derived from the name (unique across AGIS; a clash gets a -2 suffix).
Case (TC-xx)One test step: one HTTP request (or one MQ message) + check rules. The TC-xx ID is permanent; reports key on it so renaming/re-ordering never breaks a trend.
Include (INC-xx)A row in the Cases list that runs another published collection as one step.
EnvironmentThe target: Base URL (REST/SOAP) or queue manager connection (MQ), authentication and {{env.x}} variables. One protocol per environment.
SecretA credential in your personal secure vault. Referenced as {{secret.name}}; the value cannot be viewed again after saving.
External SourceA connection to an outside server (SSH/SFTP or Database) to fetch logs/documents or run SQL.
DatasetSupporting data. Rows = a table, 1 row = 1 iteration. Document = text/log/file read through captures. Definition = a WSDL/OpenAPI/Postman document read as an API definition.
IterationOne execution round of a case (because a dataset has many rows or because of Repeat).
OutcomePassed, Failed, Blocked (a rule could not be evaluated, e.g. an unfilled variable), Skipped (case disabled). See Glossary of values and codes.
RevisionA change counter of the collection draft. Used to detect edit conflicts (VERSION_CONFLICT).

Variable types and {{ }} placeholders​

This is the key to every input marked "… allowed".

FormSourceFunction
{{baseUrl}}The environment Base URL (reserved name; cannot be declared as a variable)URL prefix in the Request tab: {{baseUrl}}/path.
{{env.name}}Environment variables (in the Environment form)Values that differ per environment (host, tenant). Not changed in the collection; can only be overridden at Run.
{{run.name}}Declared in the collection Variables tab; written by Extract/SetupValue shared during one Run (e.g. token, id returned by a Create). Used across cases.
{{name}} (no prefix)Written by one case's Extract/SetupCase-local variable: lives only inside that case.
{{secret.name}}Personal vault (Secrets)Used in auth, headers, etc. Resolved at run time; cannot be overridden.
{{data.1.column}}A Rows dataset bound in the Data tabThe column value of the current iteration's row. Resolved before the request is sent.
{{doc.name}}A capture on a Document datasetA value pulled from a log; used in Assertions/Compare.
info

A variable that is used but not declared appears as Undeclared references in the Variables tab and makes Publish fail. A variable that is unresolved at run time makes the case Blocked.

Workflow and lifecycle​

Secret → Environment → Collection (Draft) → Case → (Variables, Datasets, Setup/Teardown)
→ Publish (validation) → vN Published → Run Collection / Run Case
→ History → Run results → Report (HTML / Excel)
  • Draft: freely editable. The Cases/Settings tabs save with the Save button in the bottom bar.
  • Publish: validates the draft, then creates a numbered version. If something is wrong, the "Fix or review this case before publishing" list names the case and the reason.
  • Run: uses a Published version. Results are stored in History.
  • Permissions: many buttons and tabs only appear if your account has the permission (collections, cases, datasets, generate, run, environments, external sources, secrets). See the full list in Permissions.

Setting up on a new server​

On a new server nothing exists yet. Some things only an administrator can provide, and the rest you build in a fixed order.

Provided by your administrator

WhatWhy you need it
Permissions on your roleWithout them buttons and tabs are hidden. See Permissions.
The API Tests agents (installed and Live)Only needed to generate or run tests by chat. See Generate tests with chat.
Network access from the AGIS server to your systemsThe AGIS server calls your API, queue manager, SSH or database host. They must be reachable from the server, not just from your browser.
Connection details for MQ, SSH/SFTP and databasesNeeded for MQ environments and external sources.

What you build, in order

StepPage
1. Secret, if the API needs credentialsSecrets
2. Environment (where to test)Environments
3. Collection (what to test)Collections and cases
4. Cases: request, extract, assertionsRequest
5. Publish, then runRunning tests
6. Read the resultsResults, history and reports

The Quick start walks through all of these. For specific jobs, see the guides.

Good to know​

TopicDetails
Uploading datasetsThe Datasets tab has no upload. UI text: "Nothing is uploaded here — submit files from Source → Submit to API Tests Dataset". .csv/.json files become Rows datasets; .xlsx/.xls/.log/.txt become Document. In the Datasets tab you can view, rename, delete, Read as definition and Retrieve from an external source.
Running a single caseA single-case run uses a Published version that contains the case (not the draft). If none does, the UI shows "No published version contains this case…". So Publish first, then Run case. Unsaved draft edits are not executed.
TLSThe TLS setting is on the Request tab of a case (TLS Verification: Strict / Relaxed), not in the Environment form.

Saving, discarding and conflicts​

  • Every case and collection tab has a bottom bar with Save and, once something changed, Discard changes. Leaving with unsaved edits opens Discard unsaved changes? with Keep editing and Discard changes.
  • If someone (or the chat agent) changed the draft in the meantime you get VERSION_CONFLICT. Click Reload Latest Draft, then Reapply My Edits (or Discard My Edits).
  • After a chat turn finishes, open collections reload themselves because the chat may have changed them.