public void TC_004_03() { try { test = extent.StartTest("Add New Property"); try { OwnerNavigation ObjOwnerNavigation = new OwnerNavigation(); ObjOwnerNavigation.OwnerMethod(); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Owner Properties navigation"); throw; } try { ANPPropertyDetails ObjPropertyDetails = new ANPPropertyDetails(); ObjPropertyDetails.AddNewPropertyClick(); ObjPropertyDetails.PropDetailsMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Property Details are entered successfully"); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Property Details not entered"); throw; } try { ANPFinancialDetails ObjFinancialDetails = new ANPFinancialDetails(); ObjFinancialDetails.FinDetailsMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Financial details are added successfully"); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Financial details not entered"); throw; } try { ANPTenantDetails ObjTenantDetails = new ANPTenantDetails(); ObjTenantDetails.TenantDetails4mExcel(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Tenant Details are added successfully"); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Tenant Detail are not entered"); throw; } Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Property is added successfully"); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Property could not be added"); } }
public void PO_AddNewProperty() { try { test = extent.StartTest("Check if user is able to create new property with Add New Property link in Property Owner Dashboard"); PODashboard ObjPODashboard = new PODashboard(); ObjPODashboard.DashboardMethod(); ObjPODashboard.AddNewPropertyMethod(); ANPPropertyDetails ObjANPropertyDetails = new ANPPropertyDetails(); ObjANPropertyDetails.PropDetailsMethod(); ANPFinancialDetails ObjANPFinancialDetails = new ANPFinancialDetails(); ObjANPFinancialDetails.FinDetailsMethod(); ANPTenantDetails ObjANPTenantDetails = new ANPTenantDetails(); ObjANPTenantDetails.TenantDetails4mExcel(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Verification of Add New Property link done"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Verification of Add new Property link could not be done"); } }