java - 从 TFS 2015 中的发布定义执行 Selenium java 脚本

标签 java selenium tfs

我们有一个使用 Maven 在 Selenium 和 Java 中实现自动化的测试套件。 现在我们有了 TFS 2015,我们可以使用 Maven 任务在 TFS 2015 的构建定义中构建 selenium 项目。

我看到了几个描述在远程计算机上从 TFS 发布定义执行 C# 中的 Selenium 脚本的链接,但我找不到任何有关如何从 TFS 发布定义触发用 java 开发的 Selenium 脚本的信息。

我们不想用 C# 重新进行整个自动化。

您能帮我了解如何从 TFS 2015 触发 Selenium java 脚本并将结果复制回发布定义吗?

最佳答案

这应该与此线程类似:Selenium Java Integration with Team Foundation Server

First, let's divide and conquer. You want TFS integration with Java, TFS doesn't care if you use Selenium or another framework. Second, you want to read TestNG results into TFS. As it's possible, I'm not sure it's a good solution and maybe you should moving to C# and .NET in your testing.

So to answer your questions:

  1. You can either read xUnit results to TFS, or implement your own IReporter and read it with TFS API.
  2. Running your scripts is simply running Java with TFS.
  3. Yes TFS is natively for C#, but there are extensions for Java, so integration is possible, though it's not as smooth as working with something native for your programming language.
  4. TFS and Java can be integrated as explained above.

关于java - 从 TFS 2015 中的发布定义执行 Selenium java 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51936039/

相关文章:

java - JSONException 字符串无法转换为 JSONObject

python - 如何使用 selenium python 替换文本字段中的默认值?

selenium - 使用 Selenium WebDriver 获取网页在屏幕上的位置

git - 让开发人员在提交之前 checkout (获取最新更改)

java - 检查 tpl-if-tag,gxt 模板中的字符是否为中文

java - 如何在客户端系统中制作事件

java - 查找当年询问最多次数的标签名称并打印计数

tfs - checkin 后创建分支 - TFS 2010

c# - 使用 TeamFoundationServerFactory 进行缓慢的用户身份验证

java - 在android中使用JSON解析数据