Ramar
Ramar

Reputation: 1564

Can a Jmeter Java Request can have Summary Report?

Is it possible for a Java request to have a summary report to it. I tried attaching TPS listener, results tree, results table but could not see the report populated after running in jmeter. It is not explicitly mentioned jmeter docs, but i assume, It should be supported.But i am not able to see it even after successful run of the test as seen from logs (runTest() method gets called successfully)

Upvotes: 0

Views: 168

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

It is

enter image description here

The runTest() function is supposed to return a SampleResult and it's your job to call the necessary functions like:

See JavaTest and SleepTest example implementations for reference.

You may also find JSR223 Sampler with Groovy easier to use (Java syntax should work in the majority of cases)

Upvotes: 1

Related Questions