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 中使用量角器
基础教程推荐
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 将 double 转换为 Int,向下舍入 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- JPA惰性列表上的流 2022-01-01
