Difference between revisions of "RAP/LoadTesting"

From Eclipsepedia

< RAP
Jump to: navigation, search
(New page: | RAP wiki home | [http://eclipse.org/rap RAP project home] | =DRAFT Load testing / stress testing of RAP applications= This is a brief example on how to do load testing / stress...)
 
m (Recording a test)
Line 8: Line 8:
 
JMeter allows to record tests by adding a proxy to your browser and simply record the user interactions with the server. This [http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf Introduction (PDF)] is very useful for getting started with JMeter.
 
JMeter allows to record tests by adding a proxy to your browser and simply record the user interactions with the server. This [http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf Introduction (PDF)] is very useful for getting started with JMeter.
  
This is a sample proxy configuration that you can load into JMeter 2.3.1.
+
This is a sample proxy configuration that you can load into JMeter 2.3.2.
  
 
There are a couple of hints that you need to take into account for recording RAP application tests:
 
There are a couple of hints that you need to take into account for recording RAP application tests:
* Re-Start the browser before recording a test (or make otherwise sure that you are starting with a NEW session)
+
* Re-Start the browser before recording a test (or make otherwise sure that you are starting with a NEW session, e.g. by deleting the cookies)
 
* After recording your test you need to eliminate duplicate requests to the UICallbackServiceHandler (always the second request)
 
* After recording your test you need to eliminate duplicate requests to the UICallbackServiceHandler (always the second request)
  
 
==Running a test==
 
==Running a test==
 
* When running the tests with multiple threads you need to include an HTTP Cookie Manager (Please note that there is a bug in JMeter 2.3.1 for clearing cookies for multiple runs / iterations; see [http://markmail.org/message/bis6om3wnpqtqin5])
 
* When running the tests with multiple threads you need to include an HTTP Cookie Manager (Please note that there is a bug in JMeter 2.3.1 for clearing cookies for multiple runs / iterations; see [http://markmail.org/message/bis6om3wnpqtqin5])

Revision as of 02:21, 26 September 2008

| RAP wiki home | RAP project home |

DRAFT Load testing / stress testing of RAP applications

This is a brief example on how to do load testing / stress testing of RAP applications with JMeter.

Recording a test

JMeter allows to record tests by adding a proxy to your browser and simply record the user interactions with the server. This Introduction (PDF) is very useful for getting started with JMeter.

This is a sample proxy configuration that you can load into JMeter 2.3.2.

There are a couple of hints that you need to take into account for recording RAP application tests:

  • Re-Start the browser before recording a test (or make otherwise sure that you are starting with a NEW session, e.g. by deleting the cookies)
  • After recording your test you need to eliminate duplicate requests to the UICallbackServiceHandler (always the second request)

Running a test

  • When running the tests with multiple threads you need to include an HTTP Cookie Manager (Please note that there is a bug in JMeter 2.3.1 for clearing cookies for multiple runs / iterations; see [1])