Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node Front-end automation test framework
JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin fixed unittest: make test
doc Add status accept dismiss method
example Fix done bug.
lib fix accept commond bug
test
.gitignore Fix done bug.
.jshintrc Fix done bug.
.npmignore Update.
.travis.yml fixed unittest: make test
MIT_License Add license
Makefile
README.md Update Readme.
package.json Add status accept dismiss method

README.md

Ghost

Node Front-end automation test framework written in Node.js.
基于Selenium WebDriver和借鉴Camme的Webdriverjs实现。为何不直接采用Webdriverjs,原因有如下:

  1. Camme的代码风格看似沿袭C#
  2. Webdriverjs代码中职责不单一,包含驱动部分和测试部分代码。相对而言,测试部分代码不是那么优秀,所以选择结合mocha完成整个框架。保持各自的职责单一性。
  3. API接口沿袭过去的方式,不太贴合前端。Ghost尽量提供jQuery风格的API给工程师,使得编写自动化测试代码可以更愉快。

Prerequirement

java -jar selenium-server-standalone-2.x.x.jar
  • 如果需要在Chrome上运行自动化脚本,请下载Chrome driver

Installation

npm install webghost

Documentation

Getting Started with Web Ghost
API Documentation

TODO

  1. 熟悉webdriverjs.
  2. 利用工具类跑通交互行为.
  3. 集成mocha/should.
  4. 组织成框架.
  5. 写cases.
  6. 更新文档
Something went wrong with that request. Please try again.