Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testng And Maven Error Log. Can not understand

 
kartik krishnan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am a newbie to both Maven and Testng. So I hope this is not a silly question.

I am trying to run unit tests using TestNg and using Maven 2 . I am getting the following error, that I can not understand.

If anyone know what is wrong, then please help me.

Thanks,




My testng is directly under Project Tree and is as follows.



The Maven 2 Set up.


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kartik,
Since the stack trace refers to TestNG classes, it looks like the Maven part is correct. Maven is finding the TestNG jar and kicking off TestNG.

The stack trace also gives us a clue that TestNG is looking for a number in an XML file where you currently have the string "true." The testng.xml file comes to mind. Then go through any place you have "true" and confirm that is allowed (per the documentation.) One thing I've done a few times was set the verbose attribute to "true" instead of "1". It's a common mistake.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic