Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpUnit test....  RSS feed

 
Janarthan Sathiamurthy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain how to run a HttpUnit test....
 
V S
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will require the following files
in your classpath httpunit.jar, tidy.jar
and js.jar ( for javascript testing)
First you then create a new WebConversation object
Then create WebRequest objects
by using the "new GetMethodWebRequest()" construct
get the response for the requests using WebConversation.getResponse(WebRequest)
Then check the forms,tables associated with that WebResponse.
See the api for what methods you can use.
Hope this is helpful.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!