Web performance testing“Your load testing solution”

LOGIN OR REGISTER
  • Performance testing
  • AgileLoad Features
  • Signup & Download
  • Learning Center
  • Online store
  • Support forum
  • Video center
  • pci

Getting started

  • Introduction
  • Capturing your first script
  • Script Editor
  • Videos
    • Run your first test
    • Capturing the Script

Advanced tutorials

  • Proxy recording mode
    • Recording in proxy mode
    • Recording with another browser or client program
    • Chaining Proxy
    • SSL/Client Certificate
  • Data driven tutorial
    • Extracting Data via ODBC
    • Using Data in a Script
    • Making a Script Data Driven
  • Modular Transactions
    • Modular Scenarios
    • Modular Scripts
  • Data Extraction & Parsing
    • Extract data from the script
  • Script Parametrisation
    • Performance test script parametrisation
    • Manual Script Parameterisation in AgileLoad
  • Script Automatic Parametrisation
    • Teaching Agileload
    • Parametrising Dynamic Data
    • Automatic script parametrization setup
  • Check Tutorial
    • Add check in script
    • Validate your check
    • Check Events and Statistics in Test
    • Check Details Option in Test
  • Mobile load test
    • Capturing a script from a mobile device
    • AgileLoad Mobile Capture
  • Videos
    • Data generation
    • Choosing a random link
    • Add Transaction Loop Boundaries
User manual
  • Script Editor
  • SCL Language

Buy Virtual users

Modular Scripts

  • Learning Center/
  • Test Scenario Creation/
  • Advanced Tutorials/
  • Modular Transactions/
  • Modular Scripts

As stated the use of TransactionBegin and TransactionEnd can be used in the script to ensure that a user logs on only once before executing the transaction part of the script multiple times then finally logs off only once. This approach makes script development and testing a little more simple than with modular scripts. The benefit of only having to maintain one log and one logout can be retained by using in Include file and referencing the subroutines in the transaction script (remembering to remove the call to them before using the script as part of a scenario). That said most of time it’s easy just to use the script as it was when it was recorded if the login steps are straight forward.

Script capture bar

TransactionBegin and TransactionEnd section of the script can be set as part of the capture process using the button circled in the screenshot below. Please note there can only be one transaction section per script. All the button is going to do is to add the TransactionBegin statement when it is pushed and add the TransactionEnd statement when it is pushed again. These commands can of course be added manually. It is important to understand the user session when using these commands. For example when testing a .Net Microsoft application that stored session state in the client with it’s __VIEWSTATE parameter you must ensure that that parameter will be valid upon the second iteration of the script.

The image below explains the flow of the script when multiple iterations are requested.

Script Flow

The transactions are controlled in the Job scenario in AgileLoad Center in a similar way to that of the approach with modular scripts. The only difference is the absence of the login and logout scripts (those actions are of course now held in the script of course).

In the screenshot below the BuyBook script now has the TransactionBegin and Transaction End command in the script. In this scenario it will login once, buy 5 books and logout once for each scenario execution.

Script scenario

A useful way to test the positioning of the BeginTransaction and EndTransaction statements is to set a number of replay iterations in AgileLoad Test Center. We recommend that you try at least three. The number of iterations can be adjusted in the replay options menu item: Options -> Replay. See the folowing screenshot for an example.

AgileLoad Script Editor Replay Options

Please note that the replay options in the script editor are not transposed to the very similar options tab in the job in AgileLoad Center - the replay options in the Script Editor are intended for script debug and development - if you want similar settings in the job set them in the option tab in the job.

Print this page  -  Go to top of page
  • How to start
  • Test Scenario Creation
  • Test Setup & Run
  • Reporting & Analysis
  • Exercises