Agentic Testing

How can AI agents turn acceptance criteria into automated tests?

AI agents can turn acceptance criteria into automated tests by identifying expected behaviors, extracting test conditions, generating scenarios, and translating those scenarios into executable automation. Clear acceptance criteria improve the quality of generated tests, while ambiguous requirements still need human clarification. Photon's agentic automation approach helps connect requirements, test case generation, and automation code creation while preserving engineering review checkpoints.

Extracting test conditions from acceptance criteria

Each criterion contains one or more conditions: an input, a starting state, and an expected outcome. Agents split compound criteria and list each condition separately so it can be tested on its own.

Generating positive, negative, and boundary scenarios

  • Positive – the rule applies as written.
  • Negative – the rule should not apply.
  • Boundary – values at and just around a limit.

Reviewing coverage

Before automation, a reviewer checks the scenario list against the criteria: every criterion is covered, no rules were invented, and open questions go back to the product owner.

Turning approved scenarios into automation

Only approved scenarios become automated tests, so ambiguity in the requirement is resolved before it is encoded in the suite.

Example: an e-commerce discount rule

Illustrative example.

Given a cart subtotal of $100 or more, when the customer applies code SAVE10, then a 10% discount is applied.

  • Positive: subtotal $150 → $15 discount.
  • Boundary: subtotal exactly $100 → $10 discount; subtotal $99.99 → no discount.
  • Negative: subtotal $50 → no discount.
  • Open question: is the threshold checked before or after other discounts? The criterion does not say, so it goes back to the product owner.

How Photon supports this

Photon’s agents take requirements, user stories, or product specs as input, build test scenarios, check coverage, and generate automation code, with engineers reviewing the code before tests advance. Photon test case management can also turn linked user stories into structured test cases with steps and expected results.

See Photon agentic automation.

Related Photon feature:Agentic automation

Your test cases. Real automation.

Send us 10 of your hardest test cases. See how Photon turns them into automation in a live demo.

See Photon in action