Comments (8)
Hi @OlehBabkov ,
Do you have any example of how you would pass such settings via Console arguments?
from nbomber.
Hi @AntyaDev!
yes, for example with a help of docker run
dotnet mytests --scenarioName ScenarioName --loadSimulationSettings keepConstant --copies 4 --during 00:00:07 --endpointUri http://someendpoint.com/
just an example, where I can take these args from a console and replace the default values in a config.json file.
While I was investigating this approach I found out that with a help of IOptions pattern I can easily handle GlobalCustomSettings and replace values there, but with a structure of LoadSimulationsSettings it is not working (maybe because of a structure of { "KeepConstant": [ 4, "00:00:07" ] } (for example)
or maybe I'm doing something wrong and there can be a solution how to change exactly LoadSimulationsSettings out of the box, but I didn't found it in a documentation for NBomber.
Ask for your help
from nbomber.
@OlehBabkov
The thing is that LoadSimulation is an array, and it can contain several LoadSimulations:
[ "KeepConstant": 4, "00:00:07",
"KeepConstant": 10, "00:00:10" ]
I don't know how we can set it via Console arguments (CLI args).
maybe
--loadSimulationSettings ["KeepConstant": 4, "00:00:07"; "KeepConstant": 10, "00:00:10"]
Also, what if the user wants to run several scenarios? The thing is that NBomber supports many configurations, and we should think how to expose it via CLI args :)
from nbomber.
Hi @OlehBabkov can you tell please what are the limitations for you to pass different json files?
dotnet MyLoadTests.dll --config=config-1.json
dotnet MyLoadTests.dll --config=config-2.json
from nbomber.
Hi @AntyaDev ! Actually, no limitations. I just thought that it would be nice to run each docker container with it's own configurations from cli based on each test (we have different test scenarios) and what we need to change (except of GlobalCustomSettings part) is only duration of a test and LoadSimulationSettings
from nbomber.
@OlehBabkov If you have a few predefined variations for LoadSimulations, you could use a different JSON config per variation.
But if your test run very different between each run (I mean dynamic variations) then probably we should think of something different.
I got your point, and I like the proposed options via CLI args. The only thing that is not clear for now is how to expose this functionality via CLI to cover NBomber functionality: multiple scenarios, LoadSimulations array, etc.
from nbomber.
We actually have something similar. Instead of passing everything using the command line, we define multiple JSON config files and then use the command line argument to specify which JSON to use.
from nbomber.
Hi @OlehBabkov ,
It seems we are a bit stuck on this proposition. I like the idea, but I don't know how to express it using CLI arguments.
We need to think maybe we can accept just JSON strings as arguments.
from nbomber.
Related Issues (20)
- Implement Step.RunHidden to not show a step in the report HOT 14
- Show Standard Deviation in Report HOT 2
- Add Bytes extensions API
- Problem with license validation HOT 6
- Help: Why is only one copy running even if I specified multiple copies? HOT 11
- Feature Request: Provide a way for a scenario to detect that the scenario is ending. HOT 1
- Add hint if Warmup is None
- Reporting maxes out at about 12 minutes HOT 3
- Provide list of license servers
- Add ability to start measuring stats after some period of time.
- Improve license validation
- Backwards compatibility issues with NATS Client
- Add a Hidden Step support HOT 1
- Add ReportFinalizer handler to allow manipulation of final data for report generation
- ClientPool - extending pool / add new clients dynamically HOT 5
- Client Pool - clean client before it can be reused HOT 1
- AutoCluster - NBomber generated reports duplicating step data information HOT 3
- Unhandled exception: MetricsStatsActor failed HOT 3
- Add CLI argument to set SessionId
- AutoCluster - Grafana dashboard isn't displaying Status Codes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbomber.