If any application is given to you how do you start testing? Which type of testing is first carried out for any client-server or web based application?

Please explain me in details.