Creating API Tests in the UI
The platform offers three ways to create API test scenarios through the UI: the Swagger Wizard, Postman Import, and the YAML Editor.
Swagger Wizard (Recommended)
The fastest way to create scenarios. Provide a Swagger/OpenAPI spec and the wizard builds your test steps automatically.
Step 1: Select Source
- Navigate to API Testing in the sidebar
- Click Create Scenario
- Select a Project and Environment
- Choose a target service from the environment (REST_SERVICE targets with a Swagger URL)
- Provide the Swagger spec:
- From URL — paste your Swagger JSON/YAML URL
- Paste content — paste the raw Swagger JSON or YAML
- Optionally override the Base URL
- Click Parse & Continue
Step 2: Select Endpoints
The wizard parses the spec and shows all discovered endpoints:
- Each row shows the HTTP method (color-coded), path, summary, and parameter count
- Use the filter bar to search by path, method, or summary
- Check the endpoints you want to include in the test
- Use Select All / Deselect All for bulk selection
- Click Configure Flow (X endpoints)
Step 3: Configure Flow
Set up the scenario metadata and fine-tune each step:
Scenario metadata:
- Name (required) — e.g., "User Service CRUD"
- Description — optional notes
Per-step configuration (each step is an expandable accordion):
- Step name — auto-generated from the Swagger operation
- URL path parameters — fill in required path params like
{userId}. The wizard highlights these with a warning chip - Available variables — shows
{{variables}}extracted by previous steps - Tabs:
- Configuration — HTTP method, expected status codes, endpoint path, timeout
- Headers & Body — custom headers, request body (auto-generated from Swagger schema for POST/PUT/PATCH)
- Extractions — capture values from responses for use in later steps
Adding an extraction:
- Click Add Extraction on the Extractions tab
- Fill in:
- Variable name — referenced as
{{variableName}}in later steps - Extraction type —
JSONPATH,REGEX, orHEADER - Expression — e.g.,
$.id,$.data.token, or a regex pattern - Default value — fallback if extraction fails
- Required toggle — fail the step if extraction fails
- Variable name — referenced as
Reorder steps using the up/down arrows on each accordion header.
Duplicate a step (icon next to the delete button on each accordion header) — produces a deep-clone of the source step right after it with (copy) appended to the name. Useful when the same endpoint runs twice in a flow with different expected statuses, e.g. a read-after-write step returning 200 and a verify-after-delete step returning 404 on the same GET /users/{{userId}}.
Add custom step — outlined button below the step list, above the Back / Review row. Appends a blank step (method GET, path /, expected status [200]). Expand the step accordion to set the HTTP method (dropdown supports GET / POST / PUT / PATCH / DELETE / HEAD / OPTIONS) and endpoint path (relative to the scenario's baseUrl; wrap variables in {curlies}). The method chip in the accordion summary is read-only — make changes from inside the expanded panel.
Use custom steps for endpoints that aren't in the Swagger spec or for path variations the wizard wouldn't auto-generate. Example full CRUD verification flow:
1. GET /api/users → 200
2. POST /api/users → 201, extract userId
3. GET /api/users/{{userId}} → 200 (read after write)
4. DELETE /api/users/{{userId}} → 200
5. GET /api/users/{{userId}} → 404 (verify deleted — duplicate of step 3, change expected status)
Step 4: Review & Save
Review the scenario summary: name, endpoint count, environment, and target. Click Save to create the scenario.
Postman Import
Import existing Postman collections directly:
- From the API Testing page, click Import Postman
- Upload files:
- Drop your Postman collection.json (required)
- Drop your Postman environment.json (optional — maps variables)
- Preview & Select:
- Browse the folder tree of requests
- Check/uncheck individual requests or folders
- Configure:
- Select target Project and Environment
- Toggle Group by Folder — creates separate scenarios per folder
- Toggle Convert Test Scripts — converts Postman
pm.test()assertions to platform assertions - Toggle Import Variables — maps Postman
{{variables}}
- Import — created scenarios appear in the list
YAML Editor
For users who prefer writing tests as code:
- From the API Testing page, click YAML Editor
- Write or paste your scenario in YAML format:
name: User CRUD Lifecycle
baseUrl: "{{baseUrl}}"
steps:
- name: Create user
method: POST
path: /api/users
body:
name: John
email: john@example.com
expect: [201]
extract:
userId: $.id
- name: Read user
method: GET
path: /api/users/{{userId}}
expect: [200]
assert:
- path: $.name
equals: John
- Click Validate to check syntax
- Click Save to create the scenario
See YAML Format for the full reference.
Editing a Scenario
Click the edit icon on any scenario in the list to open the scenario editor:
- Form view — edit metadata, steps, auth, headers, and extractions in a structured form
- YAML view — toggle with the code icon to see/edit the raw YAML representation
- Test individual steps — click the play icon on any step to execute it in isolation and see the response
- Quick extraction — after testing a step, click suggested JSONPath chips from the response to auto-create extractions
Configuring Authentication
In the scenario editor, authentication can come from three sources:
- Target auth (recommended) — toggle "Use Target Authentication" to inherit auth from the environment target
- Environment auth — use credentials configured on the environment
- Custom auth — configure auth directly on the scenario using the auth config editor
The auth config editor supports all 5 types: Bearer (login endpoint), OAuth2 Client Credentials, Static Bearer, Basic Auth, and API Key. Each type has a Test Auth button to verify the configuration works.
Executing a Scenario
- Click the Execute button (play icon) on any scenario
- In the execution dialog:
- Select environment — determines the target URL and credentials
- Target service — auto-matched by app tag
- Auth service — select which auth-configured service to use
- Credential — pick a specific credential tag (or use the default)
- Run name (optional) — tag this execution for filtering
- Click Execute Scenario
- Results show in the History tab with per-step pass/fail status
From Test to Load Test
Any API scenario can be converted to a performance test with one click:
- Open a scenario and click the performance icon (or right-click → Convert to Performance Test)
- Configure load phases (warm-up, sustained, peak)
- Set thresholds (p95 response time, error rate)
- Execute — the same endpoints, same auth, now with concurrent virtual users
See From API to Load Test for details.