Skip to content

v2.17.0

Compare
Choose a tag to compare
@rangav rangav released this 03 Jan 18:11
· 63 commits to master since this release
5e18c11

New Features

  • Add Support For Responses Visualisation (Beta) #511
  • VS Code setting for default values for Request Headers #845
  • Allow to open multiple Run Collection tabs #1410
  • Consolidate iterations in reports to one table structure. #1412
  • Option to specify number of iterations from CLI #1411

Bug Fixes

  • Response color highlighting disappears after closing and reopening the editor tab #1438
  • Duplicate IDs in JSON after duplicating requests #1435
  • OAUTH2 Access token breaks on all versions higher that 2.14.1 #1439

Response Data Visualisation (Beta)

  • Create charts or tables from response using tc.chartHTML() from the Tests tab scripting
  • When you pass data to function tc.chartHTML(templace, data), the data is available in chart_data global variable
  • The feature is in Beta, please test and let us know feedback
var template = `
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.8/handlebars.min.js"></script>

    <div id="output"></div>
    <script id="entry-template" type="text/x-handlebars-template">
          <div class="entry">
            <h2>{{first_name}}</h2>
            <div class="body">
              {{email}}
            </div>
          </div>
    </script>

    <script>
        var source = document.getElementById("entry-template").innerHTML;
        var template = Handlebars.compile(source);
    
        document.getElementById("output").innerHTML = template(chart_data[0]);
    </script>
`;

var data = tc.response.json.data;
tc.chartHTML(template, data);

Default Headers

  • You can now set default headers for requests using setting thunder-client.defaultHeaders
Screenshot 2024-01-03 at 16 39 43