public void TC_EditApplictaionTenant() { try { test = extent.StartTest("Edit Application in Tenants Module"); EditApplicationTenant ObjEditApplicationTenant = new EditApplicationTenant(); ObjEditApplicationTenant.TenantMethod(); ObjEditApplicationTenant.SearchMethod(); ObjEditApplicationTenant.EditApplication(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Edited Application for Property in Tenants Module"); } catch (Exception) { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Error occured while editing Application for Property in Tenants Module"); } }
public void TC_TenantDB_MyApplications() { try { test = extent.StartTest("Check *My Request-->Edit Request* link on Tenant Dashboard"); Driver.wait(10); TenantDashboard tenantDashboard = new TenantDashboard(); tenantDashboard.DashboardMethod(); tenantDashboard.MyApplication(); Driver.wait(5); EditApplicationTenant editApplicationTenant = new EditApplicationTenant(); //editApplicationTenant.TenantMethod(); editApplicationTenant.SearchMethod(); Driver.wait(5); editApplicationTenant.EditApplication(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Testing My Application using automation is successful"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Please check the code there is some issue executing the My Application TestCase"); throw; } }