Performance Testing for an Existing Web Application - Useful Tools?

I support a web application with performance issues.

I want to record a series of actions and then reproduce these actions after making the changes and compare the page load time so that I can quantify the performance.

The Selenium IDE does what I need to record and play back actions, but I have not found an easy way to record timings.

Is there a good way to record and compare page load times using Selenium? Is there a better tool to use?

+6
performance selenium
source share
7 answers

The Net tab in Firebug can help you measure and find out what exactly affects the load time of a website. You do not even need to have access to the server to use it. YSlow gives you very cool tips on improving the overall load and feel of a particular site. I personally use the Net tab to determine possible load times, maybe these are large images, javascripts css or bad delays. I have never heard of an automatic tool for this, AFAIK selenium helps you build integration tests that will help you ensure that certain parts of the application work, but I'm not sure that it can also be used as a profiling tool. Hope this helps

+2
source share

You might want to take a look at BrowserMob ( http://browsermob.com/ ). You can download your test scripts Selenium IDE and run them on your website. Founder - creator of Selenium RC, Patrick Lightboyt.

+5
source share

Depending on the complexity of your application, you may use JMeter ASF.

This is a pure Java application for load testing with many graphical plugins, protocol support, controllers, reporting infrastructures, etc. You can choose what data should be written to the log, how to display it, how to output it to a file, etc. He will even put it in CSV or in various XML-based formats.

This is ugly but workable if your application is not too heavy with JavaScript ... It does not include a virtual machine capable of running it, and you will have to do things like AJAX using hacks (such as regular expressions and manual responses ..) This is open source, so you can add additional controllers if you need one too.

However, to do what you want (record actions, play, display a graph / save the results), this should be enough.

+2
source share

To answer this question, I would like to use the IIS Resource Toolkit for several things.

0
source share

I usually measure the time that each request takes with System.currentTimeMillis and logs it at the debug level in the development and testing environment. Then I run selenium or JMeter and then process the logs to get different statistics. I take slower queries and keep drilling them to see where the slowness and bottleneck are.

Alternatively, instead of doing this in the code itself, you can either write your own selenium scripts, or use the script that creates the recorder and add some entries to the generated code.

UI performance is a completely different beast. I rely heavily on YSlow for this.

0
source share

I would look at Faban .

Simple setup and use for a simple case, emphasizing one page with "feh".

For more complex usage patterns, you can create your own patterns to simulate the full load of your site.

0
source share

Here is a simple tool that works: test_it . Essentially

  • your test machines must have .net 4.0
  • you get binary files
  • using fiddler you check the http packets that are distributed during test scripts
  • Describe these packages in a parameter text file using simple syntax
  • indicate the number of requests / sec you want
  • run binary files
  • do not forget to follow the test machine

Information here: rextester

0
source share

All Articles