DEV Community

Shell QA
Shell QA

Posted on

Supercharging Test Automation with Custom AI Agents and Secure GPT

Introduction

As software applications grow in complexity, traditional test design and automation engineering often become bottlenecks. Between incomplete test cases, inconsistent documentation, and missing context, teams waste substantial cycles simply preparing test assets.

To tackle these challenges, we built an AI-driven test automation pipeline combining Custom AI Agents for script generation and Secure GPT for high-speed test design—all while keeping a Human-in-the-Loop for validation.


Phase 1: AI Custom Agents for Script Generation

Instead of using a single monolithic prompt, we broken down script generation into specialized, modular AI Agents that handle specific artifacts across the automation lifecycle.

The Agent Pipeline Architecture

  1. Context Agent: Processes inputs like KT video recordings, application screenshots, and page sources to establish domain context.
  2. Test Case Agent: Maps context to structured test cases.
  3. Feature File Agent: Converts test cases into Gherkin feature files for BDD workflows.
  4. Page Object Agent: Generates Page Object Model (POM) element locators and structure.
  5. Step Definition Agent: Generates the underlying code logic for execution.
  6. Telemetry Layer: Tracks token usage and execution status across agents, outputting real-time data to an executive reporting dashboard.

Key Challenges Solved

  • Insufficient context for AI adoption.
  • Single-line or incomplete test cases in legacy repositories.
  • Lack of test case prioritization and coverage gaps across application modules.
  • Inconsistent documentation.

Phase 2: Test Design Acceleration with Secure GPT

By leveraging a Secure GPT instance with a Human-in-the-Loop review process, we targeted initial test case generation for existing regression suites before expanding into active sprint stories.

Productivity Breakdown

Metric AI Team Member (Secure GPT) Traditional Automation Engineer
Average Productivity ~35 test cases / day ~7.5 test cases / day
Productivity Gain 4.6x Higher Baseline
Time to Create 100 Test Cases ~3 Days ~13–20 Days

In initial rollouts across enterprise applications, accuracy rates consistently ranged between 40–60% for fully automated initial drafts, allowing test leads to focus on refining edge cases rather than building test suites from scratch.


What's Next?

Our next milestone expands this pipeline to in-sprint user stories. By feeding detailed user stories, Business Requirement Documents (BRDs), application screenshots, and acceptance criteria directly into Secure GPT, the team can auto-generate new test scenarios as soon as a story enters the sprint.


How is your team integrating generative AI into your testing workflows? Let’s discuss in the comments below!

Top comments (0)