API Runner
The API Runner is a built-in API testing tool — similar to Postman — that lets you create, organise, and execute API requests directly within TMS ONE. You can group requests into collections, use environment variables, write test scripts to validate responses, and integrate with GitHub or Azure DevOps for CI/CD workflows.Key features
- Create and organise API requests into collections
- Execute requests with full control over method, headers, body, and authentication
- Use environment variables to switch between dev, staging, and production
- Write test scripts to automatically validate responses
- Export collections to GitHub or Azure DevOps for CI/CD pipelines
- View full execution history in the Execution History page
Getting started
1. Navigate to API Runner
From the left sidebar, click API Runner under your project.2. Create a collection
Click + New Collection in the sidebar and give it a name. Collections are used to group related API requests together — for example, all requests for a specific service or feature.3. Add a request
Click + Add Request under a collection. A blank request form will open in the main panel.Configuring a request
Method and URL
Select the HTTP method (GET, POST, PUT, DELETE, PATCH) and enter the full URL. You can use environment variables in the URL using double curly braces:Params tab
Add query string parameters as key-value pairs. Each parameter can be toggled on or off. Enabled parameters are automatically appended to the URL.Authorization tab
Choose from the following authentication types:| Type | Description |
|---|---|
| No Auth | No authentication (default) |
| Basic Auth | Username and password — automatically base64 encoded |
| Bearer Token | Paste your token directly |
| API Key | Key-value pair added to a header or query parameter |
Headers tab
Add custom request headers as key-value pairs. Each header can be toggled on or off. TheContent-Type header is set automatically based on your body type.
Body tab
Choose how to send the request body:| Type | When to use |
|---|---|
| None | GET requests with no body |
| Raw | JSON, XML, or plain text — includes a beautify JSON option |
| Form Data | Multipart form submissions — supports file uploads |
| URL Encoded | Standard HTML form submissions |
Scripts tab
Write JavaScript test functions to automatically validate the response. All functions must start withtest:
Environment variables
Environments let you define reusable variables (like base URLs, tokens, or API keys) and switch between them without changing your requests.Creating an environment
- Click the environment dropdown in the sidebar
- Click + Create Environment
- Add key-value pairs (e.g.
baseUrl=https://api.staging.yourapp.com) - Toggle individual variables on or off with the checkbox
- Click Save
Using variables in requests
Reference variables anywhere in your request using{{variableName}}:
{{placeholder}} is left unchanged.
Sending a request
Click the Send button. The API Runner will:- Validate the URL format
- Apply enabled query parameters
- Inject authentication headers
- Substitute environment variables
- Send the request
Reading the response
The response panel shows:| Field | Description |
|---|---|
| Status | HTTP status code and message (e.g. 200 OK, 404 Not Found) |
| Time | Request duration in milliseconds |
| Size | Response payload size |
| Body | JSON (syntax highlighted), HTML (rendered), or plain text |
| Headers | Expandable panel showing all response headers |
Test results
If you’ve written test scripts, results appear in the Scripts tab after execution — showing which tests passed or failed and any error messages.Saving requests
Click Save to save the request to its collection. The request is stored with its configuration and latest response for future reference.Exporting to GitHub or Azure DevOps
You can push your collections to a version control repository in Postman Collection v2.1 format for use in CI/CD pipelines.GitHub
- Click the three-dot menu on a collection
- Select Export to GitHub
- Connect your GitHub account if prompted
- Select the organisation, repository, branch, and directory
- Click Push — the collection is committed to the repo
Azure DevOps
- Select Export to Azure from the collection menu
- Connect your Azure account if prompted
- Select the organisation, project, repository, and branch
- Click Push
Collections are exported in Postman Collection v2.1 format, making them compatible with Newman (Postman’s CLI runner) for automated pipeline execution.
Viewing execution history
All past API Runner executions are available in the Execution History page under the API tab. From there you can:- Search by request name
- View response status, time, and size
- Delete old results
Tips
Use environments to avoid hardcoding values
Use environments to avoid hardcoding values
Never hardcode tokens, base URLs, or API keys directly in requests. Store them as environment variables so you can switch between environments without editing every request.
Name requests clearly
Name requests clearly
Use descriptive names like “Create User - Valid Payload” rather than “POST /users”. This makes collections easier to read and helps when reviewing execution history.
Write test scripts for every request
Write test scripts for every request
Even a basic status code check (
tms.expect(response.status).toBe(200)) adds value. It means every execution automatically validates the response, not just returns it.Export collections early for CI/CD
Export collections early for CI/CD
Push your collection to GitHub or Azure DevOps as soon as it’s stable. This gives your team an automated API test suite that can run on every deployment.
What’s next?
Execution History
View past API runner results in the API tab
Defect Management
Log defects when API tests reveal issues