Wednesday, March 16, 2016

Gradle : Debugging Gradle Project

Gradle : Debugging Gradle Project



Since my last Analysis I found fairly less information on Debugging Gradle in my line of work which is specifically on Automation .

So the most convenient way was Debug using TestNG rather than Gradle .As I prefer using TestNg as my Automation Framework over Junit so there will be Testng.xml in the project folder (or similar xml file ).


One can directly Start debugging  by :Rt ck on testng.xml > Debug As >TestNg


If you are getting any error make sure you do these.Assuming you are using Eclispe
  1. Make sure you have plugin TestNg installed to eclipse .If not then goto Help>Market Place>Enter "testng" and search.
  2. Select testNG for Eclipse and click on Install >Select all options > restart Eclipse after installing
  3. goto  Project (title bar) > Clean
  4. Rt ck on Project > Properties >Java Build Path>Add Library > Select TestNG >Ck on OK

Now user should be able to Debug for Gradle projects using Testng as well using Rt ck on testng.xml > Debug As >TestNg .



No comments:

Post a Comment