You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use NBomber to load test our game server, but I am having a little trouble finding the correct syntax to create test suite.
What I would like to happen, let's say using lets say max 100 users with duration 60 minutes:
User logs in -> this should happen only once to each user.
User performs a randomly selected test using Multinominal.Sample(). (user log in should be excluded from this)
User performs step and waits reply before performing another test.
User keeps sending requests for 60 minutes.
5.User can log out if needed(Should be excluded from Multinominal.Sample())
What would be correct syntax for Load simulation in a scenario like this? * Should Log in be handled in WithInit() method? * Each copy of scenario represents one user? * How to call method like Logging out, but exclude that from Multinominal.Sample() - pool?
Also is there a way to handle what happens after the testsuite has run completely, like OnTestSuiteCompletion() -> do something?
EDIT:
I was able to figure out most of the issues.
Still trying to find good solution for this:
Also is there a way to handle what happens after the testsuite has run completely, like OnTestSuiteCompletion() -> do something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I am trying to use NBomber to load test our game server, but I am having a little trouble finding the correct syntax to create test suite.
What I would like to happen, let's say using lets say max 100 users with duration 60 minutes:
User logs in -> this should happen only once to each user.
User performs a randomly selected test using Multinominal.Sample(). (user log in should be excluded from this)
User performs step and waits reply before performing another test.
User keeps sending requests for 60 minutes.
5.User can log out if needed(Should be excluded from Multinominal.Sample())
What would be correct syntax for Load simulation in a scenario like this?
* Should Log in be handled in WithInit() method?* Each copy of scenario represents one user?* How to call method like Logging out, but exclude that from Multinominal.Sample() - pool?Also is there a way to handle what happens after the testsuite has run completely, like OnTestSuiteCompletion() -> do something?
EDIT:
I was able to figure out most of the issues.
Still trying to find good solution for this:
Also is there a way to handle what happens after the testsuite has run completely, like OnTestSuiteCompletion() -> do something?
Beta Was this translation helpful? Give feedback.
All reactions