Exemple #1
0
 static void Main(string[] args)
 {
     //HelloWorldScenario.Run();
     HttpScenario.Run();
     //MongoDbScenario.Run();
     //WebSocketsScenario.Run();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            var scenario = HttpScenario
                           //var scenario = HelloWorldScenario
                           //var scenario = MongoDbScenario
                           //var scenario = WebSocketsScenario
                           .BuildScenario()
                           .WithConcurrentCopies(10)
                           //.WithWarmUpDuration(TimeSpan.FromSeconds(10))
                           .WithDuration(TimeSpan.FromSeconds(5));

            NBomberRunner.RegisterScenarios(scenario)
            //.LoadConfig("config.json")
            //.WithReportFileName("custom_report_name")
            //.WithReportFormats(ReportFormat.Txt, ReportFormat.Html, ReportFormat.Csv)
            .RunInConsole();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            var configPath = args[0]; // agent_config.json or coordinator_config.json

            HttpScenario.Run(configPath);
        }