Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
695 views
in Technique[技术] by (71.8m points)

tfs - Selenium Java Integration with Team Foundation Server

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

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 has been introduced by the client recently. I would like to know the below in this regards.

  1. How can we update the execution results on Selenium-TestNG in TFS?
  2. Will we be able to run the Selenium scripts from TFS as we do from HP-ALM?
  3. Since I use Selenium-Java, will it be a problem for any integration if possible with TFS. (Reason for asking is that I have heard that TFS uses C#)
  4. Any possible methods how I can integrate these two systems.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 ;)

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.

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...