Testing / Apache JMeter Interview questions
When should you use the If Controller versus a separate Thread Group?
Use an If Controller when the conditional logic needs to happen within a single thread's existing flow - for example, only sending a follow-up request if a previous response indicated a certain condition, using variables already available in that thread's context.
Use a separate Thread Group when you need an entirely distinct population of virtual users with its own thread count, ramp-up, and loop settings, running a genuinely different flow - not just a conditional branch within the same flow, but a different simulated user behavior altogether.
A useful signal for choosing between them: if the decision is "should this one thread do X or Y next based on data it already has," that's an If Controller; if the decision is "should there be an entirely separate group of users doing something different," that's a separate Thread Group.
More Related questions...
