Muhammad Hamza Mirza
Muhammad Hamza Mirza

Reputation: 52

Setting Up Scenerios in Jmeter

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

Answers (2)

Dmitri T
Dmitri T

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

  1. Add Test Fragment somewhere to your Test Plan and put your Login logic there

    enter image description here

  2. Add Module Controller where you want perform the login and point it to the Test Fragment from point 1

    enter image description here

  3. Repeat the same for the Login - View Statement scenario

    enter image description here

Upvotes: 1

neel kamal
neel kamal

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.

enter image description here

Upvotes: 1

Related Questions