zwwcn

Just another WordPress.com site

Category Archives: Jmeter

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