Example of scenario testing used by selenese-runner with Selenium Hub
HTML Shell
Latest commit 4ae812f Dec 14, 2016 @Leko committed on GitHub Merge pull request #2 from Leko/feat/japanese-support
Japanese support

README.md

selenese-runner with Selenium Hub

CircleCI

Example of headless scenario testing used by selenese-runner with Selenium Hub

Features

  • ✓ Less settings
  • ✓ Support Japanese in screen shots

Getting started

Prerequirement

Install

git clone git@github.com:Leko/example-selenese-runner-with-hub.git
docker-compose build
docker-compose up -d chrome firefox
docker-compose up selenese

More example

# baseurl=https://google.com, Run in Google Chrome
docker-compose run selenese run.sh https://google.com chrome

# baseurl=https://google.com, Run in Firefox
docker-compose run selenese run.sh https://google.com firefox

Directory structure

|-- junit/                # JUnit report
|-- docker/
|   |-- chrome/
|   |   `-- Dockerfile    # Build selenium/node-chrome with japanese support
|   |-- firefox/
|   |   `-- Dockerfile    # Build selenium/node-firefox with japanese support
|   `-- selenese/
|       `-- Dockerfile    # Build selenese-runner runtime
|-- screenshots/
|   |-- all/              # Take screenshot for all step
|   `-- fail/             # Take screenshot for fail step only
|-- test/
|   |-- demo-fail.html    # Example of failure test
|   `-- demo-success.html # Example of success test
|-- circle.yml            # Example of CircleCI settings
|-- run.sh                # Wrapper to run selenese-runner command
|-- selenese.conf         # Config file for selenese-runner
|-- testsuite.html        # Testsuite
`-- user-extension.js     # rollup definition

More information

Please read this article:
Selenium IDEで作ったテストをCLIで動かす方法

Contribution

  1. Fork (Leko/example-selenese-runner-with-hub)
  2. Create a feature branch
  3. Commit your changes
  4. Create new Pull Request to master branch