Skip to main content

Tutorial: Create Automated Tests with Chathai (Step-by-step)

1. Download or open the Playground

2. Create the Excel Template

Download the example template
or create a new one following this example:

TestScenario(des)Test case(IT)Describeonlyhookcommandvalue/target
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suitevisithttp://localhost:3000
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suitegetinput[name="task"]
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suiteskiptypeLearn Cypress
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suitebeforegetbutton[type="submit"]
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suiteclick
Simple Todo AppLoads the app and adds a todoOpen the site before each test in the suitecontainsLearn Cypress

3. Generate the Cypress Script

npx chathai generate ./xlsxtemplate/chathai-templateV.1.0.0.xlsx ./cypress/e2e

4. Open the Cypress Playground

npx cypress open

Select the generated spec file and run the test.

5. View Results

  • View results via Cypress UI
  • Create an HTML report with
    npx chathai export-report

Notes

  • You can edit the Excel and re-generate anytime.
  • Try changing selectors or adding more test cases.

Playground / Online Demo


Tutorial Video (if available)