Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 19 2022 06:29

    AntyaDev on dev

    version 3.0.1-rc (compare)

  • Jul 19 2022 05:51

    AntyaDev on dev

    version 3.0.0-rc (compare)

  • Jun 30 2022 19:13

    AntyaDev on dev

    version 3.0.0-beta.11 (compare)

  • Jun 30 2022 19:09

    AntyaDev on dev

    added "cluster_id" tag added "c… (compare)

  • Jun 16 2022 15:58

    AntyaDev on dev

    version: 3.0.0-beta.10 (compare)

  • Jun 16 2022 15:56

    AntyaDev on dev

    version: 3.0.0-beta.10 (compare)

  • May 23 2022 16:22

    AntyaDev on dev

    version: 3.0.0-beta9 (compare)

  • May 23 2022 16:20

    AntyaDev on dev

    version: 3.0.0-beta9 (compare)

  • May 10 2022 17:44

    AntyaDev on dev

    version 3.0.0-beta7 (compare)

  • May 10 2022 17:29

    AntyaDev on dev

    version: 3.0.0-beta7 (compare)

  • Apr 22 2022 11:57

    AntyaDev on dev

    version 3.0.0-beta6 (compare)

  • Apr 22 2022 11:47

    AntyaDev on dev

    version 3.0.0-beta6 (compare)

  • Apr 22 2022 05:45

    AntyaDev on dev

    replaced task on native backgro… (compare)

  • Apr 19 2022 15:25

    AntyaDev on dev

    version: 3.0.0-beta5 (compare)

  • Apr 19 2022 15:17

    AntyaDev on dev

    added ability to set Connection… version: 3.0.0-beta5 (compare)

  • Apr 19 2022 13:58

    AntyaDev on dev

    version: 3.0.0-beta5 added ability to set Connection… (compare)

  • Mar 31 2022 07:51

    AntyaDev on dev

    version: 3.0.0-beta2 updated F# Core (compare)

  • Mar 31 2022 07:46

    AntyaDev on dev

    version 3.0.0-beta2 (compare)

  • Mar 23 2022 09:31
    cvizzini opened #10
  • Dec 03 2021 08:45

    AntyaDev on dev

    version 3.0.0 (compare)

Seppe_Geerinckx
@ClumsyPenguin
image.png
Nic da Costa
@nicdaCosta

Hey everyone,

I wanted to check if anyone else is having an issue with getting the reporting sinks to work for NBomber 3.x? I am having an issue saying that method "withReportingSinks" on NBomberContext is not valid as no definition found. This is both for the C# and F# contracts

Having a look through the repo, this method was available in 2.x but was removed from 3? This is using the standard NBomber nuget package.

I checked the the contracts in the repo, and you can see this is present for tag 2.1.2 - https://github.com/PragmaticFlow/NBomber/blob/v2.1.2/src/NBomber/Api/FSharp.fs

But not from 3 and up as it seems to have been replaced with ReportingContext, but there is no method to set the ReportSinks for the context.

All the docs and examples in the repo point to using this? Hope someone can shed some light

17 replies
Anton Moldovan
@AntyaDev
8 replies
oscarmr33
@oscarmr33
Hello :), my team would like to use NBomber enterprise edition, but, for our company to approve it they have the requirement that you have SSO support (Microsoft), is that the case? Thanks in advance
3 replies
TheRubble
@TheRubble
Hi all
Anyone else having issues with the HTTP Plugin?
image.png
image.png

image.png

I've looked at the decompiled source and it looks as I'd suspect so not sure where this issue is coming from.

10 replies
5hu8h4m/n4g4
@pentestguy
Hi @AntyaDev
Is there still any issue with HTTP client?
As I tried the login code but got a 415 unsupported media type error.
10 replies
image.png
image.png
TheRubble
@TheRubble

Hey,

Is there a way to run scenarios one after the other rather than all in parallel? I want to test the same scenario with different load simulations. I created 2 scenarios and duplicated the step code, one scenario is a constant simulation, the other is ramp per sec.

var stats = NBomberRunner
    .RegisterScenarios(constant,ramp)
    .WithReportFormats(ReportFormat.Html)
    .WithReportFolder(Path.Combine(parentDir!, ".buildartifacts", "loadtest"))
    .Run();

I'd like to run the first scenario, then the second. Is this possible?

Thanks

4 replies
Jakub Svoboda
@jakubsvobodacz
hey, what is there to consider when deploying nbomber to your own infrastructure and choosing between AWS Beanstalk and EC2 ? Beanstalks seems as the better option as you manage only the app and not the OS but perhaps any limitations that this might bring?
Nursultan Orynbayev
@NurOrNuLL
Hi guys, i use version NBomber 3.3.0 (c#), i don't see a message in my reports, don't know how to solve the problem?
5 replies
Maxim
@veantm
Hello. How can i send 20 requests per minute? For some reason, i need send requests less then 60 per minute.
SM
@VictorYakushenko
Hello. Is it normal to use separate HttpClient for each parralel thread? For exampre create circular feed with 10 HttpClients for KeepConstant 10
8 replies
SM
@VictorYakushenko
Hi! Is there an feature in Nbomber to just wrap api request in step Step.Create where api request just return HttpResponseMessage and all statics will be automatic without doing this?
6 replies
image.png
It will be very convenient
Normansmanza
@normansmanza_twitter
I need the C# code that tests the POST requests and also has the token authorisation sector
meghanaraju0605
@meghanaraju0605:matrix.org
[m]
Hi there, I need to use DataFeed in my project to fetch Json data, how can I achieve it in the newly updated 4.0.0-bet4 version.
4 replies
SM
@VictorYakushenko
Hello, could someone tell, can I set test duration by requests count, not by time?
10 replies
Sasha
@103683__twitter
Hi! I`m trying to rewrite my tests with nbomber v4 beta version + nbomber cluster. Does cluster has something as "cluster context"? Am i wright that when i run tests on agents and on coordinator - nbomber just starts load test app in isolation (just create N instances)?
10 replies
Konstantinos Archimandritis
@konarx
Hello! While still writing the scenarios, what is the minimum LoadSimulation for debugging? The bare minimum, 1 User - 1 iteration. Thank you
11 replies
5hu8h4m/n4g4
@pentestguy
Hi @AntyaDev
for cluster logging the package serilog-sinks-elasticsearch has the wrong dependency issue, could you please suggest any alternative for it? Thank you
4 replies
Francisco
@fjss
Hey guys! Is it possible to terminate an iteration manually (not the complete scenario) without having to return Fail ?
4 replies
5hu8h4m/n4g4
@pentestguy
Hi Everyone,
I tried multiple scenarios and facing the error given below, anyone can please help me out with this? I am using NBomber 3.3.0 Version
5 replies
image.png
pantonis
@pantonis
Hello. Just found out about nBomber and it looks pretty amazing. However there is one core concept that I don't understand and documentation doesn't help.
what is the difference between:
Simulation.RampingConstant(copies: 20, during: TimeSpan.FromMinutes(10)) and
Simulation.KeepConstant(copies: 20, during: TimeSpan.FromMinutes(10))
can anyone assist please?
12 replies
pantonis
@pantonis

I have the following code

var scenario = Scenario.Create("LotsOfConnections", async context =>
    {
        Response<string> step1 = await Step.Run("ConnectReceive", context, async () =>
        {
            var reportTest = new ReportTest();

            await reportTest.Start();

            return Response.Ok(payload: "ConnectReceive response", sizeBytes: 10);
        });

        return Response.Ok();
    })
    .WithoutWarmUp()
    .WithLoadSimulations(Simulation.KeepConstant(copies: 20, during: TimeSpan.FromMinutes(10)));

NBomberRunner.RegisterScenarios(scenario).Run();

each reportTest.Start() creates one single connection to signalR. Based on the above it should open 20 connections but this is not the case. I use perf counters for signalr and I can see that it opens over 100 and sometimes even more than 1000

32 replies
what am I doing wrong?
pantonis
@pantonis
@AntyaDev
pantonis
@pantonis
is this a bug?
Anton Moldovan
@AntyaDev
no
pantonis
@pantonis
@AntyaDev
jkoplo
@jkoplo
I picked an interesting day to investigate NBomber! Pulled latest nuget and tried to follow the getting started on the website. Quickly realized the methods weren't the same and checked the nuget release date. Ha!
2 replies
This project looks truly awesome - thanks for the hard work
pantonis
@pantonis
@AntyaDev really? it is a small setting but so much crucial. I mean usually when you load testing something you want to check the max capacity of the server in terms of connections it can handle, not just throughput and bandwidth. Number of connections is a very important metric.
5 replies
@AntyaDev is there any other way to test against a fixed number of connections?
Anton Moldovan
@AntyaDev
@/all Updated some portion of the docs
1 reply
Jim Comiskey
@jimcomiskey
When using NBomber Cluster, does the WithMaxFailCount setting pertain to the whole cluster's fail count, or the test count of a particular node?
4 replies
pantonis
@pantonis
When I want to print to console some data that my step produces when run how can I do it. COnsole.WriteLine doesn't seem to work
4 replies
5hu8h4m/n4g4
@pentestguy
Hi @AntyaDev , hope you are doing well..
Are there any changes related to logging in to the newer version, I am unable to see the proper logs for the wrong username or for the 401 status code.
49 replies
5hu8h4m/n4g4
@pentestguy
This message was deleted
Andrii Berestov
@awbv
Hi @AntyaDev. Hope you're doing fine and power shortages don't affect you much. I've recently started digging into NBomber w/ F# and I've noticed that with new major version (4.0) some of the functionality is missing. Something like FeedData and HttpClientFactory. Am I missing something, or are they now a part of a separate nuget? Also, are there any restrictions to add Data property to IScenarioInitContext? In my case that would be very helpful. Instead of storing data as a mutable binding right above the scenario, we would be able to set data immediately to context (like OAuth Bearer prior to main flow) or cleanup data with withClean. For now, as a workaround it looks like this
let mutable customSettings = ValueNone
let mutable bearerToken = ValueNone

let basicScenario =
    Scenario.create("basic_scenario", (fun ctx -> task {
        use httpClient = new HttpClient()
        ctx.Data.Add("Host", customSettings.Value.BaseUri)
        httpClient.BaseAddress <- ctx.Data["Host"] |> string |> Uri
        ctx.Data.Add("BearerToken", bearerToken.Value)
        ctx.Logger.Information("Starting {ctx.ScenarioInfo.ScenarioName}")
        return Response.ok()
    }))
    |> Scenario.withInit (fun ctx -> task {
        let! settings = InitClean.withCustomSettings ctx
        customSettings <- ValueSome settings
        let! token = InitClean.createBearerToken settings ctx
        bearerToken <- ValueSome token })
9 replies