Use protractor with Java(在 Java 中使用量角器)
问题描述
我想在 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 中使用量角器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Java 中使用量角器


基础教程推荐
- 不推荐使用 Api 注释的描述 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01