jmeter basic

Upload: le-quynh

Post on 03-Jun-2018

252 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Jmeter Basic

    1/18

    JmeterL NhQunh - QC

  • 8/12/2019 Jmeter Basic

    2/18

    Agenda

    Load test

    What is Jmeter? How does it work?

    Jmeters basic elements

    Apply Jmeter on Load test.

  • 8/12/2019 Jmeter Basic

    3/18

  • 8/12/2019 Jmeter Basic

    4/18

    LOAD TEST

    2. How to conduct a load-test web app? [1]

    Identify performance criteria.

    Identify key scenario.

    Create a workload model

    Identify metrics

    Run test

    Analyze report

    [1] Microsoft, Chapter 17 - Load Testing Web application , http://msdn.microsoft.com/en-us/library/bb924372.aspx

  • 8/12/2019 Jmeter Basic

    5/18

    LOAD TEST

    2. Input [1]

    Performance acceptance criteria.

    Key scenario.

    Workload model

    Metrics

    [1] Microsoft, Chapter 17 - Load Testing Web application , http://msdn.microsoft.com/en-us/library/bb924372.aspx

  • 8/12/2019 Jmeter Basic

    6/18

    LOAD TEST

    2. Output [1]

    Throughput: transactions/unit of time that appcan handle.

    Response time.

    [1] Microsoft, Chapter 17 - Load Testing Web application , http://msdn.microsoft.com/en-us/library/bb924372.aspx

  • 8/12/2019 Jmeter Basic

    7/18

    APACHE JMETER

    1. What is Jmeter?

    An Apache project that can be used as a loadtesting tool for a variety of services.

    [1] Microsoft, Chapter 17 - Load Testing Web application , http://msdn.microsoft.com/en-us/library/bb924372.aspx

  • 8/12/2019 Jmeter Basic

    8/18

    APACHE JMETER2. How does it work? [2]

    [2] Jmeter Expert, How Jmeter simulates multiple users , http://jmeter-expert.blogspot.com/2010/03/how-apache-jmeter-simulates-multiple.html

  • 8/12/2019 Jmeter Basic

    9/18

  • 8/12/2019 Jmeter Basic

    10/18

  • 8/12/2019 Jmeter Basic

    11/18

    APACHE JMETER3. Basic elements

  • 8/12/2019 Jmeter Basic

    12/18

  • 8/12/2019 Jmeter Basic

    13/18

  • 8/12/2019 Jmeter Basic

    14/18

    APPLY JMETER ON LOAD TESTING

    1. Scenario 1: 100 login user threads.

    Output:

    Average throughput = ?

    Average response time = ?

  • 8/12/2019 Jmeter Basic

    15/18

  • 8/12/2019 Jmeter Basic

    16/18

    Key scenario: 240 users

    50% users: log in

    50% users (loop = 2)

    Log in only once

    50%: profile 2 times

    Access public page

  • 8/12/2019 Jmeter Basic

    17/18

    Analyze

  • 8/12/2019 Jmeter Basic

    18/18

    Anazlyze