In Module17, I observed that for some exercises we used Main function and for others we used TestNG Annotations. Webuy.com - uses TestNG Annotations Dice.com - normal main function without TestNG Login details from excel - uses TestNG Annotations.
As I observe, when we are required to read from Excel file, we are using the TestNG Annotations. Is reading from excel more convenient in TestNG rather than normal main function?
Is there any reason for using TestNG annotations without using the normal main function?
M
Replied on 21/07/2016
testng is used when you need to build tests cases.
for exercises it really doesn't matter because you're learning selenium. very little to do with reporting,emailing Jenkins etc.
keep on watching the modules you'll understand why we need testng.