Print VersionVuGen 9.0 Scripting for Web

Overview
The Virtual User Generator (VuGen) is a scripting tool used to record and run user actions on the application to be tested. This course focuses on planning, creating and enhancing Virtual User (Vuser) scripts using VuGen for load testing in the Web environment. Extensive hands-on labs equip you with the skills necessary to create effective load test scripts for load testing in Web environment.

Course Objectives
This course teaches you to:
  • Record Scripts using VuGen
  • Measure specific business processes transaction times
  • Add content checks
  • Parameterize scripts to handle user input data
  • Customize scripts by adding VuGen functions
  • Correlate script to process server-returned data

    Duration
    Two days

    Labs
    Approximately 50% of the class time is devoted to lab exercises.

    Intended Audience
    Quality Assurance Engineers, Performance Engineers, Users of LoadRunner who need to create scripts to load test their Web applications.

    Prerequisites
  • The Fundamentals of LoadRunner 9.0 course
  • High level knowledge of Web client/server paradigm
  • Knowledge of Windows XP, Windows 2000, or Windows NT
  • Programming in C, C++ or Java

    Course Outline

  • Introduction
  • What is VuGen?
  • How does VuGen record?
  • Navigating the workflow and tasks in VuGen
  • Introduction to Tree View
  • Accessing online help files

  • Recording
  • Structure the script based on planning
  • Use VuGen to record a Vuser script for Web environment
  • Describe HTML and URL recording levels
  • When to use HTML and/or URL recording levels

  • Replay
  • Replay the basic script

  • Transactions
  • Introduction to Transactions
  • Add Transactions to measure response times (after recording and while recording)

  • Parameters
  • Solve playback problems by parameterizing the script

  • Auto Correlation – After Recording
  • Correlate dynamic values found by using Scan for Correlation link

  • Checkpoints
  • Identify visual cues to check for during load testing
  • Add Text Checkpoints during and after recording

  • Actions
  • Introduction to Actions
  • Create multiple actions in a script

  • Introduction to Script View
  • Differentiate Tree and Script View
  • Basic C in VuGen Scripts
  • Emply C statements, variables and functions
  • Apply debugging techniques in VuGen (breakpoints and step)

  • Advanced Scripting Techniques
  • Recognize Protocol Specific Functions
  • Send customized output messages
  • Add error handling and business logic to the scipt

  • Manual Correlation
  • Distinguish between available correlation methods
  • Correlate dynamic value using the create parameter option

  • Auto Correlation – Before Recording
  • Define rules for correlation in Recording Options

  • Advanced Error Handling
  • Create global verification points with ContentCheck
  • Use “logging on demand”
  • View error snapshots in the Controller