Reform Test Case Generation with AI & UiPath

AgentHack submission type

Agentic Testing Solutions

Name

Anjali Yadav

Team name

gojo satoru Team

Team members

anjali.yadav.rs.08@gmail.com

How many agents do you use

One agent

Industry category in which use case would best fit in (Select up to 2 industries)

Banking and financial services

Complexity level

Advanced

Summary (abstract)

Reform Test Case Generation with AI & UiPath

Detailed problem statement

Within the banking domain, I’ve consistently seen that upper management’s hierarchical approach creates a considerable bottleneck before testing can even begin. Testers spend 2-3 days just analyzing new change requests (CRs or PRs) and crafting test cases. This is then followed by a mandatory manager approval. Should any scenarios be missed, an additional 1-2 days are lost in rework and re-approval cycles. This means a substantial 4–5-day pass before we can even start the actual testing phase.

Detailed solution

Solution:
I’ve built a clever Maestro workflow that teams up with an AI model (LLM) to whip up test cases automatically. This workflow interacts with LLM model gpt-4o-2024-11-20-community-agents to generate the test case in required format.
Once the test cases are generated tasks get created in Action center to keep Human in loop. Where manager will get notification for approval of test cases along with the requirement document where they can verify the test cases and if there is any missing test cases or modification required, they can set redirect the task back to user. Once the rework is completed the Manager can approve the test case. So that tester can start with testing.

Steps:

  1. Easy Submission: Business teams simply upload their project requirements (like a PDD document or a web link) using a user-friendly screen I made with UiPath Apps.
    The following is my User Interface (UI) developed using UiPath Apps. In App we have two options,

a) Upload the PDD/CR Doc.
b) Provide the Document/ UI URL to gather the requirements.

Select either of option by entering the required value and click on submit.

  1. Smart Extraction: Behind the scenes, the Maestro workflow springs into action, smartly picking out just the important bits of the requirements.
    Using the UiPath Document understanding, Bot will extract the required steps or information and pass it to the agentic process for test case generation.

  2. AI-Powered Test Cases: Next, an AI Agent jumps in, creating full test cases based on those requirements. It even organizes everything neatly into an Excel file, including details like Test Case ID, what to test, steps to follow, expected results, and priority.
    System Prompt: Here we are defining the rule that bot should following while generating the test cases as per user prompt.

  3. Quick Approvals (with a Human Touch): This Excel file then goes straight to management for approval.
    a) Approved! If they like it, testers get the green light right away and can start testing.
    b) Need Tweaks? If changes are needed, management can easily download the Excel, make their edits, and re-upload it. The updated test cases are then automatically emailed to the testers, ensuring everyone’s always on the same page.
    c)Reject: Management can reject the request by providing the rejection reason.

This whole process dramatically cuts down on manual work, speeds up testing, and helps teams get things done much faster. I’m really pumped about how much this can boost efficiency!

Demo Video

Expected impact of this automation

This approach delivers a 60-70% reduction in manual work, quicker testing cycles, and faster project completion. It’s also crucial for maintaining team synchronization.

UiPath products used (select up to 4 items)

UiPath Action Center
UiPath Agent Builder
UiPath Apps
UiPath Assistant
UiPath Autopilot™
UiPath Document Understanding™
UiPath Maestro
UiPath Orchestrator
UiPath Robots
UiPath Studio
UiPath Studio Web

Integration with external technologies

gpt-4o-2024-11-20-community-agents

Agentic solution architecture (file size up to 4 MB)

Sample inputs and outputs for solution execution

I/P: PDD File or cloud URL where document is uploaded.

O/P: Test Case Excel File generated by Agent.

Other resources

Process Document - https://docs.google.com/document/d/1PbB4rmkSPHWLBLJZzeVF09VtyuDs_ndV/edit?usp=sharing&ouid=105363348023444925201&rtpof=true&sd=true

Hello, you need to share the video for us to evaluate, I already contacted you by email about this.

Hi,

Access is shared. PFA of video as well.

https://drive.google.com/file/d/1-kPlRT6B8VFc9TvMuxK4Le6eUiz6LQkn/view?usp=sharing