Skip to main content

Converter

Overview

Converter is a .NET tool that generates an NBomber Scenario file by parsing various sources:

Installation

info

build NuGet

Converter Tool can be installed as a global CLI tool using the following command:

dotnet tool install -g nbomber.converter.tool

To install a pre-release version or a specific version of a tool, specify the version number by using the --version option, as shown in the following example:

dotnet tool install -g nbomber.converter.tool --version 0.1.1

Run Converter

Use the nb-converter command to generate a NBomber scenario from a target file.

For example, here is the command to convert the HAR file to a NBomber scenario:

nb-converter <target> -t <file_type> -o <output>

CLI Arguments

The list of available command line (CLI) arguments of NBomber:

commanddescriptionexample
-t (or --file-type)Input file type (if not specified, it will be detected automatically)-t HAR
-o (or --output)Location of the output file-o HarScenario.cs

Example with HAR file

nb-converter har_file.har -t HAR -o HarScenario.cs

Example with Postman Collection file

nb-converter postman_file.json -t PostmanCollection -o PostmanScenario.cs