I am trying to determine the time of a scenario in my simulation. I have two scenarios. One with Kafka, where the record is stored in the database, and another with Rest, where a GET request is made to get a specific record from the same database, which is filled with the record from Kafka. After the record is found, the scenario is exited.
Now I want to have the time how long the REST scenario was executed.
I have two scenarios in my simulation: the first scenario imports records into a Kafka theme with Gatling Kafka. Then in mircoservice the records are deposited in the DB.
Second scenario: search for a record by ID using REST. This scenario is started in parallel and after it finds the record, the scenario is stopped.
Now I would like to know the duration of the second scenario.
@GeMi Your proposition about using groups was fine.
Using println is not scalable.
Without an example from @ArosanAn of its current simulation and an example of value they want, I cannot understand all that is about.
Maybe the duration for 1 virtual user => Groups are the way!
The duration of the injectionProfile? (from the first request of the first user to the last response of the last user) => We don’t have that and really, I don’t understand the use case.
I think that he have Scenario where he have in loop exec until some condition is true and he want known how long have take this Scenario - every VU seperately.
Groups will show max,min, pXX etc. but if he want to have information about every Scenario he must calculate how long it take - I’m not sure how get this from simulation.log.
Println is only example - he should save this information in some way.