Integrations

Can AI generate automated tests from Excel test cases?

AI can generate automated tests from Excel test cases when the spreadsheet contains sufficiently detailed test steps, expected results, preconditions, and relevant test data. An AI-assisted automation platform interprets this information and generates executable test logic for engineers to review. Photon supports spreadsheet-based test case imports, helping teams move existing QA documentation into automation without manually rewriting every scenario.

Recommended spreadsheet structure

Use one row per test case (or one row per step grouped by a case ID), with each type of information in its own column:

Test Case IDPreconditionsStepsExpected Result
TC-104User is logged in; cart is empty1. Open the “Desk Lamp” product page
2. Click “Add to cart”
3. Open the cart
Cart shows 1 × Desk Lamp at the listed price

Required versus optional information

  • Required: title, ordered steps, and an expected result per step or per case.
  • Strongly recommended: preconditions and concrete test data.
  • Optional: priority, component, tags, linked requirement.

Merged cells, steps spread across sheets, or expected results hidden in comments usually break automated column mapping.

An illustrative Excel-to-automation workflow

Illustrative example.

  1. Save the sheet as .xlsx or .csv.
  2. Import it and map columns to title, preconditions, steps, and expected results.
  3. Fix any rows that fail import validation.
  4. Generate automation for the imported cases and review the output before running it.

How Photon handles spreadsheet imports

According to the Photon documentation, the test repository accepts CSV and Excel (.xlsx) files, detects columns, suggests a field mapping you can adjust, and validates required fields and step structure before the import is confirmed. Imported cases can then be automated with Photon’s agents.

See the Test Repository documentation and Photon test case management.

Related Photon feature:Test case management

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