Upload
todd-oconnor
View
213
Download
0
Embed Size (px)
Citation preview
Introduction to JMeterAnton Nesterov
User profile
Anton Nesterov
QA Engineer at Sitecore
3+ years of experience in testing automation
Skype: northfall
Agenda
Introduction Configuring HTTP RequestsReporting Errors handlingAdditional elementsRecording
JMeter usage
Performance testingLoad testingStress testingScalability testingSupport tool
Protocol types
HTTP(S)SOAPFTPDatabaseSMTP/POP3/IMAPTCPetc.
HTTP Request
GET - Requests data from a specified resource
POST - Submits data to be processed to a specified resource
POST /test/demo_form.asp HTTP/1.1Host: w3schools.comname1=value1&name2=value2
/test/demo_form.asp?name1=value1&name2=value2
JMeter elements
Thread group
The Thread Group is the basic element of a JMeter Test Plan
Each thread represents a user setting a thread group to 1000 simulates 1000 users
Configuration Elements
• CSV Data Set
• HTTP Cookie Manager
• HTTP Header Manger
• etc.
Samplers
Samplers do the actual work in JMeter and interact with the server you are loading
There are a number Samplers in JMeter by default. For web testing, use ‘HTTP Request'
Listeners
The information produced by Samplers is consumed by Listeners
Popular listeners are:
• Graph Results
• View Results Tree
• Simple Data Writer
Logic Controllers
Logic Controllers determine the order that Samplers are processed
More complex scripts will make use of
• Loops
• IF
• Random
• etc.
Assertions
A test isn’t a test unless it checks something. Assertions are what do the checking
For web applications, these are the useful ones
• Response
• Duration
• etc.
HTTP Proxy Server
DEMO
Questions?