Jaarvis Interview Question

How to automate testing