github rangav/thunder-client-support v2.9.0

latest releases: v2.15.0, v2.14.1, v2.14.0...
14 months ago

New Features

  • Support for multi-root workspaces #731, #1169, #1139, #574
  • Added new api await tc.runRequest("reqId") to tc 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
Screenshot 2023-07-07 at 15 40 49

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).
Screenshot 2023-07-07 at 17 38 01

Request Chaining More Conditions

  • The following conditions are supported =, !=, <=, <, >=, >, *=, ^=, $=
  • *= performs contains operation
  • ^= performs startsWith operation
  • $= performs endsWith operation
Screenshot 2023-07-08 at 07 50 23

Don't miss a new thunder-client-support release

NewReleases is sending notifications on new releases.