Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The attaching video visualizes how to achieve this, the video has the replay of the script as well as a load test with multiple users.

...

Video Time Stamp

Screenshot/Description

Time 00:00

View of the script. (5 pages)

Page 1: Start Page

Page 2: Booking

Page 3: Media

Page 4 Shopping Cart

Page 5: Home

Time 00:12

Clicking into Page 1 (Start Page), the first call, to open the URL Details/Var Handler

Image Removed

Please Note:

  • Loop Counter Global Variable (LC)

  • Loop Variable (team)

  • Input File (team.txt)

  • Load Test Plug-in #1 (SupportModularScripts)

Image Added

Time 00:26 Manage the Inner Loops from a Page.

Image Removed

Click on Page #1 (Start Page) link in Column 1 that opens up the Manage Page Dialog.

Image Added

Time 00:29-39

The Inner Loops started from Page 1 are listed at the bottom of the Manage Page Dialog.

Image Modified

Click on the magnifying glass on the loop to edit the conditions to the target inner loop and set the conditions of when to start the inner loop (from Page #1 (Start Page)).

Time 00:47

Image Removed
Image Added

Repeat for Page #5 (Home). Click on the Manage Page Column #1.

Time 01:02

Image Modified

Clicking on the magnifying glass for the Load Test Plug-in #1 (SupportModularScripts) will provide more detail on the plug-in and when it executes:

Time 01:17 through 02:01

Image Modified

The Replay the Recording starts and the results show that Pages #1 and 5 each ran once while the pages between them each ran 3 times in one minute.

Time 02:18

Image Modified
Image Removed
Image Added

The Global Variable LC was deleted and a new user variable “LC” defined in its place, with the initial value set to “loop counter”.

Time 02:42

Image Modified

The Inner Loop magnifying glass for Page 1 shows a similar Manage Page as before when the LC was set as a Global Variable, but now it’s a user variable.

Time 02:50

Image Modified

With the variable redefined, the Load Test needs to be regenerated and then executed again for 2 Concurrent Users (Time 3:16) to show the User Variable effect on the loops.

Time 04:47

The Test Results show that Pages #1 and 5 each ran twice while the pages between them each ran 18 times over the same 1 minute.

Image Modified

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1fe877
showSpacefalse
sortmodified
typepage
reversetrue
labelszebratester scripting
cqllabel in ( "zebratester" , "scripting" ) and type = "page" and space = "DAZT"

...