Tests Suites

A test suite is a series of tests. Tests are defined externally and imported into a suite.

Syntax

A test suite is a YAML list.

- "{import-path-1}"
- ...
- "{import-path-N}"

-------------------------

import-path-*:
    <string>, a path to the file to import, relative to the location of the suite

Example

# examples/test/google-search-query-literal.yml
config:
  browsers:
    - chrome
  url: https://www.google.com

"verify Google is open":
  assertions:
    - $page.url is "https://www.google.com"
    - $page.title is "Google"

"query 'example'":
  actions:
    - set $".gLFyf.gsfi" to "example"
    - click $".FPdoLc.VlcLAe input[name=btnK]"

  assertions:
    - $page.title is "example - Google Search"
# examples/test-suite/google-open-and-query.yml
- "../test/google-search-query-literal.yml"