问题描述
我想在 Java 而不是 Node.js 上使用 Protractor.是否可以将 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 中使用量角器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)