public void PO_Inspections() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Add a New Inspection Request"); PropertyOwner obj = new PropertyOwner(); obj.Inspections(); }