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 ID | Preconditions | Steps | Expected Result |
|---|---|---|---|
| TC-104 | User is logged in; cart is empty | 1. 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.
- Save the sheet as .xlsx or .csv.
- Import it and map columns to title, preconditions, steps, and expected results.
- Fix any rows that fail import validation.
- 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.