Thunder Client Support Versions Save

Thunder Client is a lightweight Rest API Client Extension for VS Code.

v2.15.3

5 months ago

Bug Fixes

  • Confusing icon to create activity, collection, and env variable #1391, #733
  • Connection refused for localhost #170
  • Undo / Redo is not working for german keyboard #1397, #1387
  • Performance slow on macOS #1398

v2.15.0

5 months ago

New Features

  • Run Collection Parallel #1088, #1363
  • Run Collection Skip request feature
  • Cookie Manager View #142
  • Get the current active environment name in the inline script? #1385
  • CLI - update to latest version v1.9.0

Bug Fixes

  • undo-function does not work #1387, #726, #838, #558, #1048, #365

Run Collection Parallel (beta)

  • We are releasing a new feature to support running requests in collection concurrently.
  • You can configure no of concurrent requests to execute in parallel.
  • The feature is in beta, please test and let us know the feedback
  • CLI - use --concurrent switch. e.g: tc --col "colName" --concurrent 5 Screenshot 2023-11-01 at 08 11 10

Skip Request in Run Collection

  • Now you can skip request from execution in Run Collection
  • Works from Extention UI and CLI Screenshot 2023-11-01 at 08 13 58
  • View all the cookies in Cookie Manager for the domains. You can delete single cookie or all cookies
  • Limitation: Currently you cannot create cookies from Cookie Manager, instead use the Cookie header
  • To view Cookie Manager:
    • From Sidebar View -> click ... and select Cookie Manager
    • From Command Palette -> search Cookie Manager Screenshot 2023-11-01 at 08 21 09

v2.14.1

6 months ago

New Features

  • Clear Cookies for select requests from scripting #1379
  • See updated tc API types file (v1.6.0)
  • Update CLI to v1.8.1

Bug Fixes

  • Fix - HTTP Headers (raw format) does not retain the unselected headers #1382

New API for Cookies

  • We are adding a new API to manage cookies from scripting

Get Cookies

// get all cookies in store
var list = await tc.getCookies();

// get all cookies for current url
var listDomain = await tc.getCookies("url");
var listDomain = await tc.getCookies(tc.request.url);

Clear Cookies

// clear all cookies in store
await tc.clearCookies();

// clear all cookies for current domain
await tc.clearCookies("url");
await tc.clearCookies(tc.request.url);

// clear single cookie by name of cookie
await tc.clearCookies(tc.request.url, "cookieName");
// set cookie for current url
await tc.setCookie("https://www.thunderclient.com", "cookieName", "cookieValue");
await tc.setCookie(tc.request.url, "cookieName", "cookieValue");

v2.14.0

6 months ago

New Features

  • Inline Scripting support #1026
  • Col & Request level env variables using scripting #823
  • CLI - Single report for test run with multiple collections #1221
  • chai expect, assert, and atob, btoa global variables added in scripting.
  • Update CLI to version v1.8.0

Bug Fixes

  • Cannot view/edit long environment variable values #1378
  • CLI - Pipeline job success if no collection is running #1376

Inline Scripting

  • We are introducing an inline scripting feature. Now you can use scripting for advanced use cases right inside Thunder Client views.
inline-scripting

Collection and Request Variables

  • Now you can use collection and request variables with request scope from the scripting collection-variables

Global Variables

  • We added new global variables useful in scripting
  • Chai expect and assert functions are now global variables
  • atob and btoa are global variables useful for base64 encoding and decoding

OLD way to use chai library

const chai = require("chai");
var expect = chai.expect;
var assert = chai.assert;

 tc.test("Chai - Response code expect to be 200", function () {
        expect(tc.response.status).to.equal(200);
 })

NEW way of using global variables

 tc.test("Chai - Response code expect to be 200", function () {
        expect(tc.response.status).to.equal(200);
 })

New API for Cookies in v2.14.1

  • We are adding a new API to manage cookies from scripting

Get Cookies

// get all cookies in store
var list = await tc.getCookies();

// get all cookies for current url
var listDomain = await tc.getCookies("url");
var listDomain = await tc.getCookies(tc.request.url);

Clear Cookies

// clear all cookies in store
await tc.clearCookies();

// clear all cookies for current domain
await tc.clearCookies("url");
await tc.clearCookies(tc.request.url);

// clear single cookie by name of cookie
await tc.clearCookies(tc.request.url, "cookieName");
// set cookie for current url
await tc.setCookie("https://www.thunderclient.com", "cookieName", "cookieValue");
await tc.setCookie(tc.request.url, "cookieName", "cookieValue");

Planning to Deprecate/Retire Features

Attach Env to Collection

  • How many users are using this feature? Now we have collection and request level variables using scripting, is the Attach Env to collection still useful?
  • Please let us know your feedback here Screenshot 2023-10-19 at 19 37 38

v2.13.5

6 months ago

New Features

  • Collection and request names variables #904
    • Now you can use internal variables {{request_name}}, {{collection_name}} and {{folder_name}}
  • Update CLI to version v1.7.4

Bug Fixes

  • Incrementing an environment variable appears to have the environment file cached #1373

v2.13.3

6 months ago

New Features

  • Convert querystring format to form encoded #1354, #612
  • setNull built in filter added
  • CLI: Option to hide API keys in reporting #1372
  • Update CLI to version v1.7.1

Convert Querystring format to Form Values

Screenshot 2023-10-11 at 20 58 40

v2.13.0

6 months ago

New Features

  • Requests should not be executed on failure of pre request script #1309
  • Schema validation errors should be part of the report (HTML & JSON) #1246
  • Using System Variables in Environment with syntax highlighting #1245
  • Save to collection view success msg message displayed clearly #1317
  • tc.request.getHeader and tc.request.setHeader helper functions added to tc object
  • tc.response.getHeader helper function added to tc object

Bug Fixes

  • OAuth 2 error with PKCE and optional client_secret #1357

Free Version Limits

  • We have increased the requests per collection limit to 50.
  • We have also included an HTML report in the Run Collection in the free version #1367

v2.12.7

6 months ago

New Features

v2.12.0

7 months ago

Requests Per Collection Limit

The free version will have a limit of 15 requests per collection from Sept 30th 2023.

  • Reqs per collection - 15
  • You will not be able to import collections with requests of more than 15.
  • See all limits for the free version on our website

Free Version Terms

Please make sure you have read the free version terms

  • Individual User Only
  • See all the free version terms on our website

New Features:

  • Cmd/Ctrl + Click on the folder/collection will open collection settings.
  • [Bug] Test for text responseData #1322
  • [Bug] Problem with gettings tests from parent folder? #1321

Questions

v2.11.4

7 months ago

New Features

  • The chai module is now included in the extension, no need to download externally - #1313
  • This is an update to the script assertion feature released in v2.10.0
  • Update CLI to v1.5.2

Example Code

var chai = require("chai");
var expect = chai.expect;
var assert = chai.assert;

function testChaiFilter() {

    tc.test("Response code is 200", function () {
        assert.equal(tc.response.status, 200)
    })

    tc.test("Response code expect to be 200", function () {
        expect(tc.response.status).to.equal(200);
    })
}

module.exports = [testChaiFilter]