Link to home
Start Free TrialLog in
Avatar of JianJunShen
JianJunShen

asked on

HTTPUNIT, visit another page while stay in same session

HI: I am using HTTPUnit now to test a web application. The application needs authentication. I use HTTPUNIT to get first page and set parameters in the form and logged in, now I want the httpunit to visit the other pages while keeping the session. I try to use WebResponse newResponse(urlconnection), but it directs me to login page it seems the HTTPUNIT did not remember  my previous authentication.

Domain:

After login in, since I already have url lists, I want http unit to visit url lists one by one. And then I record its memory usage. I do not want to visit first page, and fetch page and find link and open the link. Since I know url, I want HTTP unit visit that url directly.

Any good solution?

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JianJunShen
JianJunShen

ASKER

The answer is extremely fast and accurate. Highly appreciated for such kind of help.
:-)