<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jeffery (Kojo) Osei</title>
    <description>The latest articles on Forem by Jeffery (Kojo) Osei (@kojo-jeffery).</description>
    <link>https://forem.com/kojo-jeffery</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F114974%2Fd276ad30-960a-46bb-ad1c-b50b51a9f24d.JPG</url>
      <title>Forem: Jeffery (Kojo) Osei</title>
      <link>https://forem.com/kojo-jeffery</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/kojo-jeffery"/>
    <language>en</language>
    <item>
      <title>Beginners guide to Writing Newman API Tests</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Fri, 04 Dec 2020 00:31:17 +0000</pubDate>
      <link>https://forem.com/kojo-jeffery/beginners-guide-to-writing-newman-api-tests-15j</link>
      <guid>https://forem.com/kojo-jeffery/beginners-guide-to-writing-newman-api-tests-15j</guid>
      <description>&lt;p&gt;Hello there 🤓,&lt;/p&gt;

&lt;p&gt;I trust you are well and keeping safe, today we will be doing a little &lt;strong&gt;JavaScript-ing&lt;/strong&gt; with &lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;Postman&lt;/a&gt;'s &lt;a href="https://github.com/postmanlabs/newman" rel="noopener noreferrer"&gt;Newman&lt;/a&gt; tool! 😍. &lt;/p&gt;

&lt;p&gt;So to start with, I just want to say, Newman is an awesome Postman command line tool. Newman basically helps you automate your Postman tests with ease.&lt;/p&gt;

&lt;p&gt;In my previous post &lt;a href="https://dev.to/clonne101/beginners-guide-to-writing-postman-api-tests-32a4"&gt;here&lt;/a&gt;, I explained in layman's terms how to write basic Postman tests for your APIs and today we will be running something similar using Newman but with a public &lt;a href="https://documenter.getpostman.com/view/323124/TVmMgxMP" rel="noopener noreferrer"&gt;Space-X Api&lt;/a&gt; which I have gone ahead to tweak for this test &lt;em&gt;(added test cases to assert their responses)&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Let's go! 🏃🏽‍♂️&lt;/p&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  REQUIREMENTS 📝
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;For windows users, open up &lt;a href="https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7.1" rel="noopener noreferrer"&gt;Powershell&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;For Linux users, use this key combination to start your terminal &lt;code&gt;Ctrl + Shift + T&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;For Mac users, Open the search prompt &lt;code&gt;Command + Space (bar)&lt;/code&gt; and type &lt;code&gt;terminal&lt;/code&gt;, press enter to open it up.&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  STEPS 🪜
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install NodeJS&lt;/li&gt;
&lt;li&gt;Create Folder Structure&lt;/li&gt;
&lt;li&gt;Install Postman's Newman&lt;/li&gt;
&lt;li&gt;Run Newman Test&lt;/li&gt;
&lt;li&gt;View Results&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  💻 Install NodeJS &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Installing NodeJS is pretty straight forward, visit their download page &lt;a href="https://nodejs.org/en/download/" rel="noopener noreferrer"&gt;here&lt;/a&gt;, download your platform version to install. Kindly make sure its version &lt;code&gt;10&lt;/code&gt; or higher. &lt;/p&gt;

&lt;p&gt;After installing, head to your &lt;code&gt;Terminal&lt;/code&gt; and enter the command below to check if everything is good to go.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see an output like the one below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2k7z5lcgtx6c4vhe90lt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2k7z5lcgtx6c4vhe90lt.png" alt="Node and NPM version" width="800" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;📝 If your versions printed do not match the above, do not worry, you are good to go! 💪🏽.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  📁 Create Folder Structure &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Before we can run our tests programmatically we need to setup our working directories, run the command below in your terminal to proceed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;newman-training &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;newman-training
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create our working directory and change directory into it.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🤸‍♂️ Install Postman's Newman &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now that we have our working directory setup, we need to install newman and a couple more NodeJS modules we need, use the command below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;newman request rimraf newman-reporter-csv newman-reporter-html newman-reporter-htmlextra &lt;span class="nt"&gt;--save&lt;/span&gt; &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If everything went well you should see an output similar to the one below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4d7u1hrfmw15vqihulpl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4d7u1hrfmw15vqihulpl.png" alt="Newman and Request install" width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  💥 Run Newman Test &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now that we have Newman installed and ready, lets start scripting, use the command below to create the file and edit using &lt;a href="https://en.wikipedia.org/wiki/GNU_nano" rel="noopener noreferrer"&gt;&lt;code&gt;nano&lt;/code&gt;&lt;/a&gt; in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nano postman.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now copy and paste the code snippet below in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;fs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;fs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// require node file system&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rimraf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;rimraf&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// require rm package&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;request&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;request&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// require node js request&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;newman&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;newman&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// require newman&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://raw.githubusercontent.com/clonne101/newman-training/main/space_x.json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;space_x.json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// method responsible for obtaining our collection&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getCollectionFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// check if postman collection json exist, if not download it&lt;/span&gt;
    &lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// write to log&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; collection file not found, downloading...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="c1"&gt;// get the file contents&lt;/span&gt;
        &lt;span class="nf"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;statusCode&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;// write to log&lt;/span&gt;
            &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Retrieved file successfully, saving...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

            &lt;span class="c1"&gt;// write to file&lt;/span&gt;
            &lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fail&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fail&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fail&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                &lt;span class="nf"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fail&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
              &lt;span class="p"&gt;}&lt;/span&gt;

              &lt;span class="c1"&gt;// write to log&lt;/span&gt;
              &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_name&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; saved successfully!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
              &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;});&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="nf"&gt;reject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// write to log&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_name&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; exist proceeding...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// promise declaration&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;promises&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="nf"&gt;getCollectionFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;postman_collection_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="c1"&gt;// promise resolver&lt;/span&gt;
&lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;promises&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// add space&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// remove reporter folder&lt;/span&gt;
    &lt;span class="nf"&gt;rimraf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./newman&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Old newman reporters removed successfully...&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="c1"&gt;// call newman.run to pass `options` object and wait for callback&lt;/span&gt;
    &lt;span class="nx"&gt;newman&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;postman_collection_name&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="na"&gt;reporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;html&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;csv&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
      &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;Collection run complete!&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To save and close the file, use these keyboard combination &lt;code&gt;Ctrl + x&lt;/code&gt; and then &lt;code&gt;Y&lt;/code&gt; and lastly press your &lt;code&gt;Enter&lt;/code&gt; key.&lt;/p&gt;

&lt;p&gt;Lets quickly recap on what the file we just created contains, so we begin by requiring modules we need, we then went ahead to download our postman collection json file, saved it and then went ahead to run newman which upon completion outputs the results to &lt;code&gt;.csv&lt;/code&gt;, &lt;code&gt;.json&lt;/code&gt; and &lt;code&gt;.html&lt;/code&gt; files into a &lt;code&gt;newman&lt;/code&gt; folder for review.&lt;/p&gt;

&lt;p&gt;Now to run the test, use the command below and you should get a response similar to the screenshot below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node postman.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6w70vfezechp9j5ysfm4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6w70vfezechp9j5ysfm4.png" alt="Newman Test Results" width="800" height="310"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🎉 View Results &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now that we all done, lets go see how we did on our tests (Wheew! 😅). Head to your &lt;code&gt;file explorer&lt;/code&gt; or &lt;code&gt;finder&lt;/code&gt; if you are on a Mac. Navigate to your &lt;code&gt;newman-training&lt;/code&gt; folder and in there you would find the &lt;code&gt;newman&lt;/code&gt; folder which contains our results.&lt;/p&gt;

&lt;p&gt;Double-click on the &lt;code&gt;.html&lt;/code&gt; file and you should have a view like the one below show up in your default browser! 😍.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffr65clu3g8uz2nl6accf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffr65clu3g8uz2nl6accf.png" alt="Newman reporter results" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above screenshot we see all our test cases passed and further more summary for each of our request.&lt;/p&gt;



&lt;br&gt;

&lt;p&gt;Awesome! 👏, now we are all done, I urge you to try out some more Newman examples in your free time, Postman offers &lt;a href="https://www.postman.com/explore" rel="noopener noreferrer"&gt;Public APIs&lt;/a&gt; you can play with. Happy &lt;code&gt;Newman Testing&lt;/code&gt; 😉.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🐱‍💻 Resources:
&lt;/h3&gt;

&lt;p&gt;Kindly find below links to resources you can use as a guide and also links to my social media should you need to make contact for any challenges you might have or just to have a short conversation if you are starting out.&lt;/p&gt;

&lt;p&gt;Postman: &lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;https://www.postman.com&lt;/a&gt;&lt;br&gt;
Postman Public APIs: &lt;a href="https://www.postman.com/explore" rel="noopener noreferrer"&gt;https://www.postman.com/explore&lt;/a&gt;&lt;br&gt;
Postman Learning: &lt;a href="https://learning.postman.com/docs/getting-started/introduction" rel="noopener noreferrer"&gt;https://learning.postman.com/docs/getting-started/introduction&lt;/a&gt;&lt;br&gt;
Postman Newman: &lt;a href="https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/" rel="noopener noreferrer"&gt;https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub repository for the test code:&lt;br&gt;
&lt;a href="https://github.com/clonne101/newman-training" rel="noopener noreferrer"&gt;https://github.com/clonne101/newman-training&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Social Links:&lt;br&gt;
Website: &lt;a href="https://jefferyclonne.com" rel="noopener noreferrer"&gt;https://jefferyclonne.com&lt;/a&gt;&lt;br&gt;
Twitter: &lt;a href="https://twitter.com/@clonne101" rel="noopener noreferrer"&gt;https://twitter.com/@clonne101&lt;/a&gt;&lt;br&gt;
LinkedIn: &lt;a href="https://www.linkedin.com/in/jeffery-osei-551626a6" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/jeffery-osei-551626a6&lt;/a&gt;&lt;/p&gt;

</description>
      <category>postman</category>
      <category>newman</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>[Video] Postman API Testing</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Sun, 22 Nov 2020 13:50:43 +0000</pubDate>
      <link>https://forem.com/kojo-jeffery/video-postman-api-testing-2pm</link>
      <guid>https://forem.com/kojo-jeffery/video-postman-api-testing-2pm</guid>
      <description>&lt;p&gt;Hello there 🤓, this is the video upload of an earlier post which can be found &lt;a href="https://dev.to/clonne101/beginners-guide-to-writing-postman-api-tests-32a4"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;🐱‍💻 Happy Testing!&lt;/p&gt;

</description>
      <category>postman</category>
      <category>javascript</category>
      <category>php</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Beginners guide to writing Postman API Tests</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Sun, 22 Nov 2020 12:48:12 +0000</pubDate>
      <link>https://forem.com/kojo-jeffery/beginners-guide-to-writing-postman-api-tests-32a4</link>
      <guid>https://forem.com/kojo-jeffery/beginners-guide-to-writing-postman-api-tests-32a4</guid>
      <description>&lt;p&gt;Hello there 🤓, today I want to give you a gist on a tool I have been using both at work and in my personal projects for testing the APIs I write.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;Postman&lt;/a&gt;, this to me is by far one of the best tools for running API tests and automation if needed, I have been on this tool for more than a year now.&lt;/p&gt;

&lt;p&gt;In the beginning I used it as any other REST API client, just add in my requests and see a positive response come in but there was so much I could have achieved if only I knew this.&lt;/p&gt;

&lt;p&gt;So today I would like you to join me on a short adventure of writing a simple API test with Postman, let's go!.&lt;/p&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  STEPS 🪜
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install Postman&lt;/li&gt;
&lt;li&gt;Add Environment Variable&lt;/li&gt;
&lt;li&gt;Add Test Request&lt;/li&gt;
&lt;li&gt;Add Test Cases&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  💻 Install Postman &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Installing the Postman app is really easy, visit this &lt;a href="https://www.postman.com/downloads/" rel="noopener noreferrer"&gt;page&lt;/a&gt; and obtain your platform version (Mac, Windows, Linux).&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🍕 Add Environment Variable &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Environment variables in Postman aids you when setting up your request, a good example is setting your API url for re-use in other places. To do this, Open your installed Postman app and click on the &lt;code&gt;Manage Environment&lt;/code&gt; button at the top right corner of the window as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjyi9ffpkl0x2bmmwphax.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjyi9ffpkl0x2bmmwphax.png" alt="Manage Environment" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will be greeted with a popup window. At the bottom right corner, click on the &lt;code&gt;Add&lt;/code&gt; button as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fddtgzvh0q36k3dj6jzvy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fddtgzvh0q36k3dj6jzvy.png" alt="Add Environment Variable" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the next view you will find a section to enter your &lt;code&gt;environment name&lt;/code&gt;, set your &lt;code&gt;variable name&lt;/code&gt;, add an &lt;code&gt;initial value&lt;/code&gt; and lastly a &lt;code&gt;current value&lt;/code&gt;, find an example below.&lt;/p&gt;

&lt;p&gt;📝 To follow this test, you can set your initial value and current value to the URL below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://play.jefferyclonne.com/code/postman-training/index.php?limit=0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn8tf2msg48qnmi9i3qz9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn8tf2msg48qnmi9i3qz9.png" alt="Set Environment Variables" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Initial value: &lt;br&gt;
This is the value shared to your team or publicly when you decide to share your request with others.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Current value: &lt;br&gt;
This is the value used when Postman is making requests using your environment, it is an ephemeral value that does not get saved, only exist locally.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now &lt;code&gt;Add&lt;/code&gt; and exit out of the window, check the &lt;code&gt;Environments&lt;/code&gt; drop-down to make sure yours is selected, as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwxmpo9s6qjk6vm779lhg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwxmpo9s6qjk6vm779lhg.png" alt="Select Environment" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🧱 Add Test Request &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;If you are using the test URL above, follow this setup. In your Postman window click on the &lt;code&gt;+&lt;/code&gt; button as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkkltczuy62878o6267ow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkkltczuy62878o6267ow.png" alt="Add New Request" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now in the address bar enter your environment variable &lt;code&gt;{{url}}&lt;/code&gt; and click on the &lt;code&gt;Send&lt;/code&gt; button to make sure the API is reachable, as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fp7fizjt06pdgyvincwjo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fp7fizjt06pdgyvincwjo.png" alt="Test Request" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  🎄 Add Test Cases &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now that we have everything setup (wheew! 😅), lets start writing our test cases! 🤩.&lt;/p&gt;

&lt;p&gt;In your Postman window select the &lt;code&gt;Tests&lt;/code&gt; tab to get started as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvqlj7u3a4fk0269h73fn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvqlj7u3a4fk0269h73fn.png" alt="Tests Tab" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;p&gt;Now lets write our cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. &lt;code&gt;Test status response is 200&lt;/code&gt;: 
In this test we try to check if the response from the API has a status of &lt;code&gt;200&lt;/code&gt;, meaning everything is &lt;code&gt;OK&lt;/code&gt;. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test status response is 200&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frcstyz8wkq1dk0ife7ou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frcstyz8wkq1dk0ife7ou.png" alt="Test One Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;ul&gt;
&lt;li&gt;2. &lt;code&gt;Test response output status&lt;/code&gt;: 
From our API response we have a &lt;code&gt;status&lt;/code&gt; variable, now lets check to make sure its always &lt;code&gt;0&lt;/code&gt; as expected. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test response output status&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;equal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fo33xw30yyf1rzm23i7kc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fo33xw30yyf1rzm23i7kc.png" alt="Test Two Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;ul&gt;
&lt;li&gt;3. &lt;code&gt;Test response output message&lt;/code&gt;: 
From our API response we have a &lt;code&gt;message&lt;/code&gt; variable, now lets check to make sure its always &lt;code&gt;Success&lt;/code&gt; as expected. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test response output message&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;equal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Success&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fyrmgiyjr19i87b276h0g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fyrmgiyjr19i87b276h0g.png" alt="Test Three Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;ul&gt;
&lt;li&gt;4. &lt;code&gt;Test response output to be an array&lt;/code&gt;: 
From our API response we have an &lt;code&gt;output&lt;/code&gt; variable, now lets check to make sure its always &lt;code&gt;an array&lt;/code&gt; as expected. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test response output to be an array&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;be&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;an&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;array&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffk8np5f79dbg9qt2rgal.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffk8np5f79dbg9qt2rgal.png" alt="Test Four Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;ul&gt;
&lt;li&gt;5. &lt;code&gt;Test response output to be an array which is not empty&lt;/code&gt;: 
From our API response we have an &lt;code&gt;output&lt;/code&gt; variable, now lets check to make sure its &lt;code&gt;not empty&lt;/code&gt; as expected. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test response output to be an array which is not empty&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;not&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;be&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;empty&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzlctxm6n5cjllxfjgtgg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzlctxm6n5cjllxfjgtgg.png" alt="Test Five Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;ul&gt;
&lt;li&gt;6. &lt;code&gt;Test response output object to have expected keys&lt;/code&gt;: 
From our API response we have an &lt;code&gt;output&lt;/code&gt; variable and this holds some data, now lets check to make sure it has the minimum &lt;code&gt;expected data&lt;/code&gt; for the first object. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;♻️ Add the following code and click on the &lt;code&gt;Send&lt;/code&gt; button to run this test, now in the &lt;code&gt;Response&lt;/code&gt; section click on the &lt;code&gt;Test Results&lt;/code&gt; tab to check if your test case passed, as seen below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Test response output object to have expected keys&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;name&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;post&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8qndp8vwjxgo8wugdkjw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8qndp8vwjxgo8wugdkjw.png" alt="Test Six Pass" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;br&gt;

&lt;p&gt;Awesome! 👏, now we are all done, I urge you to try out some more test cases in your free time, Postman offers &lt;a href="https://www.postman.com/explore" rel="noopener noreferrer"&gt;Public APIs&lt;/a&gt; you can play with. Happy &lt;code&gt;Postman Testing&lt;/code&gt; 😉.&lt;/p&gt;

&lt;h3&gt;
  
  
  🐱‍💻 Resources:
&lt;/h3&gt;

&lt;p&gt;Kindly find below links to resources you can use as a guide and also links to my social media should you need to make contact for any challenges you might have or just to have a short conversation if you are starting out.&lt;/p&gt;

&lt;p&gt;Postman: &lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;https://www.postman.com&lt;/a&gt;&lt;br&gt;
Postman Learning: &lt;a href="https://learning.postman.com/docs/getting-started/introduction" rel="noopener noreferrer"&gt;https://learning.postman.com/docs/getting-started/introduction&lt;/a&gt;&lt;br&gt;
Postman Test Functions (ChaiJS): &lt;a href="https://www.chaijs.com/api" rel="noopener noreferrer"&gt;https://www.chaijs.com/api&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub repository for API code:&lt;br&gt;
&lt;a href="https://github.com/clonne101/postman-training" rel="noopener noreferrer"&gt;https://github.com/clonne101/postman-training&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Social Links:&lt;br&gt;
Website: &lt;a href="https://jefferyclonne.com" rel="noopener noreferrer"&gt;https://jefferyclonne.com&lt;/a&gt;&lt;br&gt;
Twitter: &lt;a href="https://twitter.com/@clonne101" rel="noopener noreferrer"&gt;https://twitter.com/@clonne101&lt;/a&gt;&lt;br&gt;
LinkedIn: &lt;a href="https://www.linkedin.com/in/jeffery-osei-551626a6" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/jeffery-osei-551626a6&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Video Link:&lt;br&gt;
&lt;a href="https://dev.to/clonne101/video-postman-api-testing-2pm"&gt;https://dev.to/clonne101/video-postman-api-testing-2pm&lt;/a&gt;&lt;/p&gt;

</description>
      <category>postman</category>
      <category>javascript</category>
      <category>php</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Cloud 9 Install</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Tue, 28 Jan 2020 11:29:59 +0000</pubDate>
      <link>https://forem.com/clonne101/cloud-9-install-5bme</link>
      <guid>https://forem.com/clonne101/cloud-9-install-5bme</guid>
      <description>&lt;p&gt;In this module we will learn how to run a simple to read and run shell script, which basically clones, install and runs the well-known Cloud9 IDE for multi-language programming and testing. This only works with UNIX Based Operating Systems.&lt;/p&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  STEPS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Clone Repo&lt;/li&gt;
&lt;li&gt;Run Install Script&lt;/li&gt;
&lt;li&gt;Run After Restart&lt;/li&gt;
&lt;li&gt;Error Logs&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  1. Clone Repo &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Ok so let's begin this awesome journey by clicking &lt;a href="https://github.com/Open-Clonne/scripts/tree/master/cloud9-ide"&gt;here&lt;/a&gt;, which will redirect you to the master tree for the python scripts, feel free to use any tool you want to clone or simply click on the download button or you can copy the git clone url and use the &lt;code&gt;git clone {repo_url}&lt;/code&gt; command if you feeling fancy.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  2. Run Install Script &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;After you have successfully cloned the repo, change your directory to the folder and there you will find a file named &lt;code&gt;c9-install.sh&lt;/code&gt;. This file is what we will run to setup the environment for us. Ok now head to your terminal if you not already there and run this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;bash &lt;span class="o"&gt;{&lt;/span&gt;repo_folder&lt;span class="o"&gt;}&lt;/span&gt;/c9-install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;As the command is processing you will get specific feedback on where it has reached. Upon completion the command will boot up the Cloud9 IDE and all you have to do now is to copy the url and paste it in your preferred browser and voila!.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  7. Run After Restart &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now that you are a pro at running scripts, you are probably thinking of how you are going to boot up your Cloud9 IDE after you reboot your computer... no worries. In the folder you cloned above there is another file named &lt;code&gt;cloud9.sh&lt;/code&gt;, this is what you can edit and then whenever you reboot you can simply run it from where its located on your computer. Now open this file in your favourite editor, scroll to the end and look for &lt;code&gt;/var/www&lt;/code&gt;, this uses the absolute path of your project directory, replace this part of the code with your project directory and save. Now put the &lt;code&gt;cloud9.sh&lt;/code&gt; file anywhere you prefer on your computer. After every reboot simply open your terminal and run&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;bash &lt;span class="o"&gt;{&lt;/span&gt;cloud9.sh_file_location&lt;span class="o"&gt;}&lt;/span&gt;/cloud9.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;that's all!, Happy coding!.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  8. Error Logs &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Great!, you are all done and probably coding 1000's of lines of code. Anyway if you have or faced any issues following the steps above that you cannot fix no worries, e-mail &lt;a href="mailto:jeff@jefferyclonne.com"&gt;me&lt;/a&gt; or visit &lt;a href="http://jefferyclonne.com"&gt;my website&lt;/a&gt; and please remember to be thorough in telling me exactly what went wrong, thanks for your time, Happy Coding!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  Code Repo: &lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Open-Clonne"&gt;
        Open-Clonne
      &lt;/a&gt; / &lt;a href="https://github.com/Open-Clonne/scripts"&gt;
        scripts
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      All scripts for automation purposes
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
About&lt;/h1&gt;
&lt;p&gt;Micro automation scripts written to aid in quick installs and social testing with docker integration.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Open-Clonne/scripts"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/h3&gt;


</description>
      <category>cloud9</category>
      <category>ide</category>
      <category>programming</category>
    </item>
    <item>
      <title>Twitter Bot</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Tue, 28 Jan 2020 11:09:35 +0000</pubDate>
      <link>https://forem.com/clonne101/twitter-bot-1mh9</link>
      <guid>https://forem.com/clonne101/twitter-bot-1mh9</guid>
      <description>&lt;p&gt;In this module we will learn how to run a simple python based script for micro-managing a twitter account by replying to mentions, liking and retweeting timeline tweets, updating the user timeline, following to gain more traction and follow backs in a short period of time, super cool!&lt;/p&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  STEPS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Clone Repo&lt;/li&gt;
&lt;li&gt;Install Python&lt;/li&gt;
&lt;li&gt;Create Twitter Account&lt;/li&gt;
&lt;li&gt;Install Script Packages&lt;/li&gt;
&lt;li&gt;Add Keys&lt;/li&gt;
&lt;li&gt;Run Now!&lt;/li&gt;
&lt;li&gt;Run After Restart&lt;/li&gt;
&lt;li&gt;Error Logs&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  1. Clone Repo &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Ok so let's begin this awesome journey by clicking &lt;a href="https://github.com/Open-Clonne/scripts/tree/master/clonnebots"&gt;here&lt;/a&gt;, which will redirect you to the master tree for the python scripts, feel free to use any tool you want to clone or simply click on the download button or you can copy the git clone url and use the &lt;code&gt;git clone {repo_url}&lt;/code&gt; command if you feeling fancy.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  2. Install Python &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now in order to run the script, you need to install &lt;code&gt;PYTHON-3.7&lt;/code&gt; for your environment, a simple google search will help you get the file and install process. After you are done run these two commands respectively in your terminal or command prompt&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 &lt;span class="nt"&gt;--version&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; pip3 &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;this will print the python version and the python package manager versions respectively. Cool!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  3. Create Twitter Account &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Since you might be testing, simply goto &lt;a href="https://twitter.com/"&gt;Twitter&lt;/a&gt; and create a test account, after that also visit &lt;a href="https://developer.twitter.com/"&gt;Twitter Developers&lt;/a&gt; and sign up for a developer account. Now you might be required to verify your email or phone number, just go through with it. Upon completion, goto the dashboard and point your cursor the top right corner, hover over the links and find the &lt;code&gt;Apps&lt;/code&gt; option, click on that and create an app, also go through the requirements like you did before. That's all, that was a long one! LOL... anyway please keep the browser tab open, we will be back for some keys.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  4. Install Script Packages &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;The script you just cloned needs a couple of other packages to run smoothly, so simply change directory into the folder from your terminal and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;pip3 &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This will get and install everything for you. Finally something simple!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  5. Add Keys &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;n this step, we will add in our twitter and news api keys, so head to the cloned folder and open the &lt;code&gt;keys.py&lt;/code&gt; file up in your favourite editor. Now goto to your twitter developer dashboard and click on your app then select the &lt;code&gt;Access Tokens&lt;/code&gt; tab, you wouldn't have the access keys generated for you so click on the generate button to get one. Now in the &lt;code&gt;keys.py&lt;/code&gt; file you would see the labels for each key in there, simply copy and paste them respectively. Now for the NewsAPI key, head to the news api tab in your browser and copy your &lt;code&gt;api_key&lt;/code&gt; in your account page and paste it at the &lt;code&gt;NEWS_API&lt;/code&gt; label in the &lt;code&gt;keys.py&lt;/code&gt; file. For the last two labels feel free to add in any hash tags you prefer and the script will use it to gain its traction. That's all for the &lt;code&gt;keys.py&lt;/code&gt; file. Hurraay!!!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  6. Run Now! &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;So excited!, now let's run what we've been waiting for, simply change directory into the cloned folder if you have not done that already and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 main.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;this will boot up the bot and start printing what it is up to on the terminal to keep you informed, now goto you twitter account watch as the magic you just setup happens!.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  7. Run After Restart &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;This is very easy to do, simply change directory into the cloned folder above and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 main.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and that's it, it will boot up and start automating. Enjoy!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  8. Error Logs &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Great!, you are all done and probably smiling at your twitter timeline and followers updating &lt;b&gt;automagically&lt;/b&gt;. Anyway if you have or faced any issues following the steps above that you cannot fix, no worries, e-mail &lt;a href="mailto:jeff@jefferyclonne.com"&gt;me&lt;/a&gt; or visit &lt;a href="http://jefferyclonne.com"&gt;my website&lt;/a&gt; and please remember to be thorough in telling me exactly what went wrong, thanks for your time, Happy Automating!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  Code Repo: &lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qF2jUiUG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-6a5bca60a4ebf959a6df7f08217acd07ac2bc285164fae041eacb8a148b1bab9.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Open-Clonne"&gt;
        Open-Clonne
      &lt;/a&gt; / &lt;a href="https://github.com/Open-Clonne/scripts"&gt;
        scripts
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      All scripts for automation purposes
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
About&lt;/h1&gt;
&lt;p&gt;Micro automation scripts written to aid in quick installs and social testing with docker integration.&lt;/p&gt;
&lt;h1&gt;
Cloud9-ide&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/3" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/3&lt;/a&gt;]. Happy Coding!.&lt;/p&gt;
&lt;h1&gt;
Clonnebots&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/4" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/4&lt;/a&gt;]. Happy Scripting!.&lt;/p&gt;
&lt;h1&gt;
Reporterbots&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/5" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/5&lt;/a&gt;]. Happy Automating!.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Open-Clonne/scripts"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/h3&gt;


</description>
      <category>python</category>
      <category>iot</category>
      <category>twitter</category>
      <category>balenaio</category>
    </item>
    <item>
      <title>Reporter Bot</title>
      <dc:creator>Jeffery (Kojo) Osei</dc:creator>
      <pubDate>Tue, 28 Jan 2020 08:15:05 +0000</pubDate>
      <link>https://forem.com/clonne101/reporter-bot-43l0</link>
      <guid>https://forem.com/clonne101/reporter-bot-43l0</guid>
      <description>&lt;p&gt;In this module we will learn how to run a simple python script for reporting the follower status of twitter accounts, with support for multiple account additions and google text to speech service, awesome experience!&lt;/p&gt;



&lt;br&gt;
&lt;h2&gt;
  
  
  STEPS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Clone Repo&lt;/li&gt;
&lt;li&gt;Install Python&lt;/li&gt;
&lt;li&gt;Create Twitter Account&lt;/li&gt;
&lt;li&gt;Install Script Packages&lt;/li&gt;
&lt;li&gt;Add Keys&lt;/li&gt;
&lt;li&gt;Run Now!&lt;/li&gt;
&lt;li&gt;Run After Restart&lt;/li&gt;
&lt;li&gt;Error Logs&lt;/li&gt;
&lt;/ul&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  1. Clone Repo &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Ok so let's begin this awesome journey by clicking &lt;a href="https://github.com/Open-Clonne/scripts/tree/master/reporterbots/twitter"&gt;here&lt;/a&gt;, which will redirect you to the master tree for the python scripts, feel free to use any tool you want to clone or simply click on the download button or you can copy the git clone url and use the &lt;code&gt;git clone {repo_url}&lt;/code&gt; command if you feeling fancy.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  2. Install Python &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Now in order to run the script, you need to install &lt;code&gt;PYTHON-3.7&lt;/code&gt; for your environment, a simple google search will help you get the file and install process. After you are done run these two commands respectively in your terminal or command prompt&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 &lt;span class="nt"&gt;--version&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; pip3 &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;this will print the python version and the python package manager versions respectively. Cool!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  3. Create Twitter Account &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Since you might be testing, simply goto &lt;a href="https://twitter.com/"&gt;Twitter&lt;/a&gt; and create a test account, after that also visit &lt;a href="https://developer.twitter.com/"&gt;Twitter Developers&lt;/a&gt; and sign up for a developer account. Now you might be required to verify your email or phone number, just go through with it. Upon completion, goto the dashboard and point your cursor the top right corner, hover over the links and find the &lt;code&gt;Apps&lt;/code&gt; option, click on that and create an app, also go through the requirements like you did before. That's all, that was a long one! LOL... anyway please keep the browser tab open, we will be back for some keys.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  4. Install Script Packages &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;The script you just cloned needs a couple of other packages to run smoothly, so simply change directory into the folder from your terminal and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;pip3 &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This will get and install everything for you. Finally something simple!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  5. Add Keys &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;In this step, we will add in our twitter api keys, so head to the cloned folder and open the &lt;code&gt;keys.py&lt;/code&gt; file up in your favourite editor. Now goto to your twitter developer dashboard and click on your app then select the "Access Tokens" tab, you wouldn't have the access keys generated for you so click on the generate button to get one. Now in the &lt;code&gt;keys.py&lt;/code&gt; file you would see the labels for each key in there, simply copy and paste them respectively. That's all for the &lt;code&gt;keys.py&lt;/code&gt; file. Hurraay!!!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  6. Run Now! &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;So excited!, now let's run what we've been waiting for, simply change directory into the cloned folder if you have not done that already and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 main.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;this will boot up the bot and start printing what it is up to on the terminal to keep you informed, now goto you twitter account watch as the magic you just setup happens!.&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  7. Run After Restart &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;This is very easy to do, simply change directory into the cloned folder above and run this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 main.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and that's it, it will boot up and start automating. Enjoy!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  8. Error Logs &lt;a&gt;&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;Great!, you are all done and probably smiling at your twitter timeline and followers updating &lt;b&gt;automagically&lt;/b&gt;. Anyway if you have or faced any issues following the steps above that you cannot fix, no worries, e-mail &lt;a href="mailto:jeff@jefferyclonne.com"&gt;me&lt;/a&gt; or visit &lt;a href="http://jefferyclonne.com"&gt;my website&lt;/a&gt; and please remember to be thorough in telling me exactly what went wrong, thanks for your time, Happy Automating!&lt;/p&gt;



&lt;br&gt;
&lt;h3&gt;
  
  
  Code Repo: &lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qF2jUiUG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-6a5bca60a4ebf959a6df7f08217acd07ac2bc285164fae041eacb8a148b1bab9.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Open-Clonne"&gt;
        Open-Clonne
      &lt;/a&gt; / &lt;a href="https://github.com/Open-Clonne/scripts"&gt;
        scripts
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      All scripts for automation purposes
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
About&lt;/h1&gt;
&lt;p&gt;Micro automation scripts written to aid in quick installs and social testing with docker integration.&lt;/p&gt;
&lt;h1&gt;
Cloud9-ide&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/3" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/3&lt;/a&gt;]. Happy Coding!.&lt;/p&gt;
&lt;h1&gt;
Clonnebots&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/4" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/4&lt;/a&gt;]. Happy Scripting!.&lt;/p&gt;
&lt;h1&gt;
Reporterbots&lt;/h1&gt;
&lt;p&gt;A well written module steps is available here [&lt;a href="https://jefferyclonne.com/openclonne/module/5" rel="nofollow"&gt;https://jefferyclonne.com/openclonne/module/5&lt;/a&gt;]. Happy Automating!.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Open-Clonne/scripts"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/h3&gt;


</description>
      <category>python</category>
      <category>iot</category>
      <category>twitter</category>
      <category>balenaio</category>
    </item>
  </channel>
</rss>
