Comments (4)
Design choice. core/run
is the public API for library and with that I try to keep backwards compatibility as much as possible. That is also the documented API. The more stuff in core
the more work there is to maintain :)
However, if there is a valid use case for adding users
as an option to API I am not against that idea. What are you trying to do?
from trombi.
Well, I'm writing a stress test to check how our 'add to basket' functionality works, and for that I need a lot of various users which do things at different times.
I'm not exactly sure what's the best way to handle this, and main idea was to read user credentials from a csv file and passing it down.
Maybe there is a better way to choose them?
from trombi.
clj-gatling has a concept of virtual users. So for example if you run with concurrency 100 then there will be 100 virtual users running scenarios in parallel. When a virtual user finishes the scenario he starts running it again. Virtual user id (zero based) is passed in context object to every request function call. With that you can implement your case in a following way:
First read credentials from csv file.
(def all-credentials (read-100-user-credentials-from-csv-file))
Then use them in request function like this
(def my-request-fn [{:keys [user-id]}]
(let [user-credentials (nth all-credentials user-id)]
(add-to-basket user-credentials)))
Would that work in your case?
from trombi.
I guess it would work! It's just I thought about having more users than concurrency so that it would switch between them chaotically. :-) It seems I have to start writing something and then see if I really need that.
Thanks!
from trombi.
Related Issues (20)
- An issue with async/timeout HOT 7
- Add scenario pre-hook and post-hook HOT 1
- Simulation with concurrency distribution fails when duration left unspecified HOT 3
- Upgrade http-kit for JDK 9 HOT 6
- Issues with high concurrency HOT 2
- Log timeouts HOT 1
- With uneven scenario weights some scenarios might run with concurrency 0 HOT 1
- clj-time HOT 6
- Steps running serially? HOT 3
- How to identify concurrency issues HOT 7
- Kill a simulation? HOT 2
- Add raw reporter HOT 2
- File based raw reporter does not work when there are less than 20000 requests in simulation
- Catch also AssertionErrors and mark those requests as KOs
- IndexOutOfBoundsException when splitting rate to weighted scenarios HOT 1
- Progress reporter shows negative concurrency values sometimes in the end of the simulation
- Terminate scenario early based on step function return value HOT 1
- Reporters console output is called too early before the results have been calculated
- Concurrency is higher than given in options
- Divide by zero when experimental test runner stats is enabled 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 trombi.