introloadrunner-130327004639-phpapp02

Embed Size (px)

Citation preview

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    1/25

    Shama Ahsan

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    2/25

    AgendaWhat is Automation Testing

    Test Automation Framework

    Automation Test Tools

    Why Load Runner

    Architecture

    Load Runner Components

    Think Time

    Playback

    Script Failure & it`s Solution

    Benefits of Automation for your company

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    3/25

    What is Automation TestingAutomation Testingis the use of software to control

    the execution of tests, the comparison of actualoutcomes to predicted outcomes, the setting up of testpreconditions, and other test control and testreporting functions.

    Automation is the use of strategies, tools and artifactsthat reduce the need of manual or human involvementor interaction in unskilled, repetitive or redundanttasks.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    4/25

    Need of Automation Testing Automation testingis the best way to increase the

    effectiveness, efficiency and coverage of your software.

    Automated Testing Saves Time and Money

    Automated Testing Improves Accuracy

    Automated Testing Helps Developers and Testers

    Automated Testing Increases Test Coverage

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    5/25

    Test Automation Framework

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    6/25

    Automation Test ToolsTool name Produced by Latest version

    Load Runner HP 9.5

    IBM Rational Functional

    Tester

    IBM Rational 8.1.0.3

    Parasoft SOAtest Parasoft 9.0

    Rational robot IBM Rational 2003

    Selenium Open source 1.0.6

    SilkTest Micro Focus 2010

    TestComplete SmartBear Software 8.2

    TestPartner Micro Focus 6.3

    Visual Studio TestProfessional

    Microsoft 2010

    WATIR Open source 1.6.5

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    7/25

    Why Load Runner?1. Load Runner reduces the human resource requirement by replacing realhuman users with virtual users known as Vusers.

    2. Load Runner reduces the hardware requirements by running multipleVusers in a single computer.

    3. Load Runner automatically records performance of application under test.LoadRunner provides graph and reporting options for the analysis ofperformance test results.

    4. Various kinds of delays can be identified using LoadRunner. During the test

    execution, LoadRunner monitors network and server resourcescontinuously.

    5. Load Runner makes performance testing very easy LoadRunner tests arefully automated, you can easily repeat them as often as you need.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    8/25

    What is load runner? HP's (formerly Mercury's) load/stress testing tool for

    web and other applications.

    supports a wide variety of application environments,platforms, databases and tracing of bottlenecks.

    Load Runner enables you to test your system undercontrolled and peak load conditions.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    9/25

    What is Performance Testing? Performance testing is an empirical, technical

    investigation conducted to provide stakeholders withinformation about the quality of the product undertest with regard to speed, scalability and stabilitycharacteristics.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    10/25

    System Requirements Processor:

    CPU Type: Intel Core, Pentium, AMD or compatible Speed: 1 GHz minimum. 2 GHz or higher recommended Intel Hyper-Threading technology is not supported.

    Operating System: The following 32-bit Windows operating systems aresupported: Windows Vista SP1 Windows XP Professional SP2 or SP3 Windows Server 2003 Standard Edition/Enterprise Edition SP2

    Windows Server 2003 Standard Edition/Enterprise Edition R2 SP2

    RAM: Minimum: 512 MB Recommended: 1 GB or higher

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    11/25

    Architecture

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    12/25

    How Load Runner Works Load Runner works by creating virtual users who take

    the place of real users operating client softwaresending requests using the HTTP protocol to webservers.

    Requests from many virtual user clients are generatedby "Load Generators" in order to create a load onvarious servers under test

    The Controller controls load test runs based on"Scenarios" invoking compiled "Scripts" and associated"Run-time Settings".

    (cont.)

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    13/25

    Scripts are crafted using "Virtual user scriptGenerator" (named "VU Gen)

    During runs, the status of each machine is

    monitored by the Controller.

    At the end of each run, the Controller combines itsmonitoring logs with logs obtained from load

    generators, and makes them available to the"Analysis" program, which can then create runresult reports and graphs for Microsoft Word,Crystal Reports, or an HTML webpage browser.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    14/25

    Load Runner componentsLoad Runner primarily is a3 stage architecture:

    Virtual User Generator (VUGen)

    Controller Analyzer

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    15/25

    Virtual User Generator Creates virtual users

    Scripts

    Recording Play back

    Generation

    Debug Server

    Run VuGen

    Client running

    an application

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    16/25

    Controller The load is tested here.

    The Controller has two sections Design Section - Used to design the load testing

    scenario

    Run Section - Used to monitor scenarios which are inexecution.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    17/25

    Analyzer The executed script result is displayed in the analyzer.

    Analyzer section is used to observe reports andgraphs, it would determine the performance of ourrecoded scenarios at different user load.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    18/25

    Think Time Think Timeis the time taken by a user (usually to

    think ) before user takes the next action.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    19/25

    Script FailureWhy a script fails when it was working properly

    earlier?

    It is because the dynamic values such as Cookies ,Checksums , Session Id's at the backend change everytime the application is used.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    20/25

    Solution to the script failure? Correlation is the solution to the script failure.

    The user parameterizes the values. For instance, theuser parameterizes the session ID and use thatparameter instead of the hard-coded values.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    21/25

    How Automation testing can be

    beneficial for your company

    Manual testing is time-consuming or costly. In automatedtesting, companies can focus on improving the automated

    business processes. This will increase the speed and accuracy ofthe development and QA teams testing process. The entire ITdepartments can be a higher return on investment, but alsoreduces a great deal of risk.

    Reduced test cycle time:

    Since automation testing tools run considerably faster thanhuman users, this eventually leads to a considerably reduced testcycle time resulting in sustainable time savings.

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    22/25

    Load Runner Installation Run the setup.exe file in the root directory of the installation disk.

    The Load Runner Setup program begins and displays the installationmenu page.

    Load Runner Full Setup. Provides the option to install the main LoadRunner features and components including the Controller, the VuGen,Analysis, and the Load Generator.

    Load Generator. Installs the components needed for running virtualusers to generate load.

    Click OK and follow the on-screen instructions to install the listedsoftware before continuing with the Load Runner installation.

    If you click Cancel, the installer will exit because Load Runner cannotbe installed without the prerequisite software.

    (cont.)

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    23/25

    References http://en.wikipedia.org/wiki/Automation_Testing

    http://guru99.com/loadrunner-tutorials.html

    http://www.devbistro.com/articles/Testing/Role-of-Test-Automation-Engineer

    http://learnloadrunner.com/

    http://www.geekinterview.com/

    www.softwaretestinggenius.com

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    24/25

    Q & A

  • 8/12/2019 introloadrunner-130327004639-phpapp02

    25/25

    Thank you!!