1
votes

We have a test suite automated in Selenium with Java using Maven. Now we have TFS 2015 and we were able to use the Maven task to build the selenium project in Build Definition in TFS 2015.

I have seen several links which describe executing Selenium scripts in C# from TFS Release Definition on a remote machine, but I could not find any information on how the Selenium scripts developed in java can be triggered from TFS Release Definition.

We don't want to re-do the whole automation in C#.

So please can you help me to know how Selenium java scripts can be triggered from TFS 2015 and results can be copied back to the release definition?

1

1 Answers

0
votes

This should similar as this thread: 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.