Skip to main content

Advanced Guide

Batch Mode

Chathai supports generating multiple Excel files within a single folder.

npx chathai generate ./xlsxtemplate ./output

This will generate Cypress tests for every .xlsx file in the specified folder.


Custom Workflow

  • Set default template/output directories using --template-dir and --output-dir.
  • Integrate with GitHub Actions, GitLab CI, or Jenkins.
    Example workflow:
    - name: Generate Cypress tests
    run: npx chathai generate ./xlsxtemplate ./cypress/e2e
    - name: Run Cypress
    run: npx cypress run
  • You can extend templates as needed.

Troubleshooting

  • Error: Invalid template format
    → Verify that all required columns exist in the Excel file.
  • Error: Excel file not found
    → Check the path and filename.
  • Error: Failed to create files
    → Check the output folder permissions.
  • Need support?
    • Open an issue in the GitHub repository
    • Or see the FAQ in this documentation