Key Takeaways
Most AI testing failures are caused by missing context, not weak models. Testers should redesign their testing systems to capture richer signals, enabling better debugging, stronger security validation, and reliable LLM evaluation workflows.
Read Today’s Notes
1. Fixing AI Debugging with DOM Snapshots
A new open-source Cypress plugin, cypress-dom-snapshot, addresses a critical debugging gap in AI-assisted test analysis.
Core problem:
Stack traces alone provide insufficient context for LLM-based debugging.
Solution:
Capture and store the full DOM snapshot at the moment of failure, providing:
- Visual context
- Structural hierarchy
- Rendered state of the UI
Result:
When both stack trace and DOM are provided, LLMs can generate significantly more accurate failure analysis.
Testing insight:
AI debugging quality is fundamentally a data engineering problem, not a model intelligence problem.
2. Prompt Injection Testing: From Chaos to Structure
Lasso Security published the first standardized taxonomy for prompt injection attacks.
Key contribution:
- Separates:
- Attack techniques (instruction override, role manipulation, indirect injection, etc.)
- Attacker intent (data exfiltration, bypass, sabotage, manipulation)
Why this matters:
- Enables systematic test suite design
- Moves prompt injection testing beyond random “jailbreaking”
- Supports structured security regression testing for LLM systems
This marks the transition of LLM security testing from ad-hoc exploration to formal QA discipline.
3. Agenta: Professional Workflow for LLM Testing
Agenta’s open-source platform introduced:
- Test set versioning
- Folder organization
- Evaluation SDKs
- Workflow tooling
Impact:
- Enables reproducible testing
- Supports structured regression analysis
- Eliminates spreadsheet-based test management
This represents the industrialization of LLM testing workflows.
4. Microsoft: Native LLM Evaluation for .NET
Microsoft released Microsoft.Extensions.AI.Evaluation, integrating LLM testing directly into:
- MSTest
- xUnit
- NUnit
Capabilities:
- Built-in metrics: relevance, coherence, truthfulness
- Familiar assertion-based testing patterns
- CI/CD-ready architecture
This signals that LLM evaluation is becoming a first-class citizen in enterprise test frameworks.
5. System-Level Insight
Across all stories, one theme emerges:
AI testing success depends less on the LLM and more on test system design.
Effective AI testing systems require:
- Rich contextual data capture
- Structured security taxonomies
- Versioned evaluation workflows
- Native CI/CD integration
Companion Newsletter
Why Most AI Debugging Fails — And How Testers Can Fix It
When testers complain that “LLMs are bad at debugging,” they’re often pointing at the wrong problem.
The real issue is missing context.
A stack trace alone rarely tells the full story. It shows what broke, but not what the user was seeing when it broke. Without that visual and structural context, even powerful LLMs struggle to diagnose UI failures.
That’s why the new cypress-dom-snapshot plugin matters. By capturing the full DOM state at the moment of failure, it provides the missing puzzle piece. When testers feed both the stack trace and DOM snapshot into an LLM, the quality of debugging insight improves dramatically.
But debugging is only part of the story.
Security researchers recently published the first standardized taxonomy for prompt injection testing. Instead of random jailbreak attempts, testers now have a structured playbook of attack techniques and intents. This enables systematic, repeatable security testing for AI systems — something that has been badly missing in most teams.
Meanwhile, tools like Agenta and Microsoft’s native LLM evaluation framework show how quickly AI testing is maturing. We are moving away from ad-hoc scripts and spreadsheets toward professional-grade, versioned, CI/CD-integrated evaluation systems.
What You Can Try Today
On your next flaky UI test failure:
- Capture the full DOM state manually.
- Feed both the stack trace and DOM into an LLM.
- Compare the diagnosis with what you get from stack traces alone.
If you see better results — and you probably will — you’ve just discovered how context engineering can dramatically improve AI-assisted debugging.
In AI testing, the model is only as good as the system that feeds it.
Research & References
- Microsoft .NET Blog – AI Evaluation Frameworks
https://devblogs.microsoft.com/dotnet/
- Agenta AI – Open Source LLM Testing Platform (Official Docs)
https://docs.agenta.ai/
- Lasso Security – Prompt Injection Research Blog
https://www.lasso.security/blog
- S Chathuranga Jayasinghe – AI Debugging & DOM Context (Dev.to Author Page)
https://dev.to/s_chathuranga_j
- OWASP – Top 10 for Large Language Model Applications
https://owasp.org/www-project-top-10-for-large-language-model-applications/
