Exemplo n.º 1
0
 public void WhenIRegisterTheLearnerOnANewCourseUsingTheSameProvider()
 {
     RegistrationsWithdrawOptionsPage.ClickRegisterLearnerNewCourseRadioButton();
     RegistrationsWithdrawOptionsPage.ClickContinueButton();
     RegistrationsManualPage.SelectProviderFromList(RegistrationsManualPage.InputPovider);
     RegistrationsManualPage.ClickContiune();
 }
 public void ThenIShouldSeeChangeSpecialismPageWithAllSpecialisms()
 {
     Assert.AreEqual(ChangeSpecialismPageTitle, WebDriver.Title);
     Assert.IsTrue(WebDriver.Url.Contains(SelectSpecialismPageUrl));
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.VerifySpecialismPageDynamicHeader();
 }
Exemplo n.º 3
0
 public void GivenICreateAManualRegistration()
 {
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.CreateRegistrationWithSpecialism(Constants.ManualRegUln, Constants.ManualRegFirstName, Constants.ManualRegLastName, Constants.ManualRegDobDay, Constants.ManualRegDobMonth, Constants.ManualRegDobYear);
     RegistrationsManualPage.ClickSubmit();
     Framework.Helpers.ElementHelper.ClickElement(RegistrationsPage.BacktoRegistrationBtn);
 }
 public void GivenICreateAManualRegistration()
 {
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.CreateRegistrationWithSpecialism(Constants.ManualRegULN, Constants.ManualRegFirstName, Constants.ManualRegLastName, Constants.ManualRegDOBDay, Constants.ManualRegDOBMonth, Constants.ManualRegDOBYear);
     RegistrationsManualPage.ClickSubmit();
     RegistrationsManualPage.ClickElement(RegistrationsPage.BacktoRegistrationLink);
 }
 public void GivenIAmOnSearchRegistrationPage()
 {
     RegistrationsManualPage.CreateRegistrationWithoutSpecialism("9900000060", "FirstName1", "LastName1", "01", "01", "2010");
     RegistrationsManualPage.ClickSubmit();
     RegistrationsManualPage.ClickBackToRegistrations();
     ClickElement(SearchRegistrationLink);
 }
Exemplo n.º 6
0
        public void GivenIWithdrawTheRegistrationAndReactivateIt()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();

            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();

            RegistrationsWithdrawRegistrations.WithdrawApplication();
            RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();

            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsWithdrawOptionsPage.ClickReactiveRegistrationRadioButton();
            RegistrationsWithdrawOptionsPage.ClickContinueButton();
            RegistrationReactivateAreYouSurePage.ClickYesRadioButton();
            RegistrationReactivateAreYouSurePage.ClickSubmitButton();
            RegistrationReactivate.ClickViewThisRegistrationButton();
            RegistrationsSearchPage.PressHomeBreadcrumb();

            ResultsDashboardPage.ClickResultsLink();
            ResultsDashboardPage.searchResult(uln);
        }
Exemplo n.º 7
0
        public void GivenIChangedTheProvider(Table table)
        {
            var row      = table.Rows;
            var provider = row[0]["Provider"];

            RegistrationsManualPage.ClickChangePoviderLink();
            RegistrationsManualPage.SelectProviderFromList(provider);
            RegistrationsManualPage.ClickChangeBtn();
        }
Exemplo n.º 8
0
        public void GivenISearchTheRegistration()
        {
            var uln = _scenarioContext["uln"] as string;

            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            EnterText(RegistrationsSearchPage.SearchBox, uln);
            ClickElement(RegistrationsSearchPage.SearchBtn);
        }
        public void GivenISearchTheRegistrationAndOnChangeProviderPage()
        {
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            string uln = _scenarioContext["uln"] as string;

            RegistrationsManualPage.EnterSearchUln(uln);
            RegistrationsManualPage.ClickSearchButton();
            RegistrationsManualPage.ClickChangePoviderLink();
        }
 public void WhenISelectADifferentProviderCoreAndSpecialismAndSubmitTheChanges()
 {
     RegistrationsManualPage.SelectProviderFromList(Constants.ManualRegUpdatedProvider);
     RegistrationsManualPage.ClickContiune();
     RegistrationReactivateChangeCorePage.SelectUpdatedCore(Constants.ManualRegUpdatedCore);
     ReregisterHasLearnerDecidePage.SelectYesAddSpecialismNow();
     ReregisterCreateSpecialismPage.UpdateSpecialism();
     ReregisterCheckAndSubmitPage.VerifyUpdatedReregisterData();
     ReregisterCheckAndSubmitPage.ClickSubmitButton();
 }
        public void GivenINavigateToTheDeleteRegistrationPage()
        {
            var uln = scenarionContext["uln"] as string;

            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();
        }
        public void GivenIAttemptToDeleteTheRegistrationWhichHasIPDataAgainstIt()
        {
            var uln = scenarionContext["uln"] as string;

            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();
        }
        public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResult()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn);
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn);
            RegistrationsActiveOptionPage.YesToCancelReg();
        }
        public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResultHoweverSomeoneElseHasJustAddedAResult()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn);
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn);

            int PAID = SqlQueries.RetrievePathwayAssessmentID(uln);

            SqlQueries.CreatePathwayResult(PAID);

            //RegistrationsActiveOptionPage.YesToCancelReg();
        }
Exemplo n.º 15
0
 public void GivenICreateANewRegistrationWhichISubsequentlyWithdraw()
 {
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.AddNewRegistrations();
     RegistrationsManualPage.CreateRegistrationWithSpecialism(Constants.ManualRegULN, Constants.ManualRegFirstName, Constants.ManualRegLastName, Constants.ManualRegDOBDay, Constants.ManualRegDOBMonth, Constants.ManualRegDOBYear);
     RegistrationsManualPage.ClickSubmit();
     ClickElement(RegistrationsPage.BacktoRegistrationLink);
     ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
     RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage();
     RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN");
     RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading();
 }
 public void WhenISelectDifferentProviderAndClickContinue()
 {
     RegistrationsManualPage.SelectProviderFromList(ChangeAnotherProvider);
     ClickContinueBtn();
 }
 public void ThenIAmShownTheRegistrationsSearchForARegistrationPage()
 {
     RegistrationsManualPage.VerifyRegistrationSearchPage();
 }
Exemplo n.º 18
0
 public void GivenICreatedRegistrationForTheAO()
 {
     RegistrationsManualPage.CreateRegistrationForPearson("9900000054", "FirstName1", "LastName1", "01", "01", "2010");
 }
Exemplo n.º 19
0
 public void GivenIWillSeeTheSpecialismPageWithTheExpectedHeading()
 {
     RegistrationsManualPage.VerifySpecialismPageDynamicHeader();
 }
 public void WhenIChangeAnotherProviderHasSameCoreFromTheList()
 {
     RegistrationsManualPage.SelectProviderFromList(ChangeProvider);
 }
Exemplo n.º 21
0
 public void WhenISelectACoreWhichIsIdenticalToTheCurrentOne()
 {
     RegistrationsManualPage.SelectCoreFromList(RegistrationsManualPage.InputCore);
     RegistrationsManualPage.ClickContiune();
 }
 public void GivenIChangedTheProviderTo(string p0)
 {
     RegistrationsManualPage.SelectProviderFromList(Constants.DbProviderNameForLrs);
     RegistrationChangeProviderPage.ClickChangeButton();
 }
 public void WhenIChangedProviderWithDifferentCoreAndClickChangeButton()
 {
     RegistrationsManualPage.SelectProviderFromList(ChangeProvider4);
     ClickButton(ChangeBtn);
 }
 public void GivenIHaveCreatedAManulRegistration()
 {
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.CreateManualRegistrationWithSpecialism("9900000001");
 }
 public void WhenIClickOnCancelButtonWihtoutSelectingOptions()
 {
     RegistrationsManualPage.ClickSubmit();
 }