public void IPN18C_Certificate_Mode_Open_Test() { ExistingCertListPage existingCertListPage = NOCSPageHelper.LoginPage.LoginAsAdmin(TestContext) .VerifyLogOutButtonIsPresent() .Goto18EdExistingCertListPage(TestContext); BaseCertificatePage baseCertificatePage = existingCertListPage.SelectACertificateOfType(CertificateType.IPN); ((IPN18CPage)baseCertificatePage).EnableViewMode(ViewMode.CertificateMode) .VerifyPage1Loads() .ClickNext() .VerifyPage2Loads() .ClickNext() .VerifyPage3Loads() .ClickNext() .VerifyPage4Loads() .ClickNext() .VerifyPage5Loads() .ClickNext() .VerifyPage6Loads() .ClickNext() .VerifyPage7Loads() .ClickNext() .VerifyPage9Loads(); }
[Ignore] //certificate type not present in production public void ESN4C_Data_Mode_Open_Test() { ExistingCertListPage existingCertListPage = NOCSPageHelper.LoginPage.LoginAsAdmin(TestContext) .VerifyLogOutButtonIsPresent() .Goto18EdExistingCertListPage(TestContext); BaseCertificatePage baseCertificatePage = existingCertListPage.SelectACertificateOfType(CertificateType.ESN); ((ESN4CPage)baseCertificatePage).EnableViewMode(ViewMode.DataMode) .VerifyPart1Loads() .ClickNext() .VerifyPart2Loads() .ClickNext() .VerifyPart3Loads() .ClickNext() .VerifyPart4Loads() .ClickNext() .VerifyPart5Loads() .ClickNext() .VerifyPart6Loads() .ClickNext() .VerifyPart7Loads() .ClickNext() .VerifyPart8Loads() .ClickNext() .VerifyPart9Loads(); //.ClickNext() //.VerifyPart10Loads() //.ClickNext() //.VerifyPart11Loads(); }
public void FVM7C_Certificate_Mode_Open_Test() { ExistingCertListPage existingCertListPage = NOCSPageHelper.LoginPage.LoginAsAdmin(TestContext) .VerifyLogOutButtonIsPresent() .Goto18EdExistingCertListPage(TestContext); BaseCertificatePage baseCertificatePage = existingCertListPage.SelectACertificateOfType(CertificateType.FVM); ((FVM7CPage)baseCertificatePage).EnableViewMode(ViewMode.CertificateMode) .VerifyPage1Loads() .ClickNext() .VerifyPageContinuationPageLoads(); }
public BaseCertificatePage SelectACertificateOfType(CertificateType certificateType) { BaseCertificatePage certificatePage = new BaseCertificatePage(); //Enable this Only in UAT Environment //ExistingCertificateButton.Click(); switch (certificateType) { case CertificateType.DPN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.DPN18C; break; } case CertificateType.IMN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.IMN18C; break; } case CertificateType.DCN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.DCN18C; break; } case CertificateType.IPN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.IPN18C; break; } case CertificateType.ICN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.ICN18C; break; } case CertificateType.XNN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.XNN18C; break; } case CertificateType.FAM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FAM7C; break; } case CertificateType.FCM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FCM7C; break; } case CertificateType.FDM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FDM7C; break; } case CertificateType.FIN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FIN7C; break; } case CertificateType.FMN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FMN7C; break; } case CertificateType.FSM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FSM7C; break; } case CertificateType.FVM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.FVM7C; break; } case CertificateType.DFHN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.DFHN19C; break; } case CertificateType.DVN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.DVN18C; break; } case CertificateType.ECN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.ECN6C; break; } case CertificateType.EPM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.EPM6C; break; } case CertificateType.ESN: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.ESN4C; break; } case CertificateType.EVM: { SelectAnyCertificateOfType(certificateType); certificatePage = NOCSPageHelper.EVM2C; break; } default: break; } return(certificatePage); }