GithubHelp home page GithubHelp logo

luanxiangming / sephora_uirecorder Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 4.59 MB

Frontend automated testing by leveraging UIRecorder

JavaScript 99.95% Shell 0.04% Batchfile 0.02%
uirecorder frontend mocha macaca

sephora_uirecorder's Introduction

image

环境准备

  1. 安装Node.js: https://nodejs.org/ (version >= v7.x)
  2. 配置权限: sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} (Mac, Linux)
  3. 安装chrome: https://www.google.com/chrome/
  4. 安装UI Recorder: npm install uirecorder mocha -g
  5. 编辑~/.npmrc: 添加registry = https://registry.npm.taobao.org
  6. 进到项目根目录安装依赖: npm install
  7. 安装selenium-standalone: node_modules/selenium-standalone/bin/selenium-standalone install
  8. 启动服务器(运行测试需要): node_modules/selenium-standalone/bin/selenium-standalone start
  9. 安装homebrew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  10. 安装GraphicsMagick(图片比对): brew install graphicsmagick

chromedriver与chrome版本对应

http://www.cnblogs.com/alisapan/p/6428695.html

UIRecorder PC使用手册

https://github.com/alibaba/uirecorder/tree/master/doc/zh-cn

Get more info: http://uirecorder.com/

公共脚本(*.mod.js)

https://github.com/luanxiangming/sephora_uirecorder/blob/master/commons/commons.md

测试脚本(*.spec.js)

https://github.com/luanxiangming/sephora_uirecorder/blob/master/test_cases/cases.md

How to run all test cases?

  1. npm install
  2. source run.sh ( Linux|Mac ) or run.bat ( Windows )

How to run specific test case?

  1. npm install
  2. source run.sh ( Linux|Mac ) or run.bat ( Windows ) test_cases/home.spec.js

How to dock jenkins?

  1. Add commands

     source ./install.sh
     source ./run.sh
    
  2. Add reports

    JUnit: reports/index.xml

    HTML: reports/

sephora_uirecorder's People

Contributors

luanxiangming avatar

Stargazers

 avatar  avatar

Watchers

 avatar

sephora_uirecorder's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.