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_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; } }