aspose file tools*
The moose likes Testing and the fly likes HttpUnit Printing problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "HttpUnit Printing problem" Watch "HttpUnit Printing problem" New topic
Author

HttpUnit Printing problem

Rohan Deshmkh
Ranch Hand

Joined: Aug 31, 2012
Posts: 127


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

Joined: Jan 13, 2010
Posts: 80
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

Joined: Jan 13, 2010
Posts: 80
oops one more catch

The method name must be testHomepage or annotation @Test
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpUnit Printing problem