zwwcn

Just another WordPress.com site

use Jmeter to do performance testing for seam project

1 Use Badboy to record action, export script for Jmeter

2 import script into jmeter

3 We need to handle two things, jsfViewState and conversation ID:

Add URL re-writing modifier for jsfViewState at root level, this only need to be done once

jsfViewState

Add regular expression extractor for cid(this should be done at the previous page, before the cid variable get called)

cidReg

update form data to load value from variables:

cid

userDefinedVariables

4 change all http sampler to use “Follow Redirects”

redirect

5 you should be able to run test test scripts now, run test, add “view results tree” listener to check request/response data

 

Advertisements

3 responses to “use Jmeter to do performance testing for seam project

  1. Bob September 18, 2013 at 5:30 am

    I think you can use Jmeter Proxy Server to record actions and do not need Badboy? Or Badboy is better than JMeter built-in recorder?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: