java - Selenium testing in a continuous integration pipeline
问题描述
I have a Selenium test written in the Java language. I want to integrate these tests with the VSTS Continuous Integration Pipeline build.
When the build happens these Selenium tests should run.
What tasks should be added to the CI & configure the Selenium tests?
Please also provide URLs for details.
I searched on Google, but most of the Selenium tests used are written in .NET.
解决方案
如果测试需要以交互方式运行,您需要设置一个具有交互模式的私有构建代理。(例如在 Windows 上部署一个代理),然后通过这个构建代理运行测试。
有可以运行 java 测试的 Maven 任务。查看这篇文章以获取更多信息:使用 VSTS 测试 Java 应用程序
推荐阅读
- php - Laravel 8 中的电子邮件验证处理程序
- java - 应用程序被销毁时不会出现通知
- python - Python 错误:未解决的导入 'tensorflow.python.keras.layers'Python(未解决的导入)
- android - 使用 webview 下载文件
- c# - 为什么 action 方法不接受来自 ajax 调用的参数?
- java - 如何在 postgres 和 Hibernate/Spring 中使用 LIMIT 子句
- php - 如何在前端供应商仪表板中显示上传的图像?
- javascript - 如何在 react-redux 中调度 .then()
- spring - 如何在 Spring 数据存储库中挂钩所有成功的插入、更新和删除
- python - Django queryset 每年总和的前 3 名