7283145 load runner atglance vugen

Upload: rajesh0201

Post on 30-May-2018

235 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    1/41

    LoadRunner:AtaGlance

    Praveena KumarPenkey

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    2/41

    Praveena Kumar Penkey

    Software has grown in complexity and size.

    Software developed by a developer is according to the System Requirement

    Specification.

    An organization invests large sums in making a software product, it must

    ensure that the software product must be acceptable to the end users.

    This is where Testing comes into play. Testing is not merely finding

    defects or bugs in the software, it is the completely dedicated discipline of

    evaluating the quality of the software.

    Why do we need testing?

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    3/41

    Praveena Kumar Penkey

    Poor requirements if requirements are unclear, incomplete, too general, or

    not testable

    Unrealistic schedule too much work is crammed in too little time

    Inadequate testing no one will know whether or not the program is any

    good until the customer complains or systems crash

    Requirements change requirements changes after development

    Miscommunication developers dont know what is needed or customers

    have erroneous expectations

    Poorly documented code- requirement changes not updated in the source

    code

    Additional reasons

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    4/41

    Praveena Kumar Penkey

    Limitation of Manual Testing

    Time consuming Low reliability Human resources

    Inconsistent

    Automated Testing

    Speed

    Repeatability Programming Capabilities Coverage Reliability Reusability

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    5/41

    Praveena Kumar Penkey

    Which Test Cases to Automate?

    Tests that need to be run for every build of the application (sanity check,regression test) Tests that use multiple data values for the same actions (data driven tests)

    Tests that require detailed information from application internals (e.g., SQL,GUI attributes) Stress/load testing

    Which Test Cases not to Automate?

    Usability testing One-time testing Ad hoc/random testing Tests without predictable results

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    6/41

    Praveena Kumar Penkey

    What : LoadRunner ?

    is an automation tool

    to know the performance of the application in different environments and with

    different peak loads.

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    7/41

    Praveena Kumar Penkey

    When to do load Testing?

    Single user testingprimarily on functionality and user interface of a systemcomponent.

    Application testingfocuses on performance and reliability of an entire system.A typical application-testing scenario might depict 1000 users logging insimultaneously to a system. This gives rise to issues such as what is theresponse time of the system, does it crash, will it go with different softwareapplications and platforms, can it hold so many hundreds and thousands ofusers, etc.

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    8/41

    Praveena Kumar Penkey

    Load Test ProcedureGenerate the Single user Script

    Create Scenario

    Generate Maximum Load (No. of

    Users) / Scenario

    Run the Scenario

    Get the Results and Analyzethe Results

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    9/41

    Praveena Kumar Penkey

    Load Runner

    VuGen

    Create Single User Script

    Insert: Transaction Points

    Enhance Script :

    Parameterization

    Correlation

    Controller

    1. Manual Scenario

    2. Goal Oriented Scenario

    Controlled Load

    Maximum Load

    Ramp up & Down

    Rendezvous Point

    SLA & Resources

    Analysis

    Monitors

    Metrics

    IdentifyBottlenecks

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    10/41

    Praveena Kumar Penkey

    Open VuGen

    Select New Vuser Script / (if existing Open Existing

    Script)

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    11/41

    Praveena Kumar Penkey

    Select proper protocol

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    12/41

    Praveena Kumar Penkey

    Record the script (Ctrl+R)

    Give URL of Application

    Set proper Action

    Set Options

    Observe the events

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    13/41

    Praveena Kumar Penkey

    Recording options

    For Correlation in

    Web protocol

    Select HTML-based

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    14/41

    Praveena Kumar Penkey

    Set proxy if ?Depending on

    Application

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    15/41

    Praveena Kumar Penkey

    AdvancedAdvancedcheck

    Necessary optionsCheck the boxes

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    16/41

    Praveena Kumar Penkey

    For Correlation:

    Check the box

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    17/41

    Praveena Kumar Penkey

    Record Scenarios in ActionObserve the Events

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    18/41

    Praveena Kumar Penkey

    Set Transaction

    End Transaction

    Transactions in script

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    19/41

    Praveena Kumar Penkey

    End recording

    selection Vuser_endStop Recording

    O i f V G St t & E d

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    20/41

    Praveena Kumar Penkey

    Overview of VuGen Start & End

    Transaction Points

    Script View

    Action View

    Log

    E h th i t

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    21/41

    Praveena Kumar Penkey

    Enhance the script:

    Once the script is ready go

    for Parameterization

    Select the String

    for parameterization

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    22/41

    Praveena Kumar Penkey

    Select type and value

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    23/41

    Praveena Kumar Penkey

    Press properties &

    Set parameter type and

    File path

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    24/41

    Praveena Kumar Penkey

    Enter values and simulateSimulate parameter

    behaviors

    Format the

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    25/41

    Praveena Kumar Penkey

    Format the

    parameterization value

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    26/41

    Praveena Kumar Penkey

    Select row SequentialRandom Unique

    Update ValueEach OccurrenceEach iterationOnce

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    27/41

    Praveena Kumar Penkey

    Observe parameterization

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    28/41

    Praveena Kumar Penkey

    Runtime setting(F4) before

    Run(F5) the scriptRun-time SettingsPacing

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    29/41

    Praveena Kumar Penkey

    Run-time Settings Log Run-time Settings Think Time

    (Depending on requirement)

    For Correlation Check Enable Logging Check Extended log Check All Options

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    30/41

    Praveena Kumar Penkey

    Run-time Settings Miscellaneous.

    Process consume

    memory than thread

    Run-time SettingsSpeed Simulator.

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    31/41

    Praveena Kumar Penkey

    F4 Browser Emulation.Check cache details

    Depending on

    requirements

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    32/41

    Praveena Kumar Penkey

    F4ProxyF4 Preferences Options

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    33/41

    Praveena Kumar Penkey

    F4PreferencesOptions

    Set time out settings

    (Change from 120 to 999sec)

    Before going to Correlation

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    34/41

    Praveena Kumar Penkey

    Run (F5) the script at least

    once forcorrelation

    Correlation: The run time values generated by the server.

    Before going to Correlation

    Please select Log in Run

    time Settings

    Select

    Two kinds of Correlation exists

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    35/41

    Praveena Kumar Penkey

    1. Automatic Correlation

    2. Manual Correlation

    Over view of Correlation

    Scan for Correlation

    or Ctrl+F8

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    36/41

    Praveena Kumar Penkey

    Before Recording

    Select Correlation

    Studio

    AutomaticCorrelation: Create Rule for Correlation

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    37/41

    Praveena Kumar Penkey

    While recording the Script

    the Pop-up will come

    After recording and

    running the script, the

    Rule is Created and

    double click on it.

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    38/41

    Praveena Kumar Penkey

    Correlation Rule

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    39/41

    Praveena Kumar Penkey

    In Manual Correlation,

    record two scripts

    for same transactionand compare the

    scripts in

    Tools Comparethe Vuser.

    it opens Wdiff

    Find the Yellow linesfor correlation

    the dynamic data to be

    correlated.

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    40/41

    Praveena Kumar Penkey

    For manual Correlation

    Insert the function

    web_reg_save_param

    before web_submit_data

    Observe the Left,

    Right boundary

  • 8/14/2019 7283145 Load Runner AtGlance Vugen

    41/41

    P K P k

    Functions:

    1.web_create_html_param()

    2.web_create_htm_param_ex()3.web_reg_save_param()

    4.web_set_max_html_param_len()