
AI can generate hundreds of test cases in minutes. But generating more test cases does not automatically mean generating better test coverage.
The problem is context.
Many AI test case generators work primarily from requirements, user stories, tickets, or acceptance criteria. That can be useful for understanding intended behavior, but tickets or user stories rarely contain the complete structure of an application: every page, form, navigation path, authentication state, dependency, or API endpoint.
This creates an important gap between what the requirement says the application should do and what the application actually does.
Application-aware AI test case generation takes a different approach. Instead of treating the requirement as the entire source of truth, it combines requirement context with information discovered from the application itself.
This is the approach behind TR-Forge, Testrig Technologies’ AI-powered test case generation framework.
Why AI Test Case Generation Still Needs Application Context
Traditional test case creation is time-consuming because QA engineers have to translate requirements into test scenarios, understand the application, identify relevant workflows, check existing coverage, and maintain those tests as the product changes.
AI can accelerate the test-authoring part of that process. But there is a limitation: an AI model can only reason from the context it receives.
Consider a ticket and information in it such as:
“Users should be able to update their profile information.”
A requirement-based AI system can generate tests for updating a name, email address, password, or profile picture.
But what if the actual application also includes:
- A separate profile settings page
- Authentication and session requirements
- A multi-step profile workflow
- Client-side validation
- Server-side validation
- Role-specific fields
- Navigation through a dashboard
- API calls triggered by the form
- Error states that are not documented in the ticket
Those details may exist in the application but not in the requirement.
That is where ticket-only AI test generation can become incomplete.
1.Requirements do not describe the entire application
User stories and tickets describe intended functionality. They are not necessarily a complete representation of the application’s current state.
A test generator that only sees ticket information can miss application behavior that was never documented or has changed since the requirement was written.
2. Regeneration can create maintenance problems
Applications and user stories and UI change continuously.
If every requirement changes results in a new batch of generated test cases, teams can end up with:
- Duplicate scenarios
- Overwritten test cases
- Unclear test history
- Broken traceability
- Uncertainty about which cases are still relevant
For AI-generated tests to work at scale, generation needs to become a repeatable lifecycle rather than a one-time prompt.
3. UI and API coverage can become disconnected
Modern applications are not just user interfaces. A single user journey may involve browser interactions, API requests, authentication services, business logic, and backend validation. When UI and API test design happen independently, teams can lose visibility into how the two layers relate to the same functionality.
What Is TR-Forge?
TR-Forge is an application-aware AI test case generation engine that combines requirements with the actual structure and behavior discovered from an application.
Requirements can be provided through JIRA, Linear, ClickUp, or manual input. TR-Forge then uses browser-based application discovery to identify pages, forms, authentication states, navigation paths, and user workflows.
That discovered application context becomes part of the input used for test case generation.
The goal is straightforward:
Generate test cases from what the application is expected to do and what the application actually exposes.
TR-Forge also extends this approach to API testing, allowing UI and API test cases to be managed within the same project context.
Read More: Live Demo Explore how TR-Forge and Codex Work Together
How Application-Aware Test Generation Works
The workflow can be thought of as four stages:
Requirements → Application Discovery → Context-Aware Generation → Traceable Test Management
1. Start with requirements
TR-Forge can consume requirements from JIRA, Linear, OR ClickUp or accept requirements entered manually.
The requirement provides the intended functionality and business context.
2. Discover the application
Instead of stopping at the requirement, TR-Forge explores the application through a browser.
The discovery process can identify:
- pages and routes
- forms and inputs
- navigation paths
- authentication states
- links and interactive elements
- workflows exposed through the UI
The result is a Site Map representing the discovered application structure.
This gives the generation engine application context that would not be available from ticket text alone.
3.Generate tests using application context
The discovered pages and relationships are used alongside the requirements when generating test cases.
This helps connect a requirement to actual application pages and workflows rather than generating scenarios entirely from natural-language descriptions.
TR-Forge also tracks the pages associated with generated test cases and cross-checks them against discovered application data.
This does not make AI generation infallible. Instead, it provides an additional grounding and verification layer that can reduce unsupported application references.
Read also: How to Use AI Effectively in Quality Engineering
Key Capabilities of TR-Forge
1. Application-aware AI test case generation
TR-Forge combines requirements with application discovery rather than treating requirements as the only source of context.
The Site Map provides visibility into the application’s discovered structure, while generated test cases maintain page-coverage relationships.
This creates a stronger connection between requirement → application page → workflow → test case.
2. Browser-based application discovery
TR-Forge can discover application behavior that may not be visible in a ticket.
It can navigate through pages, forms, links, and authentication flows to build an application map before test generation.
The crawl can support up to 100 pages per run, with login retries of up to five attempts before the run is considered unsuccessful.
For browser discovery, TR-Forge can use different execution approaches, including raw Playwright, Playwright MCP, or an AI-driven agent.
Playwright MCP itself provides browser automation to AI agents through the Model Context Protocol and structured accessibility snapshots rather than requiring an AI model to interpret screenshots for every interaction.
3. UI and API test generation in one project
Application behavior is not limited to the browser.
TR-Forge can generate API test cases against real endpoints and modules alongside UI test cases.
API test cases can be organized using Given/When/Then scenarios and filtered by attributes such as:
- module
- sub-module
- test type
- priority
This provides a common testing context for different layers of the application instead of treating UI and API coverage as completely separate activities.
4. Regeneration with existing test awareness
Regeneration is one of the harder problems in AI-assisted test management.
TR-Forge evaluates new generation runs against existing test cases within the relevant module to help identify unnecessary duplication.
Generation runs are also snapshotted with version history, allowing teams to review how test coverage has evolved rather than silently replacing previous results.
5. Permanent test case IDs
Each test case receives a permanent TC-xxxxx identifier.
The ID remains associated with the test case across regeneration and version history, making it easier to trace changes over time.
For teams managing thousands of generated cases, stable identity matters because a test case should not become an entirely new entity simply because its wording or implementation changes.
6. Flexible LLM selection
Different projects can have different requirements around model quality, cost, deployment, and data handling.
TR-Forge supports multiple LLM options, including:
- Claude
- Gemini
- OpenAI
- Ollama
The LLM can be configured at the project level and changed through Settings.
This allows teams to select the model or runtime that fits their particular testing workflow rather than making the entire testing process dependent on a single model.
7. Application documentation
Application discovery can also produce documentation.
TR-Forge can generate Markdown documentation for individual crawled pages on demand, giving QA and engineering teams a structured description of discovered application areas.
This turns application discovery into reusable project knowledge rather than treating it only as an intermediate step before test generation.
8. Project-level relationship graph
TR-Forge maintains relationships between Features, Modules, Test Cases, and Pages.
These relationships can be explored through a zoomable Project Graph, providing another way to understand how application areas and test coverage are connected.
For larger applications, this relationship model can be useful when investigating coverage, impact, and dependencies.
TR-Forge vs. Ticket-Only AI Test Generation
The difference is primarily about where the testing context comes from.
| Capability | Ticket-only approach | TR-Forge |
| Primary context | Requirements or ticket text | Requirements + discovered application context |
| Application discovery | Usually outside generation workflow | Built into the workflow |
| Page awareness | Depends on supplied information | Based on discovered application pages |
| Coverage verification | Often requires manual validation | Generated page coverage is checked against crawl data |
| UI testing | Requirement-driven | Application-aware |
| API testing | Often separate workflow | Included in the same project |
| Regeneration | May produce duplicate cases | Evaluated against existing module coverage |
| Test identity | Depends on the tool | Permanent TC-xxxxx IDs |
| History | Varies by tool | Generation and test version history |
| LLM flexibility | Depends on platform | Claude, Gemini, OpenAI, and Ollama |
Who Can Benefit from Application-Aware Test Generation?
TR-Forge is designed for teams that need to generate and maintain test coverage across changing applications.
It can be particularly relevant for:
- Agile teams where requirements and application behavior change frequently
- QA and QE teams testing UI and APIs who spend significant time converting requirements into test cases and need to manage their test assets within a single project.
- Organizations evaluating multiple LLMs for their testing workflows
- Teams maintaining large test suites where traceability and regeneration become difficult
Conclusion
AI test case generation can remove a significant amount of repetitive work from QA, but generating tests from requirements alone has inherent limitations.
Requirements describe intended functionality. They do not necessarily capture every page, workflow, authentication state, navigation path, or API involved in the actual application.
Application-aware test generation addresses this gap by bringing application discovery into the generation workflow.
Connect with a leading AI Automation Testing Company to explore how AI can enhance your QA process and improve testing efficiency.