- Slides: 16
Introduction to JMeter Anton Nesterov
Anton Nesterov User profile 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/POP 3/IMAP § TCP § etc.
GET - Requests data from a specified resource /test/demo_form. asp? name 1=value 1&name 2=value 2 HTTP Request POST - Submits data to be processed to a specified resource POST /test/demo_form. asp HTTP/1. 1 Host: w 3 schools. com name 1=value 1&name 2=value 2
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 do the actual work in JMeter and interact with the server you are loading There a number Samplers in JMeter by default. For web testing, use ‘HTTP Request'
The information produced by Samplers is consumed by Listeners Popular listeners are: • Graph Results • View Results Tree • Simple Data Writer
Logic Controllers determine the order that Samplers are processed Logic Controllers More complex scripts will make use of • • Loops IF Random etc.
A test isn’t a test unless it checks something. Assertions are what do the checking Assertions For web applications, these are the useful ones • Response • Duration • etc.
HTTP Proxy Server