JMeter Workshop Friday 1 December 2006 Anthony Colebourne IT Services The University of Manchester.

Slides:



Advertisements
Similar presentations
Performance Testing - Kanwalpreet Singh.
Advertisements

Overview. SUMMARY Introduction What is Jmeter ? Why ? Preparing tests Step 1 Proxy server Step 2 Organization Step 3 Genericity Step 4 Assertions Running.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Understanding of Load Testing Tools Especially HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
Performance testing of Progress Appservers and a plug-in for Jmeter
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Intro To JMeter Christian Desserich Testing a Web-Based Application.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
Apache JMeter By Mohamed Talaat
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik University of Manchester materials by Dr Katy Wolstencroft and Dr Aleksandra.
Chapter 4: Core Web Technologies
1 Guide to Novell NetWare 6.0 Network Administration Chapter 13.
JMeter SEGFAULT Arjun Bhasin Chakori Macherla Gunjan Raghav Jaideep Singh Vicky Sehrawat.
COMP 410 & Sky.NET May 2 nd, What is COMP 410? Forming an independent company The customer The planning Learning teamwork.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Performance testing with JMeter.  100% pure Java desktop application  Designed to load test client/server software (such as a web application )  JMeter.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
THttpServer class Sergey Linev (GSI). Some history Development was inspired by JSRootIO why not achieve similar functionality with online ROOT application?
Marcel Casado NCAR/RAP WEATHER WARNING TOOL NCAR.
An Introduction to Designing and Executing Workflows with Taverna Katy Wolstencroft University of Manchester.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Introduction to JMeter Anton Nesterov. User profile  Anton Nesterov  QA Engineer at Sitecore  3+ years of experience in testing automation  Skype:
INFSOM-RI Juelich, 10 June 2008 ETICS - Maven From competition, to collaboration.
Version control Using Git Version control, using Git1.
V. Serbo, SLAC ACAT03, 1-5 December 2003 Interactive GUI for Geant4 by Victor Serbo, SLAC.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
A Brief Documentation.  Provides basic information about connection, server, and client.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
How to Run a Scenario In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra.
ProjectManager Plugin. Objective Enable web-based storage for construals – Save construals without having to copy script generator text to notepad – Load.
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
Copyright © by Shayne R Flint Simplified Web Application Development Shayne R Flint Department of Computer Science Australian National University.
Oracle Data Integrator Agents. 8-2 Understanding Agents.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Introduction to Taverna Online and Interaction service Aleksandra Pawlik University of Manchester.
APACHE JMETER AN OPEN SOURCE PERFORMANCE TESTING TOOL.
ASEMON JEAN-PAUL MARTIN May 2015.
Performance Testing Test Complete. Performance testing and its sub categories Performance testing is performed, to determine how fast some aspect of a.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
Configuring and Deploying Web Applications Lesson 7.
Software Architecture in Practice Mandatory project in performance engineering.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
EValid LoadTest, eV.manger and Validation. Agenda Load Test capability of eValid How to execute load test by using eValid Introduction to eV.manager Validation.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
LOAD RUNNER. Product Training Load Runner 3 Examples of LoadRunner Performance Monitors Internet/Intranet Database server App servers Web servers Clients.
An Overview of Performance Testing And JMeter
1 RIC 2009 Symbolic Nuclear Analysis Package - SNAP version 1.0: Features and Applications Chester Gingrich RES/DSA/CDB 3/12/09.
Learn Jmeter testing tool in online. What is Jmeter? Jmeter is an open source testing software. It is used to perform load test, performance test. It.
JRA2: Acceptance Testing senarious
Data Virtualization Demoette… JMeter Load Testing CIS JDBC
z/Ware 2.0 Technical Overview
Data Virtualization Demoette… JMeter Load Testing CIS SOAP
Data Virtualization Tutorial… CORS and CIS
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Agenda ● Performance testing Load Testing StressTesting
Content: What is JMeter? What can I do with JMeter?
Tivoli Common Reporting v1.2 Overview
Moodle Scalability What is Scalability?
Automation Testing tool that can be used in software engineering course Ran Shi 04/29/2011.
Lecture 34: Testing II April 24, 2017 Selenium testing script 7/7/2019
Performance/Load/Stress Testing
Presentation transcript:

JMeter Workshop Friday 1 December 2006 Anthony Colebourne IT Services The University of Manchester

What is JMeter Apache JMeter is a GUI desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. –Has a rich graphical interface –Built in Java –Part of Apache Jakarta project –Can be distributed It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types.

Features of JMeter Graphical Analysis / Exporting Test Results Remote Distributed Execution –If you want to generate load using multiple test servers. You can run multiple server components of JMeter remotely. And you can control it by a single JMeter GUI to gather results. test.htmlhttp://jakarta.apache.org/jmeter/usermanual/remote- test.html Highly Extensible –Custom Additions (Write your own samplers / listeners) –PlugIns Test plans stored in XML and can be version controlled.

What Can You Do With It? JMeter lets you set up test plans that simulate logging into a web site, filling out forms, clicking buttons, links, etc. You can simulate the number of users doing this, the rate that they do it.

Setting Up and Running JMeter Download the binary from Jakarta – –It’s platform independent, so the same download will run on Windows, Linux, Mac. –You need Java, with the JAVA_HOME environment variable set. –Uncomment SSL settings in jmeter.properties Unpack the zip or tar.gz and execute jmeter.bat or jmeter.sh

JMeter Control Panel

Test Plan A complete test plan will consist of one or more Thread Groups, logic controllers, samplers, listeners, timers, assertions, and configuration elements. Test Plans are represented as an Ordered Tree.

Scoping Rules Some elements are primarily ordered (e.g. controllers and samplers). Other elements are hierarchical. An Assertion, for example, is hierarchical in the test tree. If its parent is a request, then it is applied to that request. If its parent is a Controller, then it affects all requests that are descendants of that Controller.

Elements of a Test Plan ThreadGroup –Set the number of threads –Set the ramp-up period –Set the number of times to execute the test Samplers –HTTP Request –JDBC Request –LDAP Request –WebService (SOAP) Request Logic Controllers –Simple Controller - The Simple Logic Controller lets you organize your Samplers and other Logic Controllers –Loop Controller –Once Only Controller –Interleave Controller –Throughput Controller –Others … (e.g. Transaction Controller) Listeners –Simple Data Writer –Graph Results

Elements of a Test Plan Timers –The timer will cause a delay between each request that a thread makes. Assertions –The ‘test’ of the response from the server Configuration Elements –Sets default Pre-Processor / Post-Processor Elements

Execution order Timers Pre-Processors Sampler Post-Processors Assertions Listeners

JMeter User Interface The Test PlanLogin Sequence

View results summary

View results as graph

Portal Test Plans Performance testing –Real life usage Stress testing –Increasing number of users Soak testing –Varying how long test runs for, e.g. use loops System level testing –Using assertions

Simplest web test Thread Group HTTP Request - Sampler View Results in Table - Listener Demo – workshop_demo1.jmx

Simplest web test User Defined Variables – Configuration Element Constant Timer - Timer View Results in Tree Listener - Listener Demo – workshop_demo2.jmx

Simplest web test HTTP Header Manager – Configuration Element Simple Controller - Controller Response Assertion - Assertion Demo – workshop_demo3.jmx

Test Fragments for Portal Saved fragments of Test Plans –Login sequence –Response assertions –User agents –Load cluster settings

Portal Performance Test A Load cluster host names Load test users Do Login Test Login Generate next url based on tabs Loop: 1.Visit tab 1 2.Visit tab 2 3.Visit tab 1 4.Visit tab 3

HTTP Proxy Recorder Workbench -> HTTP Proxy Server –Cannot be used with over SSL

HTTP Proxy Recorder Configuring FireFox to use the Proxy Demo – workshop_demo _proxy.jmx

Using JMeter with Ant JMeter build.xml –Single JMeter target with 2 arguments script Paramter list Portal testing build.xml –One target for each scenario –Parameter – Environment –Parameters for e.g. number of users or running time Build.properties –List of server to use –List of users

Tips Use timers to avoid hammering the server Limit the Number of Threads –Hardware will limit the number of threads you can effectively run. A faster machine makes JMeter work harder since it returns request quicker. User variables –Create a text file containing the user names and passwords. –Add a CSV DataSet configuration element. Name the variables USER and PASS. Use ${USER} and ${PASS} within samplers. Reducing resource requirements –Use non-GUI mode. –Use as few Listeners as possible. –Reduce samplers by looping (by thread and by controller), and use variables (CSV Data Set) to vary the sample. –Use CSV output rather than XML.

Resources Apache JMeter Home – Useful Tutorials and Articles – – –See articles in the Testing category