TCS Decomposes Testing Workflows with Dedicated Agents, Using LangGraph Bounded Loops for Automated Correction
Indian IT services company TCS detailed its Agentic Test Orchestrator for banking, financial services, and insurance (BFSI) clients in an Amazon Web Services blog. The core design decision is that a single prompt cannot provide sufficient control for multi-stage engineering workflows; therefore, the testing lifecycle is split into specialized agents for scenario generation, Gherkin conversion, code generation, validation, and execution, routed by a deterministic supervisor and constrained by LangGraph state graphs to limit retry counts and safety checks. Internal benchmarks at TCS show average engineer hours per scenario dropped from approximately two hours to about 14 minutes across roughly 100 test scenarios, but this data is vendor-reported and has not been independently reproduced.
Traditional test automation improved execution speed but did not address the slowest part of BFSI release processes. Indian IT services company Tata Consultancy Services (TCS) described this specific problem in an AWS Machine Learning blog post co-written with Varun Valsan: teams still need to create scenarios, convert them into scripts, maintain locators and dependencies, and diagnose failures. When linked user stories change, scripts generated for earlier stories quickly become stale.
TCS determined that a single generative AI prompt also fails to provide the necessary control for multi-stage engineering workflows. Instead of using a larger prompt, their response was to decompose the testing lifecycle into specialized tasks, each with its own agent, tools, validation rules, and context. A deterministic supervisor routes work, while the execution workflow controls retries, error classification, persistence, and reporting.
Specifically, the platform includes five categories of dedicated agents: a Generation agent creates structured scenarios and converts them to Gherkin, generates Java or Python automation code, and validates it; a Chat agent classifies requests as information queries or update requests; a Dynamic Task agent retrieves Business Requirement Document (BRD) context and produces structured user stories; an Incremental agent extends existing artifacts across linked Jira story chains rather than starting from scratch; and an Execution agent fetches artifacts, selects an environment, runs tests, classifies failures, applies controlled corrections, and saves results.