E2E测试之Headless browser容器化

目的

1
We recommend against using PhantomJS for tests with Protractor. There are many reported issues with PhantomJS crashing and behaving differently from real browsers.

Docker

安装

1
docker pull webnicer/protractor-headless

Protractor End to End Testing

Protractor

1
2
Protractor is an end-to-end test framework for AngularJS applications.
Protractor runs tests against your application running in a real browser, interacting with it as a user would.

是什么

功能

  • 模拟真实的用户操作行为
  • 针对AngularJS中的Element不需要做特殊的处理,普通HTML元素也同样支持
  • 智能等待,不需要为页面中的加载和同步显示做特殊的等待时间处理
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×