Re: Performance Expectations
Russell Gold <[email protected]> Tue, 18 Aug 2009 04:25:24 -0400
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Are other requests taking this long? If not, it may well be happening
inside Tomcat. Generally, if I am worried about speed and I am
specifically testing servlets, I will use ServletRunner and bypass the
web server entirely.
On Aug 13, 2009, at 2:05 PM, Andy Meneely wrote:
> Hello,
> We've been using HTTPUnit in our Software Engineering class for a
> few years now, and we're pretty happy with it. However, our http
> tests are pretty slow. We know that the system itself is not
> particularly slow - our regular unit tests pass quickly and the
> application itself is not slow. In particular, our login utility
> method seems to be a major contributor:
>
> public WebConversation login(String username, String password)
> throws Exception {
> //...some code...
> WebConversation wc = new WebConversation();
> WebResponse loginResponse = wc.getResponse(ADDRESS);
>
> WebForm form = loginResponse.getForms()[0];
> form.setParameter("j_username", username);
> form.setParameter("j_password", password);
>
> WebResponse homePage = loginResponse.getForms()[0].submit();
> //....more code...
>
> This chunk of code takes 3-4 seconds each time. Each of the two http
> requests are about 1.5-2 seconds. For a 120 tests it takes about
> 8-10 minutes. We'd really like to speed it up if we can.
>
> We're using Tomcat as our server. I've tried things like disabling
> "acceptGZip", disabling scripting (which is not always an option),
> and accepting images as an alt text - no change. Am I missing a
> parameter I can tune? Is there a way I can further diagnose the
> problem?
>
> Thanks!
>
> -Andy
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html
>!
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop