<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Keith Vanderpool on Medium]]></title>
        <description><![CDATA[Stories by Keith Vanderpool on Medium]]></description>
        <link>https://medium.com/@keithvanderpool?source=rss-c6f00a3e70ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*u5ZNPASJUpU9Z0wl.jpg</url>
            <title>Stories by Keith Vanderpool on Medium</title>
            <link>https://medium.com/@keithvanderpool?source=rss-c6f00a3e70ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:48:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keithvanderpool/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why API Testing?]]></title>
            <link>https://medium.com/@keithvanderpool/why-api-testing-a07f52c0cf3a?source=rss-c6f00a3e70ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a07f52c0cf3a</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[restful-api]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Keith Vanderpool]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 17:57:13 GMT</pubDate>
            <atom:updated>2018-03-01T21:57:24.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Testing?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*EMM8A3Uj1os4MuD2.gif" /></figure><p>You know you should be doing it. Everyone talks about doing it. Maybe you’re doing it in some fashion or to a limited extent. Why? How? Where?</p><h3>In the beginning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*-3QWci1TqDlYXJKDA5OXmw.gif" /></figure><p>Software development for the web used to be “easy”. Create some html files. Upload them to a server (usually running Apache and typically transferring the files to the server using FTP. Oh such great security 😱). Pat yourself on the back and then you’re done. Time to see about getting that site listed in yahoo 😉.</p><h3>And then the technologies came and kept coming and will continue coming…</h3><p><em>(not an exhaustive list)</em></p><ul><li>HTML form submissions</li><li>cgi gateway</li><li>Javascript</li><li>CSS</li><li>perl</li><li>Oracle databases</li><li>Access databases</li><li>Microsoft SQL databases</li><li>Server farms</li><li>.COM components</li><li>Classic ASP</li><li>Server farms</li><li>Java sevlets</li><li>PHP</li><li>.NET</li><li>SOAP</li><li>XML</li><li>Blogger</li><li>WordPress</li><li>Ruby</li><li>node.js</li><li>NoSQL databases</li><li>Virtualization</li><li>Load balanced servers</li><li>RESTful API</li><li>JSON</li><li>The “Cloud”</li><li>.NET Core</li><li>AWS</li><li>Angular</li><li>React</li><li>Azure</li><li><em>and so much more…</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/0*Xgbz7F55K89evGM-.gif" /></figure><h3>What does it mean to test an application?</h3><h4>Typical SPA (Single Page Application aka a web site) contains</h4><ul><li><strong>Browser</strong> — SPA application runs within it. It could be Angular, React, or something else</li><li><strong>API</strong> — Webserver that serves as the endpoint to load data into the SPA and process user actions initiated by the SPA</li><li><strong>Backend Stuff </strong>— databases, other services, infrastructure. Stuff that makes the API function but is largely hidden by the API layer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*HSRclX8kbQxBtjw9.png" /></figure><h3>What does this mean from a testing perspective?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*0xPOW7xDx7QRnZ5vorqBtQ.gif" /></figure><p>The user wants the application to do whatever it does. It needs the API to function in a way to allow the user to perform those actions.</p><p><strong>The API is the contract.</strong> This contract needs to function and be consistent with what the consumer (aka the browser) expects. The contract means I give you X you give me y. Specific example would be: I provide you a username and password. You give me a response whether I am authorized. If I am authorized you give me a token that allows me to do things with the API now that I’m authorized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*ApKt2_wwqcXBJFNN.png" /></figure><p><em>For purposes of API testing the box in red is the only area of concern</em></p><p>If the API doesn’t work as the application (code) in the browser expects; the application isn’t going to work. The user is sad and complains to your boss if you’re running an application within the enterprise. Then you need to figure out what’s broken and fix it. Or if it’s a public site users become frustrated and stop using your application. Then you go out of business.</p><h3>So get to the point…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*lPZU_Ok2i6kMeb8L.gif" /></figure><p>As developers and a development team we need to be able to test and change the API as the application is initially developed and after it is running in production. <strong>Doing this by hand (manual testing) is not a sustainable approach.</strong>No really. Get to the point.</p><p>Postman (<a href="https://www.getpostman.com/">https://www.getpostman.com/</a>) is a tool that allows you to make http requests APIs from an interactive interface. And also has a command line tool called newman (<a href="https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman">https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman</a>) that allows you to run these requests from the commandline. The ability to run it from a command line means it can be automated.</p><p>So to finally get to the point… <strong>Automated testing of RESTful APIs from the commandline. You need this. You may not realize why and how yet.</strong></p><h4>What’s Next</h4><ul><li>How to use postman</li><li>How to run it from the commandline</li><li>How to structure and manage postman collections</li><li>How to use it in continuous integration</li><li>How to use it in continuous deployment</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a07f52c0cf3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>