Over a million developers have joined DZone.

Using Google Sheet Templates for Defining API Tests

DZone's Guide to

Using Google Sheet Templates for Defining API Tests

I like how Runscope is allowing their customers to define and expand the dimensions of how they test their API using Runscope, as well as how they're using Google Sheets.

· Integration Zone ·
Free Resource

WSO2 is the only open source vendor to be named a leader in The Forrester Wave™: API Management Solutions, Q4 2018 Report. Download the report now or try out our product for free.

The Runscope team recently published a post on a pretty cool approach to using Google Sheets for running API tests with multiple variable sets, which I thought is valuable at a couple of levels. They provide a template Google Sheet for anyone to follow where you can plug in your variable as well as your Runscope API key, which allows you to define the dimensions of the tests you wish to push to Runscope via their own API.

The first thing that grabs me about this approach is how Runscope is allowing their customers to define and expand the dimensions of how they test their API using Runscope in a way that will speak to a wider audience — beyond just the usual API developer audience. Doing this in a spreadsheet allows Runscope customers to customize their API tests for exactly the scenarios they need, without Runscope having to customize and respond to each individual customer's needs and providing a nice balance.

The second thing that interests me about their approach is the usage of a Google Sheet as a template for making API calls whether you are testing your APIs or doing any other scenario that an API enables. This type of templating of API calls opens up the API client to a much wider audience, making integration copy and pastable, shareable, collaborative, and something that anyone can reverse engineer and learn about the surface area of an API. In this scenario, it just happens to be the surface area of Runscope's API testing API.

Runscope's approach is in alignment with my previous post about sharing data validation examples. A set of assertions could be defined within spreadsheets and any stakeholder could use the spreadsheet to execute and make sure the assertions are met. This would have huge implications for the average business user to help make sure API contracts are meeting business objectives. I'm considering using this approach to empower cities, counties, and states to test and validate human services API implementations as part of my Open Referral work.

I told John Sheehan, the CEO of Runscope, that their approach was pretty creative, and he said that "Google sheets scripts are underrated" and that Google Sheets is the "API client for the every person." I agree. I'd like to see more spreadsheet templates like this used across the API lifecycle when it comes to design, deployment, management, testing, monitoring, and every other area of API operations. I'd also like to see more spreadsheet templates available for making calls to other common APIs, making APIs accessible to a much wider audience who is familiar with spreadsheets, and making them more likely to be closer to the actual problems in which API solutions are designed to solve.

Read the WSO2 Methodology for Agility to see how you can transform your integration projects from semi-agile to a scalable continuous agile approach.

integration ,api ,google sheet ,api tests

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}