16
Introduction to JMeter Anton Nesterov

Introduction to JMeter Anton Nesterov. User profile Anton Nesterov QA Engineer at Sitecore 3+ years of experience in testing automation Skype:

Embed Size (px)

Citation preview

Page 1: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Introduction to JMeterAnton Nesterov

Page 2: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

User profile

Anton Nesterov

QA Engineer at Sitecore

3+ years of experience in testing automation

Skype: northfall

Page 3: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Agenda

Introduction Configuring HTTP RequestsReporting Errors handlingAdditional elementsRecording

Page 4: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

JMeter usage

Performance testingLoad testingStress testingScalability testingSupport tool

Page 5: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Protocol types

HTTP(S)SOAPFTPDatabaseSMTP/POP3/IMAPTCPetc.

Page 6: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

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

Page 7: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

JMeter elements

Page 8: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

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

Page 9: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Configuration Elements

• CSV Data Set

• HTTP Cookie Manager

• HTTP Header Manger

• etc.

Page 10: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

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'

Page 11: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Listeners

The information produced by Samplers is consumed by Listeners

Popular listeners are:

• Graph Results

• View Results Tree

• Simple Data Writer

Page 12: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Logic Controllers

Logic Controllers determine the order that Samplers are processed

More complex scripts will make use of

• Loops

• IF

• Random

• etc.

Page 13: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

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.

Page 14: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

HTTP Proxy Server

Page 15: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

DEMO

Page 16: Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:

Questions?