使用带有Java的量角器 [英] Use protractor with Java

查看:167
本文介绍了使用带有Java的量角器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Java上使用Protractor而不是在Node.js上使用。是否可以将Protractor与Java或Python一起使用?我们不想添加其他技术进行测试,并希望使用现有技术。

I want to use Protractor on Java and not on Node.js. Is it possible to use Protractor with Java or Python? We do not want to add another technology for testing and want to use existing technologies.

推荐答案

不幸的是,你没有太多的作为一个选择,因为Protractor是AngularJS的JavaScript测试框架,它通过Node.js分发。

Unfortunately you don't have much of a choice in the matter, as Protractor is a JavaScript Testing framework for AngularJS, it is distributed via Node.js.


我们不想要添加另一种技术进行测试并希望使用现有技术。

We do not want to add another technology for testing and want to use existing technologies.

Protractor是为angularJS应用程序定制的。因此,如果您的应用程序是使用AngularJS创建的,Protractor将提供帮助,因为它内置了对AngularJS页面加载和操作的支持。

Protractor is customized for angularJS applications. So if your application was created using AngularJS, Protractor will help as it has inbuilt support for AngularJS page load and actions.

如果您的应用程序不是构建在Angular之上,您可以在您喜欢的任何其他语言之上使用Selenium WebDriver。

If your application is not built on top of Angular, you can use Selenium WebDriver on top of any other languages you prefer.

Selenium为用户提供了使用Python作为编写测试的媒介的文档,了解有关此内容的更多信息这里

Selenium provides users with documentation on using Python as a medium to write tests, read more about this here.

这篇关于使用带有Java的量角器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆