This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 34095
337
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