Skip to content

jmeter learning

October 4, 2010

Notes from reading of the jmeter tips and book.

– Restrict to using command line (-n test case, -l output listeners, -H proxy details -r remote)

– Use throughput to restrict looping and sequence thread group using flag in test plan

– Copy http proxy to test plan saved

-To create dependency among the test cases:  Use the  If Controller((${JMeterThread.last_sample_ok}) with Evaluate for all children = checked . Behavior is: Req 1 –> if this errors req 1 and req 2 wont be executed, Req 2 –> if this errors , req 3 wont be executed , Req 3

– For spidering : If Controller has a condition ${__javaScript(!${JMeterThread.last_sample_ok})} . Details here

– OnlyOnceController and Setup/Tear thread groups.

-Can also have distribute execution of jmeter scripts.

-Regular expression extractor – to get some variable information and use in rest of scripts…

-Response assertions (data/file etc..)

-Can use __P ( ) to get property value in script  Set the prop values as -Jusers=10 -Jcount=50 . Use property for
number of users, loop count, host, port, results and data filenames, etc.  Give default eg: ${__P(users,100)} . Here default value of users if not specified is 100.

-Execute the test plan for some time using ThreadGroup scheduler and loop forever option and start up delay as 0.

-Transaction Controller – give result/response time of transaction also!.

– We can capture output of running different pages using proxy by changing the target controller after each page opening. and then add simple controllers under the http proxy itself.

– For data for load testing use either : Pre-Processor | User Parameter Element OR  Config Element | CSV Data Set Config(Better for large data)

– ForEach Controller – to iterate through each value defined in user defined variables

Monitor the following: processor, memory, disk, and network.
No comments yet

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: