问题描述
我来知道,硒是UI测试的父亲。
I have come to know that Selenium is the father of UI testing.
现在我的问题是,为什么那么角的团队已经开发量角器。不能在同一作业(即量角器)与硒做了基于AngularJS的Web应用程序?
Now my question is why then Angular team has developed Protractor. Can't the same job (that Protractor does) be done with Selenium for AngularJS based web applications?
此外,人们都在谈论Nightwatch.js了。那么,为什么有像Protracor或Nightwatch这么多的端到端测试库/框架。
Further, people are talking about Nightwatch.js too. So why there are so many E2E testing libraries/frameworks like Protracor or Nightwatch.
推荐答案
量角器结合了强大的工具和技术,如的NodeJS,硒,webdriver的,茉莉花,黄瓜和摩卡。有一堆硒自定义很容易为AngularJS应用测试。加快您的测试,因为它避免了很多休眠,并在测试中等待的需要,因为它优化了睡眠和等待时间。允许测试基于茉莉花组织,从而使您写这两个单位和茉莉花功能测试。它运行在真正的浏览器和浏览器的无头...
Protractor combines powerful tools and technologies such as NodeJS, Selenium, webDriver, Jasmine, Cucumber and Mocha. Has a bunch of customizations from Selenium to easily create tests for AngularJS applications. Speeds up your testing as it avoids the need for a lot of "sleeps" and "waits" in your tests, as it optimizes sleep and wait times. Allows tests to be organized based on Jasmine, thus allowing you to write both unit and functional tests on Jasmine. It runs on real browsers and headless browsers...
您可以在这里找到所有这些信息=> .
You can find all these information here => http://www.thoughtworks.com/insights/blog/testing-angularjs-apps-protractor.
这篇关于使用Selenium的基于AngularJS Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!