//Test case for Send request link on Tenant Dashboard public void TC_TenantDB_SendRequest() { try { test = extent.StartTest("Check Send Request link on Tenants Dashboard"); TenantDashboard tenantDashboard = new TenantDashboard(); tenantDashboard.DashboardMethod(); tenantDashboard.SendRequestMethod(); TenantsMyRequest tenantsMyRequest = new TenantsMyRequest(); tenantsMyRequest.AddNewRequest(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Testing Send Request using automation is successful"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Send Request using automation needs to be verified again"); throw; } }
public void TC_TenantDB_MyReq_EditRequest() { try { test = extent.StartTest("Check *My Request-->Edit Request* link on Tenant Dashboard"); TenantDashboard tenantDashboard = new TenantDashboard(); tenantDashboard.DashboardMethod(); tenantDashboard.MyRequestMethod(); TenantsMyRequest tenantsMyRequest = new TenantsMyRequest(); tenantsMyRequest.EditRequestMethod(); Driver.wait(5); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Testing My Requests-->Edit Request using automation is successful"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Testing My Requests-->Edit Request using automation code needs to be checked again"); throw; } }
public void TC_TenantDB_MyRentals() { try { test = extent.StartTest("Check *My Request-->My Rentals* link on Tenant Dashboard"); Driver.wait(10); TenantDashboard tenantDashboard = new TenantDashboard(); tenantDashboard.DashboardMethod(); tenantDashboard.MyRental(); tenantDashboard.MyRentalSendReq(); TenantsMyRequest tenantsMyRequest = new TenantsMyRequest(); tenantsMyRequest.AddNewRequest(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "User able to fill Rental Request Form by navigating from My Rentals on DB"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "There is issue in filling up Rental Request Form by navigating from My Rentals on DB"); throw; } }
public void TC_TenantDB_MyReq_AddNewRequest() { try { test = extent.StartTest("Check *My Request --> Add New request* link on Tenants dashboard"); TenantDashboard tenantDashboard = new TenantDashboard(); tenantDashboard.DashboardMethod(); tenantDashboard.MyRequestMethod(); TenantsMyRequest tenantsMyRequest = new TenantsMyRequest(); tenantsMyRequest.ClickOnAddNewRequest(); tenantsMyRequest.AddNewRequest(); Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Testing My Requests-->Add New Request using automation is successful"); } catch { Base.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Testing My Requests-->Add New Request using automation needs code check"); throw; } }
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; } }