Skip to content

Releases: thunderclient/thunder-client-support

v2.13.3

11 Oct 20:26
535b9f9
Compare
Choose a tag to compare

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

08 Oct 05:24
5516b39
Compare
Choose a tag to compare

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

04 Oct 21:41
a8129f0
Compare
Choose a tag to compare

New Features

v2.12.0

11 Sep 10:34
5b2c686
Compare
Choose a tag to compare

Requests Per Collection Limit

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

  • Reqs per collection - 50
  • 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

06 Sep 17:10
56769e1
Compare
Choose a tag to compare

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]

v2.11.0

01 Sep 06:13
2042319
Compare
Choose a tag to compare

New Features

Collection Runner Limits

  • Collection Runner is a premium feature
  • See limits for all plans on our website
  • Free version limits will be applied from Sept 15th, 2023

v2.10.0

31 Jul 11:59
27afc50
Compare
Choose a tag to compare

Assertions using Scripting

Today we are releasing a new feature: Test assertions using scripting. Developers can now use scripting to write assertions, based on the use case you can choose a scripting or GUI interface for assertions.

  • New function tc.test() added to tc object useful for assertions #465, #194, #347
  • You can write assertions and use them only in Post Request Filter in Tests tab
  • Update tc-types.d.ts to version 1.4.0
  • Update CLI to version v1.4.6

Assertions without any library

function testFilter() {
    let success = tc.response.status == 200;
    let json = tc.response.json;
    let containsThunder = json.message?.includes("thunder");

    tc.test("Response code is 200", success);
    tc.test("Response contains thunder word", containsThunder);

    // Assertions using function syntax
    tc.test("verifying multiple tests", function () {
            let success = tc.response.status == 200;
            let time = tc.response.time < 1000;
            return success && time;
    });
}

module.exports = [testFilter]

Assertions using Node Assert library

// using built-in node assert module
const assert = require("assert");

function testFilter() {
    console.log("test assertion filter");
    tc.test("Response code is 200", function () {
        assert.equal(tc.response.status, 200);
    })
}

module.exports = [testFilter]

Assertions using Chai library (updated in v2.11.4)

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]

CLI

  • Single report for test run with multiple collections #1221
  • Display paths of generated reports #1233
  • --reqlist will accept request name or id #1234
  • Update CLI to version v1.4.6

Bug Fixes

  • response header value changed #1239
  • Cannot detect custom filter #1240

v2.9.2

18 Jul 12:29
d49f462
Compare
Choose a tag to compare

New Features

Bug Fixes

  • subtract built in filter not working correctly #1225
  • Other two typos #1116

v2.9.0

07 Jul 15:41
2a2cc03
Compare
Choose a tag to compare

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

v2.8.0

27 Jun 10:32
1c97588
Compare
Choose a tag to compare

New Features

  • Separate Collections & Environments to different files #574, #1035
  • Autocomplete for recent endpoints in URL field #1192
  • Auth: Include origin in refresh request Header #1203
  • VS Code setting renamed Sidebar Hide Date Modified to Sidebar Layout #577

Bug Fixes

CLI

  • Please update CLI to v1.3.3 - npm i -g @thunderclient/cli

Database Upgrade v3

  • The database design changed from a single file to separate files for each collection and environment.
  • The new db design will reduce merge conflicts with git
  • The old database files moved to _db-backup, in case you need them.

Autocomplete Recent Endpoints

Screenshot 2023-06-25 at 14 35 34