コード例 #1
0
 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");
     }
 }
コード例 #2
0
            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");
            }