Test interview question

How automation testing is done