Run RealBrowser tests

You've recorded your user path. Now it's time to run tests and collect meaningful data about your application's performance.

RealBrowser gives you two types of insights: request metrics that show server response times, and Core Web Vitals that reveal what users actually experience in the browser.

Before you start

Make sure you have:

Capture request metrics

Want to know how long your server takes to respond? The CaptureRequests action tracks request and response times for every call the browser makes.

Start collecting metrics

Add a CaptureRequests action to your user path:

  1. Insert a CaptureRequests action at the beginning of your user path, immediately following the OpenBrowser action.

  2. Configure bucket parameters if needed:

    • url to group request metrics based on exact URL matches.

    • resourceType to group request metrics based on resource type matches.

    • regexp to group request metrics based on regular expression matches.

Once this action runs, RealBrowser collects metrics from every browser request. By default, all requests go into a single bucket. Use the grouping parameters to separate them.

Group requests automatically

Don't want to configure buckets manually? Tricentis NeoLoad can set them up for you.

For a new RealBrowser recording:

After recording with RealBrowser, the Post-recording Wizard lets you specify the number of CaptureRequests actions in your new user path. Tricentis NeoLoad automatically forms buckets based on the requests during recording:

  • XHR and Fetch type requests provide high granularity and result in individual url buckets with exact URL match.

  • Other detected request types go into corresponding resourceType buckets.

For an existing user path:

  1. Run Check Virtual User for the user path you want to update.

  2. Right-click the user path element in the Check VU tree and select Update recorded contents from the context menu.

  3. Right-click the user path element in the design tree, hover over Advanced > RealBrowser, then choose an option to manage capture requests actions.

Handle HTTP errors

During recording, RealBrowser logs every request and response, including error codes. Some errors are expected, like a 404 for a missing favicon. You can tell Tricentis NeoLoad to ignore specific errors.

An HTTP error is ignored when all of these are true:

  • In Project settings > Runtime parameters > Responses, the Do not mark the specified HTTP error code when the same error occurs during the recording box is selected.

  • The error must happen during recording.

  • The error code must be on your list of codes to ignore.

  • The error's response code must match the recorded code and URL with its parameters.

Core Web Vitals testing scenarios

Core Web Vitals tell you what users actually experience: how fast pages load, how responsive they feel, and how stable the layout is. Here are some ways to use them.

Infrastructure sizing

Infrastructure sizing depends on scenario design, target application resource consumption, and available hardware. Load Generators need one browser instance per virtual user, which uses significantly more resources than protocol-based testing.

The sizing process requires balancing RAM and CPU. CPU is the primary resource that causes throttling during iterations. To mitigate throttling, increase think times to simulate realistic user behavior (a few seconds of page reading between actions).

General estimates for a low to medium resource-consuming target application:

  • 1 GB RAM per virtual user

  • 2 actions per second per CPU core

Example

A Load Generator with 32 GB RAM, 8 CPU cores, and a typical virtual user executing 3 actions per second:

  • RAM capacity: 32 GB / 1 GB = 32 virtual users

  • CPU capacity: 8 cores x 2 actions per second = 16 actions per second total. At 3 actions per virtual user = approximately 5 virtual users per core, or 40 virtual users total.

  • Limiting factor: RAM (32 virtual users). However, CPU throttling may reduce this number further.

These are theoretical estimates. Run sizing tests in your environment to find the ideal ratio of virtual users per CPU for your specific application. These estimates assume no other processes are running on the Load Generator.

Best practices

Get the most out of your RealBrowser tests with these tips:

What's next

Want to dig deeper? Check out these resources: