<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Building an AI Tool that Generates Manual Test Cases from Any Website]]></title><description><![CDATA[Building an AI Tool that Generates Manual Test Cases from Any Website]]></description><link>https://automationai.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/69b8d5a42ad6ae51842bb929/406e4ce5-86c5-4139-9a82-6004934a5033.png</url><title>Building an AI Tool that Generates Manual Test Cases from Any Website</title><link>https://automationai.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 02:11:58 GMT</lastBuildDate><atom:link href="https://automationai.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building an AI Tool that Generates Manual Test Cases from Any Website]]></title><description><![CDATA[Writing manual test cases is a fundamental responsibility for QA engineers. However, generating comprehensive test scenarios for every web form can be repetitive and time-consuming.
To explore how AI ]]></description><link>https://automationai.hashnode.dev/building-an-ai-tool-that-generates-manual-test-cases-from-any-website</link><guid isPermaLink="true">https://automationai.hashnode.dev/building-an-ai-tool-that-generates-manual-test-cases-from-any-website</guid><category><![CDATA[qa testing]]></category><category><![CDATA[QA automation]]></category><category><![CDATA[automation]]></category><category><![CDATA[automation testing ]]></category><category><![CDATA[Automated Testing]]></category><dc:creator><![CDATA[Yashwanth]]></dc:creator><pubDate>Tue, 17 Mar 2026 04:24:58 GMT</pubDate><content:encoded><![CDATA[<p>Writing manual test cases is a fundamental responsibility for QA engineers. However, generating comprehensive test scenarios for every web form can be repetitive and time-consuming.</p>
<p>To explore how AI can assist in QA workflows, I built a simple tool that:</p>
<ul>
<li>Analyzes a webpage</li>
<li>Detects form elements</li>
<li>Generates structured manual test cases automatically</li>
</ul>
<p>The tool uses a local AI model and runs entirely on my laptop.</p>
<hr />
<h2>Problem Statement</h2>
<p>When testing a webpage manually, a QA engineer typically performs the following steps:</p>
<ol>
<li>Identify the input fields.</li>
<li>Identify available actions such as buttons.</li>
<li>Think of possible scenarios (valid, invalid, edge cases).</li>
<li>Write structured test cases.</li>
</ol>
<p>For example, a login page normally requires tests like:</p>
<ul>
<li>Valid login</li>
<li>Invalid password</li>
<li>Empty fields</li>
<li>Security scenarios</li>
</ul>
<p>While these scenarios are straightforward, writing them repeatedly across multiple projects can become inefficient.</p>
<hr />
<h2>Idea</h2>
<p>The idea behind this project was simple:</p>
<p><strong>Let AI analyze the webpage structure and generate manual test cases automatically.</strong></p>
<p>Workflow of the tool:</p>
<p>URL → DOM Analysis → AI Prompt → Generated Test Cases</p>
<hr />
<h2>Technologies Used</h2>
<p>The project uses the following technologies:</p>
<ul>
<li>Streamlit – to create the web interface</li>
<li>Beautiful Soup – to analyze webpage elements</li>
<li>Ollama – to run AI models locally</li>
<li>Phi-3 – to generate QA test cases</li>
</ul>
<p>Running the AI model locally ensures that the tool works <strong>offline without sending data to external APIs</strong>.</p>
<hr />
<h2>How the Tool Works</h2>
<h3>Step 1 – Enter Website URL</h3>
<p>The user enters the URL of the webpage to test.</p>
<p>Example:</p>
<p><a href="https://the-internet.herokuapp.com/login">https://the-internet.herokuapp.com/login</a></p>
<hr />
<h3>Step 2 – DOM Analysis</h3>
<p>The tool scans the page and identifies important elements such as:</p>
<p>Inputs:</p>
<ul>
<li>username</li>
<li>password</li>
</ul>
<p>Buttons:</p>
<ul>
<li>Login</li>
</ul>
<p>This is done using BeautifulSoup to parse the HTML structure.</p>
<hr />
<h3>Step 3 – AI Prompt Generation</h3>
<p>The detected elements are sent to the AI model with a structured instruction like:</p>
<p>“Generate 5 manual QA test cases for a login page using the detected inputs and buttons.”</p>
<p>The prompt ensures the response follows a specific table format.</p>
<hr />
<h3>Step 4 – AI Generates Test Cases</h3>
<p>The AI returns structured manual test cases such as:</p>
<p>Test Case ID | Scenario | Steps | Expected Result</p>
<p>TC_LOGIN_01 | Valid login | Enter valid username and password and click login | User successfully logs in
TC_LOGIN_02 | Invalid password | Enter valid username and incorrect password | Error message displayed
TC_LOGIN_03 | Empty fields | Leave username and password empty | Validation message displayed
TC_LOGIN_04 | SQL injection attempt | Enter ' OR 1=1-- as username | Login is blocked
TC_LOGIN_05 | Case sensitivity test | Enter uppercase username and correct password | Login behavior validated</p>
<hr />
<h2>Benefits for QA Engineers</h2>
<p>This approach can help QA engineers by:</p>
<ul>
<li>Reducing repetitive test case writing</li>
<li>Quickly generating test scenarios for new pages</li>
<li>Assisting junior testers in identifying edge cases</li>
<li>Speeding up the test planning phase</li>
</ul>
<p>It does not replace manual testing but acts as a <strong>productivity assistant</strong>.</p>
<hr />
<h2>Limitations</h2>
<p>Since the tool uses a lightweight local model, it has some limitations:</p>
<ul>
<li>Sometimes formatting needs minor adjustments</li>
<li>It may generate generic scenarios</li>
<li>Complex workflows still require human QA expertise</li>
</ul>
<p>However, it provides a good starting point for test case creation.</p>
<hr />
<h2>Future Improvements</h2>
<p>Possible enhancements for this tool include:</p>
<ul>
<li>Generating automation scripts automatically</li>
<li>Exporting test cases to Excel</li>
<li>Detecting different form types (login, signup, checkout)</li>
<li>Generating security and accessibility test scenarios</li>
</ul>
<hr />
<h2>Conclusion</h2>
<p>AI is gradually becoming a powerful assistant for software testing.</p>
<p>By combining simple DOM analysis with AI generation, we can build tools that support QA engineers and reduce repetitive tasks.</p>
<p>This small experiment demonstrates how AI can assist in generating structured manual test cases directly from a webpage.</p>
<hr />
<p>If you are a QA engineer exploring AI in testing, experimenting with small tools like this can be a great way to learn and innovate.</p>
<p>This is just the beginning! As a prototype, many more exciting features will be added in the near future.</p>
<p>Happy Testing!</p>
]]></content:encoded></item></channel></rss>