Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
Jmeter Simple controller and Transaction controller

Solved 1 Answers 75 Views
0 1

Hi friends,

I have one doubt regarding Simple and Transaction controller

MY Process is -> Goto Url -> Sign_in -> Create order

I recorded the script

Thread Group

My_page(Simple Controller)

  • api 1
  • api2
  • api3 (fails)

Page_Sigin_in(Simple Controller)

  • api1
  • api2
  • api3
  • api4

etc

like this am having in my jmx file 

and i run the script in NON-GUI mode and created the dashboard Result 

I open the index.html file -> view the result 

Result is show for each single API

 so it is hard to identify  each module api

if single api fails it will show it separately

so i used Transaction Controller , it will consolidate the Api and gives the result for each controller,

 but if single api fails it's not showing the error result in dashboard 

Any solution for this ?

1 Answer

0
Best answer
0
  • Simple Controller is basically a container for nested requests for logically grouping
  • Transaction Controller can act in 2 modes:

    1. Response time for each request plus cumulative time of all nested requests (if Generate parent sample box is not checked)
    2. Only cumulative time of nested requests (if Generate parent sample box is checked)

So make sure that Generate parent sample box is not ticked and you should have consistent behavior for both scenarios.

answered by (748 points)
selected by
1Comments
commented by (188 points)
edited by
@bharat

Thank you, I will try this one.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...