Actually no one received the electric shocks, an actor pretended to receive them while the subject who was participating in the study followed the instructions and believed that he was giving the electric shocks. This study measured the level of obedience that a person can develop when faced with an authority figure that gives him orders.
I hope this information can help you.