New Features
- Support for
multi-root workspaces
#731, #1169, #1139, #574 - Added new api
await tc.runRequest("reqId")
totc
object in scripts #1199 - Run a filter/script
after Tests
performed #1158 - Pre-request chaining: more conditions #1043
- Sync UI Views when file content changes #1201
- [CLI] Request and response details in
Html report
in CLI #1126 - [CLI] Implement
--log
for "col", "fol" or "reqlist" with TC CLI #1070, #1165 - [CLI]
Auto Update
CLI to the latest version - [CLI] Added
--var-data
parameter to pass Env variables data in CLI #1184 - [CLI] Display debug information using
tc --debug
CLI
- Update CLI to
v1.4.2
-npm i -g @thunderclient/cli
Bug Fixes
- OpenAPI import does not support
.yml
file extension #1212
Run Request in Scripts
- Now you can run requests already created from scripts
- Update types file
tc-types.d.ts
to v1.3.0
async function testReq(){
var result = await tc.runRequest("reqId");
console.log(result);
}
module.exports = [testReq]
Post Request Script
- You can run a filter as post request script from the Tests tab
- Useful to do clean-up tasks after request or set environment variables from the response for advanced use cases
Multi-root workspaces
- Multi-root workspaces are now supported.
- When you open a multi-root workspace the extension will prompt you to select the workspace to save data.
- You can load request data from different workspace easily (see below image).
Request Chaining More Conditions
- The following conditions are supported
=, !=, <=, <, >=, >, *=, ^=, $=
*=
performscontains
operation^=
performsstartsWith
operation$=
performsendsWith
operation