Client Performance Monitoring

Concept and Architecture

The purpose of this integration is to satisfy the following use case.

The tester wants to measure the speed of the user interface that a user would experience whilst performing a protocol-level load test:

  • How long does each transaction take whilst 1000 VUs are hitting the same system
  • The user interface could be web, mobile or thick client (e.g. ERP system)

The following describes the technical architecture that would need to be in place:

clip0065

The process flow for the above architecture would be as follows:

  1. User schedules the performance test in SpiraTest.
  2. RemoteLaunch connected to the NeoLoad controller and SpiraTest initiates the start of the testing.
  3. The NeoLoad controller sends commands to the NeoLoad load generators to start the performance scenario.
  4. During the performance scenario, NeoLoad calls Rapise through its command-line to start a specific test
  5. At specific points in the Rapise function test (which is grouped into transactions), timing code in the Rapise script (see next section) will call the NeoLoad REST API to report back the timing for the transaction block.
    • The NeoLoad controller will need to correlate each of the blocks with the appropriate transaction in the performance scenario.
  6. At the end of the performance test, RemoteLaunch will read the entire performance test and send back the results to SpiraTest.

NeoLoad Global Object

Rapise has a global object named NeoLoad which is capable of sending client performance metrics to the NeoLoad controller.

clip0058

NeoLoad will display the received data in a both tree and graph views.

NeoLoad Tree View

clip0059

The root of the tree is the name of a script that was executed by Rapise. On the first level we have three groups:

Graph View

Each leaf node can be dragged to the graph view for visualization:

clip0060

Performance Filters

Performance results obtained from different runs can be filtered using result filter on the toolbar.

clip0061

You can open the Results Filter dialogs by pressing button.

clip0062

NeoLoad Object API Reference

The methods of the global NeoLoad object are described on this page.

How to Use

In order to send performance metrics to NeoLoad you need to add a sequence of calls to your script.

First, connect to the NeoLoad. When this call is executed NeoLoad must be running a script, otherwise an error will be returned.

NeoLoad.CreateClient("hardware1", "location1", "Broadcom 802.11ac Network Adapter \_2");

Let’s look at the following block:

NeoLoad.CaptureHostPerformance();
NeoLoad.StartTransaction('T Home');
NeoLoad.CaptureBrowserPerformance(SeS('Log\_In').GetPageURL());
//Click on Log In
SeS('Log\_In').DoClick();
NeoLoad.CaptureBrowserPerformance(SeS('Username\_').GetPageURL());
NeoLoad.EndTransaction('T Home');

There is also a general call that can send any user-defined metric to the NeoLoad controller:

NeoLoad.CapturePerformanceValue("First Level Folder", "Transaction1|Duration", "milliseconds", 120);

Components of the second parameters can be separated by |. It allows to add more levels to the tree.