Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difference bwtween totoro-server and protractor? #95

Open
mkatsoho opened this issue Jul 13, 2015 · 1 comment
Open

What is the difference bwtween totoro-server and protractor? #95

mkatsoho opened this issue Jul 13, 2015 · 1 comment

Comments

@mkatsoho
Copy link

I discover totoro from JingJS conf. Actrually this is not a issue. It is just a question. And I do not say protractor/totoro is good or bad.

Protractor - https://angular.github.io/protractor/#/

Protractor can drive kinds of browsers plus phantomjs via webdriver protocol, just as totoro. Can you share more? Thanks.

@fool2fish
Copy link
Contributor

发现你会讲中文?回答这种复杂的技术问题,英文水平有限,那我中文回复下:)

测试当中有几个比较容易搞混淆的概念,我们先明确下:

  1. 测试框架:帮助开发者进行测试的工具,比如 jasmine,mocha 之类得
  2. 浏览器驱动程序:可以通过编写代码操作浏览器的工具,不同的工具对浏览器的操控程度是不以一样得,最知名也是最重的就是 selenium,它操作浏览器的部分被成为 webdriver,目前有各种语言的 webdriver 客户端实现,protractor 首页的范例代码就是典型的浏览器驱动代码
  3. 测试工具:使用指定的浏览器进行测试,并发送回测试结果的工具

瞄了一眼 protractor 的文档,我觉得两者的区别大体在于:

  1. protractor 是测试框架、测试驱动程序(例如:browser.get('https://angularjs.org');)和测试工具的集合,并且针对特定的前端框架,而 totoro 只是一个测试工具,并不限定测试框架,使用的是更简单稳定的方案来运行测试
  2. 由于protractor 显示的使用的 webdriver,理论上还能进行一些功能测试,但 totoro 专注于单元测试
  3. 从使用难度上来说,protractor 必须学习 webdriver 的那一套语言,学习成本较高,但 totoro 使用的就是大家熟悉的浏览器端 js 和测试框架

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants