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 TC_013_03() { try { try { test = extent.StartTest(" Add Tenants Detail for listed property"); OwnerNavigation ObjOwnerNavigation = new OwnerNavigation(); ObjOwnerNavigation.OwnerMethod(); ObjOwnerNavigation.SearchMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Info, "Searched property to Add tenant"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Error in Search property to Add tenant"); throw; } try { AddTenant ObjAddTenant = new AddTenant(); ObjAddTenant.AddTenantMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Info, "Executed Add tenant"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Error in execution of Add tenant"); throw; } try { AddTenantLiabilityDetails ObjAddLiabiltyMethod = new AddTenantLiabilityDetails(); ObjAddLiabiltyMethod.AddLiabiltyMethod(); ObjAddLiabiltyMethod.CompleteTenantMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Info, "Tenant Details Added"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Error while Adding Tenant Liability Details"); throw; } Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Added a new tenant to the listed Property"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Error in Adding a new tenant to the listed Property"); } }
public void TC_009_02() { test = extent.StartTest("Verifying Financial Details of listed property"); OwnerNavigation ObjOwnerNavigation = new OwnerNavigation(); ObjOwnerNavigation.OwnerMethod(); ObjOwnerNavigation.SearchMethod(); ObjOwnerNavigation.FinanceDMethod(); PropertyFinDetails propertyFinDetails = new PropertyFinDetails(); propertyFinDetails.HomeValueMethod(); propertyFinDetails.RepaymentsMethod(); propertyFinDetails.ExpensesMethod(); propertyFinDetails.RentalPaymentMethod(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Financial Details Added"); //Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Check for information, Test case failed"); }