Reputation: 52
I have 2 test plans, 1)Login 2)View Statement 3)Logout
I want to create scenarios, like 1)Login-Logout 2)Login-View Statement.
I have tried using throughput controller, but no luck.
Upvotes: 1
Views: 41
Reputation: 168247
The best option is using Module Controller, this way you will be able to re-use this Login
part in both scenarios and not to violate the DRY principle
Add Test Fragment somewhere to your Test Plan and put your Login logic there
Add Module Controller where you want perform the login and point it to the Test Fragment from point 1
Repeat the same for the Login - View Statement scenario
Upvotes: 1
Reputation: 46
Add two thread groups,namely 1) Scenario 1,2 2) Add Login and Logout to Scenario 1. 3) Add Login and view statement to Scenario 2.
Upvotes: 1