How to do it...

  1. Now let's create a TestNG class:
  1. Provide a Class name:
  1. Give a Package name and click on Finish.
  2. The newly created class will look like the following screenshot:
  1. Right-click on the test file and click on TestNG, convert to TestNG.
  2. It will create a testing.xml file that has details about the test suite.
  3. Right-click on Project and click on Run Configurations.
  1. Right-click on TestNG and click on New:
  1. Provide the Project ...

Get Jenkins 2.x Continuous Integration Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.