aspose file tools
The moose likes Testing and the fly likes HttpUnit - Urgent Help Required Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "HttpUnit - Urgent Help Required" Watch "HttpUnit - Urgent Help Required" New topic
Author

HttpUnit - Urgent Help Required

Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113
Hi,

AM in a tight spot...

My scenario -> I want my web aplication to throw me out a web response object.... without HttpUnit going through the flow from scratch

ie,

Testing Scenario:-

Page 1 -> populate values ; Page 2-> test values displayed on page2 with those from page1

HttpUnit Flow:
1. create webrequest for page 1,
2. populate values on page1 from say, property file
3. get Submit of page1 and create webresponse of page 2 out of the response from page1 submit
4. test the page2 webresponse

Required Flow:

1. Page is displayed to the user in the browser as the web application flow.
2. User enters values
3. Application directs request,response to Page2 JSP.
4. Appliaction throws out a webresponse for testing at this point.

How can we possibly construct a WebResponse for this kind of scenario?
regards
Menon


SCJP , SCWCD , SCBCD , SCDJWS
undertaker web
Greenhorn

Joined: Apr 14, 2005
Posts: 1
Hi There

Tell me what web frame work you are using
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hello "undertaker web",

May I ask you to sit down, grab a coffee, read our naming policy, and proceed to change your display name into something compliant with the policy (a real or, at the very least, real-looking name is required).

Thanks. And welcome to the 'ranch!


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HttpUnit - Urgent Help Required
 
Similar Threads
What is an efficient way to implement an entirely AJAX based web app using JSF2?
Trouble using HttpUnit with Struts 2 tabbedpanel
JSF Filter prevent direct access certain page
Question from JWebPlus
populate the form field with the submitted input