Hi,
Not sure if I understand whole scenario but I usually use Module Controller
to include test fragment and JSR223 Sampler before each Module Controller
to prepare data for that Test Fragment.

Regards,
Mariusz

On Tue, 4 Aug 2020 at 22:00, gangadhara kopparapu <[email protected]>
wrote:

> Hi,
>
> While working with test fragments, i came across one situation where I'm
> stuck. Please help me out with the below problem.
>
> Problem statement :
> How to refer same test fragment under a thread group multiple times with
> different test data.
>
> Scenario: Login to Amazon and place order for two different items and
> logout.
>
> 3 Test fragments created:
> 1. Login to Amazon
> 2. Place order
> 3. Logout
>
> I'm using csv file to pass data for all test fragments.
>
> Now, created a thread group, using include controller i have referred the
> test fragments  in the below order :
>
> 1. login,
> 2. place order,
> 3. place oder (referred twice for 2nd item order)
> 4. Logout
>
> Here I'm not able to perform second item order as the logic in 'place
> order' is reading  first item order only.
>
> How i can pass different data to place when it is called second time in
> same thread group?
>
> Please advise me on this.
>
> Thanks and Regards
> Gangadhara K
>

Reply via email to