Latest News from the Thunders Product Team
Feature update

Run API test cases without a browser

Ines avatar
Shared by Ines •

A test case that has only API steps now runs with no browser and no device. This includes API calls, assertions and extractions on their responses, file comparisons, and reused test cases that also have only these steps. It runs this way from the test case editor, the run dialog, test sets and schedules. Settings that apply only to a browser no longer show for these test cases.

  • Location instead of browser settings: in the editor and in the run report, the browser and resolution selects are gone. A location select shows in their place. When every test case that you select runs without a device, the run dialog shows a Location section: "Choose where the API calls of your tests start from." The location still decides where the API calls start, including calls into your private network.
  • Only the settings that API calls use: Advanced shows only "Ignore HTTPS certificate errors during testing" and Proxy. API calls of these runs send no browser cookies.
  • Debug as before: breakpoints, Pause on failure and Resume stay available in the editor. When you fix a failed step or add a step at the end and save it, the run continues.
  • Runs without a browser in lists and charts: in Test Runs, these runs show "-" in the browser column, with a "No browser" tooltip. The browser chart in Analytics shows them in a "No browser" slice.

A test case runs without a browser only when none of its steps that run needs a device. If you add a web or mobile step, it runs with a browser or a device again. When a run dialog selection mixes API-only test cases and browser test cases, the dialog keeps the browser settings.

#Sprint36