The refraction is a vision test that determines your best visual aquity with corrective lenses.
Usually It can be done with the use of an instrument called a phoropter.

The phoropter holds corrective lenses that are positioned in front of patient's eye.
While looking at the eye chart through the phoropter, the optometrist or the ophthalmologist will adjust the lenses until the chart appears the clearest possible.