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
- Make sure you have plugin TestNg installed to eclipse .If not then goto Help>Market Place>Enter "testng" and search.
- Select testNG for Eclipse and click on Install >Select all options > restart Eclipse after installing
- goto Project (title bar) > Clean
- 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