The NeoLoad CheckVU result file

NeoLoad CheckVU can write its result as a JSON file. Your script, pipeline, or AI assistant reads this file to find the failed user path and the YAML step to fix. This way, your script or assistant doesn't need to parse the console output, which is written for people. This topic explains how to get the file, what each field means, and how to use the file in a pipeline.

Get the result file

To get the result file, add the --output option to the neoload checkvu command, followed by the folder where CheckVU should write the file:

Copy
neoload checkvu --output <output-folder> <project-file>

Replace <output-folder> with the folder for the result, and <project-file> with your as-code YAML file. CheckVU writes the result to checkvu-result.json in that folder, and the command prints the absolute path of the file when it finishes. Without --output, the run still reports its result through the console and the exit code, but writes nothing to disk.

If you run the command again with the same --output path, it deletes everything already in that folder, including the result file from the previous run. Give each pipeline job its own path, or move the file somewhere else before you run again.

Result file contents

The result file has the following levels of detail to locate a failing step in your YAML file:

  • Top-level fields describe the whole run and list all user paths.

  • User path entries show whether each user path passed, and how many blocking errors each failed user path hit.

  • Failure entries describe each blocking error and the element in your YAML file that caused it.

Failures and fatal errors need different fixes. A failure, listed in failures, means your YAML file and your application don't match, so fix the YAML file. A fatal error, reported in fatal, means the check never started, so fix the project file or the engine.

Top-level fields

These fields describe the run as a whole:

Field

Description

schemaVersion

The version of the result format itself, currently 1.0. Read this first, so your script knows which version of the format it's reading before it relies on anything else.

outcome

The result for the whole run, as a word.

exitCode

The same result as a number, matching the code the process returned. Failed user paths, or a command that couldn't run, return 1. Passed user paths with no blocking errors return 0.

input

What the run read: yamlPath for the project file and projectRoot for the folder that CheckVU uses to find your assets.

run

When the run happened and which CheckVU version produced it: startedAt, endedAt, durationMs, and productVersion.

summary

Counts across the run: userPathsTotal, userPathsPassed, and userPathsFailed. Use them to write a build summary without reading each entry.

userPaths

One entry for every user path in the file, whether it passed or failed.

fatal

Present only when CheckVU never started, for example, because the project is unreadable or the engine is missing. In that case there are no user path entries to read.

User path entries

Each entry in userPaths contains the following fields:

Field

Description

name

The user path name from your YAML file.

status

Either passed or failed. A user path that passed has only the name and status fields.

blockingErrorsCount

How many blocking errors the user path hit. Only failed user paths include this field.

failures

One entry per blocking error. Only failed user paths include this field. This is the part you read to find what to change in the YAML file.

Failure entries

Each entry in failures contains the following fields, which help you find the step that failed:

Field

Description

elementType

The kind of element that failed, such as a page or a request.

label

The name of that element as it appears in your YAML file.

objectPath

The parent elements that lead to it. Follow this to reach the exact step in a file with repeated names.

durationMs

How long the element took before it failed. A value equal to the request timeout you configured usually means that your application never responded.

httpStatus, httpMessage

The status code and reason your application returned. Both are empty for failures that never reached an HTTP response, such as a connection timeout.

kind

What sort of failure it was: assertion, http, network, or other. Use it to tell a failed assertion apart from an unreachable application.

message

The failure in one line, ready to print in a build log.

Use the result file in your pipeline

To act on a check from a script or a pipeline, follow these recommendations:

  • Use the exit code to pass or fail the build. The exit code doesn't need the result file.

  • Pass --output and read the JSON file to find out why a user path failed, or to report the details.

  • Check schemaVersion before you read any other field, so a later format change produces a clear error instead of wrong results.

  • Read the JSON file instead of the console output. The console output is written for people and can carry extra lines from the engine.

An AI assistant can use the exit code to decide whether to stop and the JSON file to decide what to fix.

What's next

To archive the file and act on it in a build, automate as-code checks in your pipeline.