Skip to main content

Your first test case

If you run the Quick start, you probably noticed that a Lila test is just a YAML file with human readable steps.

Each step can be:

  • goto
  • verify
  • click
  • type
  • hover
  • search
  • login
tip

For more details about the step instructions, read the Instructions section

Starting template

template.yaml
tags:
- foo
- bar

steps:
- goto: <my-app>
- login:
...
  1. Install the CLI:
# python >= 3.11 required
pip install lilacli
  1. Run init:
lila init
  1. Create an account in https://app.lila.dev
  2. Create a new team and copy the default API Key
  3. Run
LILA_API_KEY=<api-key> lila run test

Ready! Open the link provided to see the test results.