jellyBeans
jellyBeans

Reputation: 303

Setting maven post build event in TFS 2012 for running Selenium tests in Java

We are an automation test team of 3 SDETs writing E2E Selenium Tests for our web portal using Java and we use Maven as the build tool.

The web product that we test is developed using C# and .NET platform. So, the developers are using TFS 2012 server & TFS controller for the continuous integration of the builds and maintaining their source code.

The code for our Automation Tests live in BitBucket and we use our local machines to run our Maven builds.
In the near future, we will have our own Test Server to run the automation tests.

My question here is: Whenever there is a new build available, the Test server is deployed with the latest build. At that point, we need to trigger our Automation Tests automatically (may be from TFS 2012, but not sure yet) What kind of setup do we need to do to achieve this?

Upvotes: 0

Views: 239

Answers (1)

Cromzinc
Cromzinc

Reputation: 102

I'm not familiar with using TFS as a CI, but the way we do it in teamcity is:

  • The build configuration for the application kicks off to build new changes.
  • When application build is complete and successful it kicks off the build configuration for automation tests.

The way that happens is in the build configuration for automation tests have settings for build triggers, which is set to a successful build of the application.

To make this possible using maven, at least for teamcity, it required a maven plugin so teamcity knows what to do with the custom build command line parameters.

Such as:

mvn clean test

Unfortunately, as I mentioned, I had have an personal experience with TFS CI setup, but I suppose it may be very similiar to how TC and Jenkins CI.

Upvotes: 0

Related Questions