Introduction to JMeter Anton Nesterov
User profile Anton Nesterov QA Engineer at Sitecore 3+ years of experience in testing automation Skype: northfall
Agenda Introduction Configuring HTTP Requests Reporting Errors handling Additional elements Recording
JMeter usage Performance testing Load testing Stress testing Scalability testing Support tool
Protocol types HTTP(S) SOAP FTP Database SMTP/POP3/IMAP TCP etc.
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.1 Host: w3schools.com name1=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?