在AngularJS中,e2e测试的量角器有哪些替代方案?

时间:2022-12-12 01:20:05

Right now, in September of 2014, Protractor seems like the only viable framework for doing end to end tests in angular. Other than working with barebones WebDriver, is there another framework out there I could use? If not, is there a specific reason for that?

目前,在2014年9月,Protractor似乎是以角度进行端到端测试的唯一可行框架。除了使用准系统WebDriver之外,还有其他我可以使用的框架吗?如果没有,是否有具体原因?

3 个解决方案

#1


5  

As I said in my comment above, the alternatives are limited because of the difficulty to develop and maintain a testing framework. I forgot to mention that juggling with browser specific behaviors is also a problem.

正如我在上面的评论中所说,由于难以开发和维护测试框架,因此替代方案是有限的。我忘了提到浏览器特定行为也是一个问题。

However you might take a look at Nightwatch.js. alecxe's answer explain why you should favor Protractor if your app is angular-based.

不过你可以看看Nightwatch.js。 alecxe的答案解释了如果你的应用程序是基于角度的,你应该赞成Protractor。

#2


8  

There is a new alternative to Protractor and Selenium. It is called Cypress.io

Protractor和Selenium有一个新的替代品。它被称为Cypress.io

Maybe you could take a look https://www.cypress.io/

也许你可以看看https://www.cypress.io/

#3


3  

In company we use testcafe.
Very simple installation, usefull selector engine, smart autowaits, etc.

在公司我们使用testcafe。非常简单的安装,有用的选择器引擎,智能自动化等。

Also we found bug https://github.com/DevExpress/testcafe-hammerhead/issues/942 and it has been fixed for 2 daysю

我们还发现了错误https://github.com/DevExpress/testcafe-hammerhead/issues/942并且已修复2天

#1


5  

As I said in my comment above, the alternatives are limited because of the difficulty to develop and maintain a testing framework. I forgot to mention that juggling with browser specific behaviors is also a problem.

正如我在上面的评论中所说,由于难以开发和维护测试框架,因此替代方案是有限的。我忘了提到浏览器特定行为也是一个问题。

However you might take a look at Nightwatch.js. alecxe's answer explain why you should favor Protractor if your app is angular-based.

不过你可以看看Nightwatch.js。 alecxe的答案解释了如果你的应用程序是基于角度的,你应该赞成Protractor。

#2


8  

There is a new alternative to Protractor and Selenium. It is called Cypress.io

Protractor和Selenium有一个新的替代品。它被称为Cypress.io

Maybe you could take a look https://www.cypress.io/

也许你可以看看https://www.cypress.io/

#3


3  

In company we use testcafe.
Very simple installation, usefull selector engine, smart autowaits, etc.

在公司我们使用testcafe。非常简单的安装,有用的选择器引擎,智能自动化等。

Also we found bug https://github.com/DevExpress/testcafe-hammerhead/issues/942 and it has been fixed for 2 daysю

我们还发现了错误https://github.com/DevExpress/testcafe-hammerhead/issues/942并且已修复2天