checkup

command module
v0.0.0-...-c0a320a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2017 License: MIT Imports: 6 Imported by: 0

README

Checkup

Checkup

Checkup is E2E testing tool made by Golang.
You can write testcases easily that Syntax is YAML format.

Usage

$ checkup -r http://localhost:4444/wd/hub testcase.yaml

also use remote yamlfile...

$ checkup -r http://localhost:4444/wd/hub https://dl.dropboxusercontent.com/s/8zm9smw00oc/test.yml

Format

  • Type YAML Format at the file.
  • Use XPATH or CSS-Selector to Access the DOM-Element.

Example

testcase:
- name: sample test
  browser: firefox
  selector: xpath # Use "xpath" or "css selector", default is "xpath"
  steps:
    - get: https://code.google.com/p/selenium/wiki/Buck
    - saveScreenshot: sele1.png
    - setElementSelected: 
        target: //*[@id="can"]/option[5]
    - saveScreenshot: sele2.png

Install

$ go get github.com/ktrysmt/checkup

Future

[ ] Support CSS-Selector [ ] Support to select CSS-Selector or XPATH [ ] Add more example source [ ] write Reference for how to use [ ] make steps about StoreXXX command [ ] Use the color in STDOUT for readability

(Optional) Use Selenium-Hub

Run docker to use Selenium-Hub easily in your localhost.

docker ps -aq | xargs docker rm # remove trush at first ...
docker run -d -p 4444:4444 --name selenium-hub selenium/hub
docker run -d --link selenium-hub:hub selenium/node-chrome-debug
docker run -d --link selenium-hub:hub selenium/node-firefox-debug

License

MIT

Author

ktrysmt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/codegangsta/cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
Package cli provides a minimal framework for creating and organizing command line Go applications.
_workspace/src/github.com/tebeka/selenium
Selenium/Webdriver client.
Selenium/Webdriver client.
_workspace/src/gopkg.in/yaml
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL