Testing / Apache JMeter Interview questions
What is the difference between a Sampler and a Controller in JMeter?
A Sampler is the element that actually sends a request to the system under test and produces a measurable sample result - response time, status, and data - it's the thing generating traffic.
A Controller, by contrast, doesn't send any requests itself; it governs the order, repetition, or condition under which the samplers nested inside it run - a Loop Controller repeats them, an If Controller conditionally runs them, and a Transaction Controller groups them for combined timing.
In short, samplers do the work, while controllers decide when, how often, or whether that work happens, and a well-built test plan typically nests samplers inside one or more controllers to structure its flow.
More Related questions...
