Background: Why Did Epsilon Expand the UI Testing Paradigm?
Epsilon is a data, technology, and marketing services company handling millions of consumer profiles and thousands of brand relationships. In an environment where product teams rapidly change and deploy unique web applications, the existing Playwright-based regression test suite was effective for functional validation but was tightly coupled to CSS selectors and page structure, leading to test failures even with minor UI changes.
"Scripted Playwright tests are effective for deterministic regression checks. However, they are tightly coupled to selectors and page structure. Cosmetic UI changes can break them even when the underlying functionality is sound."
Epsilon chose to add a layer of natural language intent testing rather than replace regression testing, aiming to expand coverage. At the same time, it sought to provide this as a platform service to prevent each product team from redundantly building browser infrastructure, dependency management, and identity system integration.
Technology Selection: Two Requirements Met by Amazon Nova Act and AgentCore Browser Tool
Epsilon set natural language test creation and managed browser infrastructure as evaluation criteria. The combination of Amazon Nova Act and Amazon Bedrock AgentCore Browser Tool addressed both simultaneously.
| Evaluation Criteria | Playwright (Existing) | Nova Act + AgentCore Browser Tool (New) |
|---|---|---|
| Test Creation Method | Selector-based Code | Natural Language Instructions (Plain English) |
| UI Change Resilience | Low (Selector Breakage) | High (Intent-based Execution) |
| Browser Infrastructure | Team-operated | AWS Fully Managed, Ephemeral Sessions |
| Authentication/Authorization | Separate API Key/Secret | AWS IAM Credential Chain, STS AssumeRole |
| Audit/Recording | Separate Implementation Required | CloudTrail, S3 Session Recording Provided |
Key Benefits
- Natural Language Steps: Instructions like "Confirm the rewards balance is visible" are readable by non-engineers and robust against screen redesigns.
- Managed Browser: Instantly acquire isolated Chromium instances without binary distribution or display server maintenance.
- Live View and Session Recording: Real-time observation and handover are possible in situations requiring human intervention, such as CAPTCHA and MFA, with the entire session stored in S3 and audited via CloudTrail.
- IAM Native Authentication: Authenticated through AWS credential chain (task role) without separate API key distribution, seamlessly integrating with Epsilon's existing security model.
- Cross-Account Friendliness: Each onboarded team executes tests with scoped roles within their AWS accounts, ensuring isolation and auditability.
Architecture: UI Testing Pipeline as a Multi-Tenant Platform Service
Epsilon's UI testing service consists of a 3-step pipeline: Platform API → Background Task Runner → Nova Act + AgentCore Browser Tool.
- Workflow Creation (API)
- Task Queuing (SQS)
- Runner Execution (ECS/Celery)
- Nova Act Step Execution (CDP WebSocket)
- Results and Screenshots Storage (S3)
- Completion Hook Call
Platform API Layer
- Django REST based API Gateway performs authentication and authorization checks.
- Endpoints: Provide workflow, execution, automation suite, and statistics retrieval.
- Business Logic: Managed by Workflow Manager, Execution Orchestrator, and Suite Coordinator.
Execution Layer
- Tasks are queued in Amazon SQS, and a Celery runner running on Amazon ECS picks up the tasks.
- The runner container includes the Nova Act engine and headless Chromium.
- Each step controls the browser via Chrome DevTools Protocol (CDP) WebSocket, and conditional logic (e.g., "if a tour box appears, skip it") can also be expressed in natural language.
Storage and Exposure Layer
- Step-by-step screenshots, pass/fail status, overall pass rate, result JSON, trajectory data, and HTML reports are stored in Amazon S3.
- Functionality is exposed through the standard agent `ui-test-agent`, providing two skills:
- `ui-test-recorder`: Interactively navigates scenarios and records natural language steps.
- `ui-test-executor`: Executes recorded steps and returns structured results.
Product teams consume UI testing through the existing agent API surface without separate infrastructure.
Implementation Details: Nova Act and CDP WebSocket Integration, Example of 18-Step Workflow
The 18-step test workflow disclosed in the article describes a real product scenario in natural language. Key step examples include:
- Navigate to the login page
- Enter credentials and click the login button
- Confirm dashboard load
- Check if rewards balance is displayed
- Open profile menu
- Navigate to settings page
- Change notification settings toggle
- Click save button and confirm success toast
- … (Total 18 steps)
Each step maps to a Nova Act `act()` call, and the runner processes in the order of step-by-step screenshot capture → pass/fail record → overall pass rate calculation → S3 storage → completion hook call. Conditional branching ("if a tour box appears, skip it") is also included in natural language, allowing the model to make judgments without separate code branching.
Operational Benefits: Isolated Browser Sessions, Audit Trails, Cross-Account Support
The decisive reason Epsilon chose the AgentCore Browser Tool is that it can completely delegate the operational burden of browser binaries, display servers, and session lifecycle management to AWS. The Agentic Platform team had no intention of owning that infrastructure directly.
- Ephemeral Sessions: Browser instances are created and terminated only at the time of test execution, eliminating waste of costs and resources.
- Live View: Human intervention is possible in real-time during debugging, MFA, and CAPTCHA responses.
- Session Recording and CloudTrail: All interactions are recorded in S3, and API calls are logged in CloudTrail, providing immediate compliance evidence.
- STS AssumeRole: Each onboarding team executes tests with dedicated roles, achieving both network and data isolation and audit trails simultaneously.
Implications: Lessons Development Organizations Can Learn
The Epsilon case demonstrates how the strategy of layering natural language-based agent testing on top of existing deterministic test assets (Playwright) rather than replacing them works in large-scale multi-tenant environments. The key lies in the platform's comprehensive resolution of infrastructure, security, and identity, allowing product teams to focus solely on 'test creation'.
Developer Checklist
- Clearly define the role division boundaries between existing regression suites and intent-based testing.
- Assess whether browser infrastructure operations can be delegated to managed services.
- Verify if the authentication and authorization model can be integrated natively with IAM/STS.
- Review whether session recording and audit logs meet regulatory and compliance requirements.