Gatling exec scenario not shown in report

HI *,

I have defined following scenario:

reader is java written jms queue reader

`

val scnReadMessage = scenario(“Read messages”).exec{ session =>
if (session != null) {
reader.readSingleMessageFromQueue()
}
session
}

`

the executions are logged in .log file:

`

REQUEST Load testing xyz1   81              xyz1 1575971760934   1575971760951   OK       
USER    Load testing xyz1   81      END     1575971760934   1575971760951
USER    Load testing xyz1   81      START   1575971760934   1575971760934
USER    Read messages       22      END     1575971760926   1575971760953
USER    Read messages       22      START   1575971760926   1575971760926
REQUEST Load testing xyz2   82              xyz2 1575971760952   1575971760966   OK       
USER    Load testing xyz2   82      END     1575971760952   1575971760966
USER    Load testing xyz2   82      START   1575971760952   1575971760952

`

but the report file doesnt show this particular test scenario. What I am doing wrong?

here is the setup:

`

setUp(

xyz1.inject(constantUsersPerSec(msgPerSeconds) during (duration)).protocols(jmsConfig),
scnReadMessage.inject(constantUsersPerSec(msgPerSeconds) during (duration)).protocols(jmsConfig)
)

`

Thanks in advance for suggestions

Hey Maciej,

Can you comment xyz1 and try it. It will give you a clear picture of what’s going on inside the scnReadMessage scenario.

setUp(

//xyz1.inject(constantUsersPerSec(msgPerSeconds) during (duration)).protocols(jmsConfig),
scnReadMessage.inject(constantUsersPerSec(msgPerSeconds) during (duration)).protocols(jmsConfig)
)

I’m not sure what you expect to be logged here.
What’s for sure is that you can’t execute some arbitrary code in an exec block and expect it to magically generate some Gatling stats.
Only Gatling components do so.

I’m expecting exactly the same statistics to be generated with custom code, in my example with reading jms messages method, since gatling doesn’t support that. Can I somehow manage my case with gatling?

W dniu wtorek, 10 grudnia 2019 14:09:38 UTC+1 użytkownik Stéphane Landelle napisał:

I’m expecting exactly the same statistics to be generated with custom code

Nope

since gatling doesn’t support that. Can I somehow manage my case with gatling?

Best way is to contribute.

Thank you, I will concider your suggestion (since the execution times are already logged, it must be very much to do :slight_smile: )

Regards,
Maciej

W dniu wtorek, 10 grudnia 2019 14:59:23 UTC+1 użytkownik Stéphane Landelle napisał: