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

HttpUnit Printing problem

 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above testCase in HtmlUnit compiles fines and gives Runs:1/1 but why it does not print the titleText to the console even if i have added System.out.println().
 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way is to put a break point and debug what the value is coming up there.

It might be of two reasons

1)title value must be null
2)check in eclipse console and server console as well.
 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops one more catch

The method name must be testHomepage or annotation @Test
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic