GenAI : Witness Automated Test Cases Generation in Action, let’s build

Aniket Hingane
6 min readMar 14, 2024

Snap Webpage Screenshots, Let AI Craft Test Cases

The problem

Testing software, especially web forms, can take a lot of time and effort. It’s hard to think of every possible way a user might interact with the form.

The solution

We can use AI (specifically large language models, or LLMs) to automatically come up with test cases for us. This saves time and helps us find bugs we might have missed!

Overview

Here’s how this solution works, and how to build it yourself.

To get started, you simply need to drag and drop or upload a web page form screenshot into the Streamlit UI. For this demonstration, we’ll use a sample “Contact Us” form with input fields.

Setup

GenAI is built on 3 key components: LLaVa, Ollama and Streamlit.

  • LLaVa is a state-of-the-art language model specifically trained to generate detailed test cases for web applications.
  • Streamlit is a user-friendly UI framework that…

--

--

Aniket Hingane

Passionate about applying AI to practical uses,I simplify complex concepts & designs in concise articles, making complexity accessible one short piece at a time