Selenium Java 与 Team Foundation Server 的集成 [英] Selenium Java Integration with Team Foundation Server

查看:28
本文介绍了Selenium Java 与 Team Foundation Server 的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 Java 进行 Selenium 自动化,以满足我的测试自动化需求.到目前为止,我使用 TestNg 进行报告.

I am currently working on Selenium Automation using Java for my test Automation needs. I use TestNg for my reporting as of now.

之前没有使用任何报告工具进行集成,我正在 JIRA 中手动更新 TestNg 结果.

No integration was done earlier with any tool for reporting and I was manually updating the TestNg results in JIRA.

Visaul Studio Team Foundation Server 最近由客户推出.我想知道以下这方面的信息.

Visaul Studio Team Foundation Server has been introduced by the client recently. I would like to know the below in this regards.

  1. 我们如何在 TFS 中更新 Selenium-TestNG 的执行结果?
  2. 我们能否像从 HP-ALM 一样从 TFS 运行 Selenium 脚本?
  3. 由于我使用 Selenium-Java,如果可能的话,与 TFS 进行任何集成都会有问题吗?(问的原因是听说TFS用的是C#)
  4. 我如何集成这两个系统的任何可能方法.

推荐答案

您的问题非常广泛,需要大量研究和概念验证以验证它是否适合您的需求.我希望您不是在寻找解决所有问题的代码片段;)

Your question is very broad and requires lots of research and perhaps a proof of concept to verify that it suits your needs. I hope you're not looking for a code snippet to fix all your problems ;)

首先,让我们分而治之.您希望 TFS 与 Java 集成.TFS 不在乎您是否使用 Selenium 或任何其他框架.其次,您想将 TestNG 结果读入 TFS.可能的话,我不确定这是一个好的解决方案,也许您应该考虑一下关于迁移到 C# 和 .NET 进行测试.

First, let's divide and conquer. You want TFS integration with Java. TFS doesn't care if you use Selenium or any other 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 think about moving to C# and .NET for your testing.

所以回答你的问题:

  1. 您可以将 xUnit 结果读取到 TFS,或实现你自己的 IReporter用TFS API读取.
  2. 运行脚本只是使用 TFS 运行 Java.
  3. 是的,TFS 本身就适用于 C#,但有针对 Java 的扩展,因此集成是可能的,尽管它不如使用适用于您的编程语言的本机内容那样顺利.
  4. TFS 和 Java 可以如上所述进行集成.

这篇关于Selenium Java 与 Team Foundation Server 的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆