<?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>DEV Community: Nishant Chaubey</title>
    <description>The latest articles on DEV Community by Nishant Chaubey (@nishant2252).</description>
    <link>https://dev.to/nishant2252</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3301870%2F861189b0-7e9a-451a-897f-4fe64cd9fa08.png</url>
      <title>DEV Community: Nishant Chaubey</title>
      <link>https://dev.to/nishant2252</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nishant2252"/>
    <language>en</language>
    <item>
      <title>✨ From Manual Testing to AI Magic: My API Testing Journey with Keploy 🚀</title>
      <dc:creator>Nishant Chaubey</dc:creator>
      <pubDate>Sat, 28 Jun 2025 02:23:21 +0000</pubDate>
      <link>https://dev.to/nishant2252/from-manual-testing-to-ai-magic-my-api-testing-journey-with-keploy-3bja</link>
      <guid>https://dev.to/nishant2252/from-manual-testing-to-ai-magic-my-api-testing-journey-with-keploy-3bja</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“I went from writing manual test scripts line-by-line to achieving 100% API test coverage in minutes — thanks to Keploy!”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  👋 Who Am I?
&lt;/h2&gt;

&lt;p&gt;Hi, I’m &lt;strong&gt;Nishant Kumar Chaubey&lt;/strong&gt;, a B.Tech student at KIIT with a deep interest in web development and blockchain. As a developer, I’ve spent countless hours writing and debugging tests manually for APIs — and honestly, it hasn’t always been fun.&lt;/p&gt;

&lt;p&gt;That’s why discovering &lt;strong&gt;Keploy&lt;/strong&gt;, an AI-based API testing platform, was a game-changer.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧲 Why API Testing Matters
&lt;/h2&gt;

&lt;p&gt;When building full-stack applications — like my recent &lt;strong&gt;Pet Adoption Center&lt;/strong&gt; project — one thing that’s essential but often overlooked is &lt;strong&gt;robust testing&lt;/strong&gt;. Writing unit, integration, and API tests ensures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;APIs behave as expected&lt;/li&gt;
&lt;li&gt;Bugs are caught early&lt;/li&gt;
&lt;li&gt;Refactors don’t break things silently&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But writing all of those tests &lt;strong&gt;manually&lt;/strong&gt; is time-consuming and repetitive.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Enter Keploy — AI-Powered API Testing
&lt;/h2&gt;

&lt;p&gt;Keploy made me rethink testing. Instead of writing boilerplate code for each endpoint, Keploy &lt;strong&gt;automatically generated test cases&lt;/strong&gt; based on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live API traffic (from curl or browser)&lt;/li&gt;
&lt;li&gt;OpenAPI schema&lt;/li&gt;
&lt;li&gt;Chrome Extension traffic capture&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧩 Task 1: AI API Testing + GitHub Actions Integration
&lt;/h2&gt;

&lt;p&gt;As part of the API Fellowship, my first challenge was to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Create an OpenAPI schema&lt;/li&gt;
&lt;li&gt;✅ Capture curl traffic from real API usage&lt;/li&gt;
&lt;li&gt;✅ Generate tests using Keploy Cloud&lt;/li&gt;
&lt;li&gt;✅ Integrate those tests into GitHub Actions for CI/CD&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🛠️ My Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js + Express.js&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React.js&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MongoDB Atlas&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing:&lt;/strong&gt; Jest, Supertest, and now... Keploy AI&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🧲 How I Used Keploy for API Testing
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Generated OpenAPI schema&lt;/strong&gt; for my backend&lt;/li&gt;
&lt;li&gt;Used Keploy CLI to run:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   keploy record &lt;span class="nt"&gt;--command&lt;/span&gt; &lt;span class="s2"&gt;"npm start"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Performed real curl/API requests&lt;/li&gt;
&lt;li&gt;Keploy recorded the requests/responses and auto-created test cases&lt;/li&gt;
&lt;li&gt;I then ran:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   keploy &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;--config&lt;/span&gt; config.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Result: It generated &lt;strong&gt;20 suites&lt;/strong&gt;, with &lt;strong&gt;0 boilerplate written by me&lt;/strong&gt;, and tested &lt;strong&gt;CRUD operations&lt;/strong&gt;!&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  🤖 GitHub Actions Integration
&lt;/h3&gt;

&lt;p&gt;I added the Keploy test suite into my GitHub workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install Keploy CLI&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;curl --silent -L https://keploy.io/ent/install.sh | bash&lt;/span&gt;

&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run Keploy Test Suite&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;export KEPLOY_API_KEY=your_key &amp;amp;&amp;amp; keploy test-suite --app=your_app_id --base-path http://localhost:5000/api --cloud&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, &lt;strong&gt;on every push&lt;/strong&gt;, tests are triggered and verified via the Keploy Cloud Dashboard. 🌟&lt;/p&gt;




&lt;h2&gt;
  
  
  🌐 Task 2: Chrome Extension API Test Recording
&lt;/h2&gt;

&lt;p&gt;Next, I tried &lt;strong&gt;Keploy's Chrome Extension&lt;/strong&gt; — and it blew my mind how simple it was.&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚖️ Steps I Followed:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Cloned the &lt;a href="https://github.com/keploy/extension" rel="noopener noreferrer"&gt;Keploy Chrome Extension Repo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Loaded it into Chrome via &lt;code&gt;chrome://extensions&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Visited two real-world websites to test their live API interactions:

&lt;ul&gt;
&lt;li&gt;🛍️ &lt;strong&gt;Flipkart&lt;/strong&gt; – Browsed mobile phones, filtered by price and brand, opened product pages.&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;Amazon&lt;/strong&gt; – Searched for books, explored product categories, checked product details.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Clicked &lt;strong&gt;Start Recording&lt;/strong&gt; on the Keploy Chrome Extension → interacted with the websites.&lt;/li&gt;
&lt;li&gt;Clicked &lt;strong&gt;Stop Recording&lt;/strong&gt; once done → hit &lt;strong&gt;Generate Tests&lt;/strong&gt; to let Keploy convert those captured API calls into ready-to-use test cases.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keploy redirected me to the dashboard and generated tests based on the captured traffic — again, &lt;strong&gt;without writing a single line of test code&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ Manual vs Keploy AI — A Quick Comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Manual Testing&lt;/th&gt;
&lt;th&gt;Keploy AI Testing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time to write test cases&lt;/td&gt;
&lt;td&gt;2–3 hours (for 15 endpoints)&lt;/td&gt;
&lt;td&gt;Under 10 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maintenance&lt;/td&gt;
&lt;td&gt;Prone to human error&lt;/td&gt;
&lt;td&gt;Regenerates tests from traffic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coverage&lt;/td&gt;
&lt;td&gt;Partial (usually)&lt;/td&gt;
&lt;td&gt;100% coverage from recorded interactions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup Complexity&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Low (just run with curl or browser)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integration in CI/CD&lt;/td&gt;
&lt;td&gt;Manual with Jest/Supertest&lt;/td&gt;
&lt;td&gt;Seamless via GitHub Actions + CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  😍 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Using Keploy was like unlocking a cheat code in development. As someone who’s manually written hundreds of lines of test cases — I truly appreciate how:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast 🚨&lt;/li&gt;
&lt;li&gt;Accurate ✅&lt;/li&gt;
&lt;li&gt;Intelligent 🤖
Keploy is.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whether through its &lt;strong&gt;CLI + GitHub CI pipeline&lt;/strong&gt; or &lt;strong&gt;Chrome extension&lt;/strong&gt;, I was able to move from &lt;strong&gt;0 to 100% API test coverage&lt;/strong&gt; in just a few minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  📜 What’s Next?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I’m planning to use Keploy in future backend projects — especially for microservices.&lt;/li&gt;
&lt;li&gt;I’ll be exploring &lt;strong&gt;test assertions customization&lt;/strong&gt; and &lt;strong&gt;mocking responses&lt;/strong&gt; too.&lt;/li&gt;
&lt;li&gt;And most importantly, I’ll recommend this to any developer building APIs.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔗 Try It Yourself!
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keploy Website: &lt;a href="https://keploy.io" rel="noopener noreferrer"&gt;https://keploy.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Chrome Extension: &lt;a href="https://github.com/keploy/extension" rel="noopener noreferrer"&gt;https://github.com/keploy/extension&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;My GitHub Repo: [&lt;a href="https://github.com/NishantChaubey534/pet-adoption-center" rel="noopener noreferrer"&gt;https://github.com/NishantChaubey534/pet-adoption-center&lt;/a&gt;]&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧑‍💻 About Me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Nishant Kumar Chaubey&lt;/strong&gt;&lt;br&gt;
B.Tech CSE | KIIT&lt;br&gt;
💻 Web Dev | 🧱 Blockchain | 🧲 API Enthusiast&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Thanks for reading! Feel free to reach out or comment if you're exploring Keploy too 🙌&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
  </channel>
</rss>
