martes, 17 de noviembre de 2015

Selenium and TestNg integrate to Jenkins

In previous tutorial I explained about Jenkins and how to create a job, add credentials, install plugins. Please review the last tutorial.  http://marisolchambiarrosquipa.blogspot.com/2015/10/selenium-and-junit-integrate-to-jenkins.html 

The repository that I am using is the following https://github.com/MarisolChambiArrosquipa/antProjectWithTestng.git

We will use the following test case

TestNg file

Ant build file





Install plugins 

  • install gitHub plugin
  • install testNg plugin



Set up Job

Create a new job





 Put the gitHub project


Click on Git and put the repository url and add a credential


Specify the ant build file

Add post-build action, after the execute the build, it will generate a report TestNG results


We have to specify the route where will be generated the TestNG results



Build project


Console output