{"id":904,"date":"2021-03-13T20:33:26","date_gmt":"2021-03-13T09:33:26","guid":{"rendered":"http:\/\/clickworks.me\/?post_type=portfolio&#038;p=904"},"modified":"2021-03-13T20:35:12","modified_gmt":"2021-03-13T09:35:12","slug":"tavern-rest-api-testing","status":"publish","type":"portfolio","link":"https:\/\/clickworks.me\/index.php\/portfolio\/tavern-rest-api-testing\/","title":{"rendered":"04 | Tavern  REST API Testing Examples"},"content":{"rendered":"<div class=\"post-tag\">Tags: <a href=\"http:\/\/clickworks.me\/index.php\/tag\/api-rest-testing\/\" rel=\"tag\">API REST testing<\/a> <a href=\"http:\/\/clickworks.me\/index.php\/tag\/automation\/\" rel=\"tag\">Automation<\/a><\/div>\n<p><strong>Date: July 2020<\/strong><\/p>\n<p><strong>GitHub:<\/strong> <a href=\"https:\/\/github.com\/MaksimZinovev\/tau-tools-demo\/tree\/master\/py-tavern-api\">link<\/a><\/p>\n<p><strong>Project description. <\/strong>I created 30+ examples of API tests demonstrating the main functionality of Tavern Testing tool.\u00a0 Along with <a href=\"https:\/\/tavern.readthedocs.io\/en\/latest\/index.html\">Tavern Docs<\/a>, this might be a helpful resource for someone who just started to learn\u00a0 Tavern. I used free public APIs to go through Tavern documentation and learn how to use it:<\/p>\n<ul>\n<li>api.zippopotam.us<\/li>\n<li>jsonplaceholder.typicode.com<\/li>\n<li>gorest.co.in<\/li>\n<li>recipepuppy.com<\/li>\n<li>dropboxapi.com<\/li>\n<\/ul>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">Some examples of Tavern tests:<\/span><\/p>\n<ul>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Sending request and checking response status code, json response, headers.<\/span><\/li>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Using external function to validate the response..<\/span><\/li>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Using built-in Tavern schema validators.<\/span><\/li>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Test parametrization.<\/span><\/li>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Multi-stage tests.<\/span><\/li>\n<li class=\"md-end-block md-p md-focus\"><span class=\"md-plain\">Using external configuration files.<\/span><\/li>\n<li class=\"md-end-block md-p\"><span class=\"md-plain\">Uploading file.<\/span><\/li>\n<li class=\"md-end-block md-p md-focus\"><span class=\"md-plain md-expand\">Creating and reading resources using APIs.<\/span><\/li>\n<\/ul>\n<p><strong>Challenging parts<\/strong>. The very first steps were difficult because they involved setting up and configuring Tavern.\u00a0<\/p>\n<p><strong>Tools and Languages:<\/strong><\/p>\n<ul>\n<li>Python<\/li>\n<li>Yaml<\/li>\n<li><a href=\"https:\/\/tavern.readthedocs.io\/en\/latest\/\">Tavern<\/a><\/li>\n<li>pytest\u00a0<\/li>\n<li>Postman<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><script src=\"chrome-extension:\/\/fbnkflkahhlmhdgkddaafgnnokifobik\/assets\/pageScripts.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tags: API REST testing Automation Date: July 2020 GitHub: link Project description. I created 30+ examples of API tests demonstrating the main functionality of Tavern Testing tool.\u00a0 Along with Tavern Docs, this might be a helpful resource for someone who just started to learn\u00a0 Tavern. I used free public APIs to go through Tavern documentation and learn how to use it: api.zippopotam.us jsonplaceholder.typicode.com gorest.co.in recipepuppy.com dropboxapi.com Some examples of Tavern<\/p>\n<div class=\"read-more\"><a class=\"btn read-more-btn\" href=\"https:\/\/clickworks.me\/index.php\/portfolio\/tavern-rest-api-testing\/\">Read More<\/a><\/div>\n","protected":false},"featured_media":928,"comment_status":"open","ping_status":"closed","template":"","portfolio_cat":[20,22],"portfolio_skill":[26,65],"_links":{"self":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/904"}],"collection":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio"}],"about":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/types\/portfolio"}],"replies":[{"embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/comments?post=904"}],"version-history":[{"count":3,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/904\/revisions"}],"predecessor-version":[{"id":929,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/904\/revisions\/929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/media\/928"}],"wp:attachment":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"portfolio_cat","embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio_cat?post=904"},{"taxonomy":"portfolio_skill","embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio_skill?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}