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

 

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 comment