NBomber packages are shipped via a NuGet package manager.
Create a console application project.
dotnet new console -n [project_name] -lang ["C#"]
Open the project folder.
Add NBomber package.
dotnet add package NBomber
Install NATS Message Broker
- Docker - If you decide to run NBomber Cluster that depends on NATS message broker or any database (Redis, PostgreSQL, etc.) for your load tests, installing Docker with Docker Compose would be helpful.
To run NBomber Cluster, you need to install NATS message broker. The simple way is to use Docker for this. NATS should be configured to use JetStream. In the
docker-compose.yaml file, we enable JetStream on startup via
Open the folder where the
docker-compose.yaml file is located.
docker compose up -d
docker compose down