End To End Testing framework.
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
action
example
utils
.gitignore
LICENSE
README.md
cli.go
main.go
main_test.go
player.go
version.go

README.md

sprinkler

[WIP]

End To End Testing framework.

Get started

Install sprinkler

OSX:

$ brew install hokaccha/tap/sprinkler

Other platforms:

Dowonload from releases

Setup selenium

OSX:

$ brew install selenium-server-standalone
$ selenium-server

run hello.yml

# hello.yml
scenarios:
- name: Hello sprinkler!
  actions:
  - visit: http://www.google.com
  - assert_title: Google
  - wait_for: input[type="text"]
  - input:
      element: input[type="text"]
      value: Hello
  - submit: form[name="f"]
  - wait: 1000
  - assert_text:
      element: "#main"
      contain: Hello

Run it!

$ sprinkler hello.yml

See more examples.

License

MIT