This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Testing and the fly likes JWebUnit Non HTML content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JWebUnit Non HTML content" Watch "JWebUnit Non HTML content" New topic
Author

JWebUnit Non HTML content

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

We are using jwebunit v3 to test our webpages.
but in one particular test I am somtimes getting a runtime exception "Non HTML content" in the getCurrentPage method. it is always exactly at the same point, but not all the time (damn what is that word).

I am guessing it is because it is a large complicated test (so not able to produce a small snappy example).

has anyone else had this? as I can't find a single question about it in google.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

An intermittent error without any code isn going to be virtually impossible to answer. And I agree reams of code isn't better.

I think you'll have to do the traditional troubleshooting. Keep making it smaller until the problem goes away (in which case you know specifically where it lies) or you have a small example.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

I was hoping for a miracle, "oh yes I had that it was because...".

This isn't a high enough priority at work for me to be allowed to spend the hours it would take to issolate it.

and thank you Intermittent, thats the word.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JWebUnit Non HTML content
 
Similar Threads
j2ee testing for beginner
how to test servlets
Testing the UI
Easy way to parse HTTP response
Open source testing tools- web applications