To check for allergy
If you think you are allergic to something then an allergist takes your history and examines you.
Then scratch testing is usually done on the skin - without needles. Not really painful. A drop of possible allergic substances is put in the skin. If you have an allergy a small welt- like a mosquito bite shows up. The allergist then interprets that along with your history.