Update Catalog.java

Implemented AfterTest and BeforeTest , handled exception , message in CMD,TestNg and log file