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?

JianJunShenAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJConnect With a Mentor Commented:
Use the same WebConversation for each
0
 
CEHJConnect With a Mentor Commented:
(or WebClient)
0
 
JianJunShenAuthor Commented:
The answer is extremely fast and accurate. Highly appreciated for such kind of help.
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.