Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 21-03-2009
Join Date: Mar 2009
Posts: 92
stresstest and tracking time opening webpage

Hello everyone,

My intention is to test the time required for a server for processing a Web page. In short I want java code to implement a solution similar to the following:
start = timestamp
load website
end = timestamp

I need these values to track the average time to access the web resource. The process will run a variable number of times, so you can have a collection of data to be produced.
URLConnection conn = myUrl.openConnection (); 
  BufferedReader input = new BufferedReader (new InputStreamReader (conn.getInputStream ())); 
  input.close ();

I get times around 60ms, when the web page from browser takes about 2.5 second, to open up. Could you recommend how to better manage the open / download page by simulating a web browser. Taking into account that I can not afford to open the default browser.

If the solution via code is not workable some knows tools to integrate a java?
I hope to be clear, Thanks for the help
Reply With Quote
Old 21-03-2009
Join Date: Apr 2008
Posts: 2,567
Re: stresstest and tracking time opening webpage

If you want the HTML is rendered (and the Javascript code executed) you need to use some force rendering engine (in. NET is the WebBrowser control that relies on IE, not so in Java).
Reply With Quote
Old 21-03-2009
Join Date: May 2008
Posts: 2,786
Re: stresstest and tracking time opening webpage

OpenSTA is a distributed software testing architecture designed around CORBA, it was originally developed to be commercial software by CYRANO. The current toolset has the capability of performing scripted HTTP and HTTPS heavy load tests with performance measurements from Win32 platforms. However, the architectural design means it could be capable of much more.
The applications that make up the current OpenSTA toolset were designed to be used by performance testing consultants or other technically proficient individuals. This means testing is performed using the record and replay metaphor common in most other similar commercially available toolsets. Recordings are made in the tester's own browser producing simple scripts that can be edited and controlled with a special high level scripting language. These scripted sessions can then be played back to simulate many users by a high performance load generation engine. Using this methodology a user can generate realistic heavy loads simulating the activity of hundreds to thousands of virtual users.
Reply With Quote

  TechArena Community > Software > Software Development
Tags: , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "stresstest and tracking time opening webpage"
Thread Thread Starter Forum Replies Last Post
Pages take few seconds of time while opening in aurora Ham Technology & Internet 8 14-09-2011 10:56 AM
Having trouble in opening webpage using Toshiba satellite A665-S186 laptop Charmi Patel Portable Devices 4 27-07-2011 01:36 AM
Real Time GPS tracking for Cars? Susquehannock Technology & Internet 4 06-12-2010 10:18 PM
Dreamerweaver CS3 get closed every time after opening Cassey Windows Software 5 28-01-2010 03:58 PM
How can I display system date & time on my webpage? JangoRap Software Development 3 16-02-2009 07:40 PM

All times are GMT +5.5. The time now is 10:43 AM.