Ejemplo n.º 1
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);
        }
 public void GivenIHaveAWithCoreResultOfWithCoreAndAssessmentSeriesAndSpecialism(string ULN, string Grade, string CoreText, string AssessmentSeries, string SpecialismText)
 {
     ResultsSearchForALearnerPage.EnterULN(ULN);
     ResultsLearnersResultsPage.MaximiseWindow();
     ResultsLearnersResultsPage.ClickAddResultLink();
     ResultsSelectCorePage.VerifyAddCorePage(CoreText, AssessmentSeries);
     ResultsSelectCorePage.SelectAStarResult();
     ResultsResultAddedConfirmationPage.VerifyResultAddeddConfirmationPage(ULN);
     ResultsResultAddedConfirmationPage.ClickBackToLearnersResultsButton();
     ResultsLearnersResultsPage.VerifyAssessmenSeriesText(AssessmentSeries, Grade);
 }
        public void GivenIAddAResultToTheRegistration()
        {
            var uln = _scenarioContext["uln"] as string;

            AssessmentEntriesLearnersAddNextCoreAssessmentEntryPage.PressBackLink();
            AssessmentEntriesLearnersAssessmentEntriesPage.PressHomeBreadcrumb();
            TlevelDashboardPage.ClickResultsLink();
            ResultsDashboardPage.ClickSearchForALearnerLink();
            ResultsSearchForALearnerPage.EnterULN(uln);
            ResultsLearnersResultsPage.ClickAddResultLink();
            ResultsSelectCorePage.SelectAStarResult();
        }
        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();
        }
        public void ThenTheReactivatedRegistrationWillDisplayTheGradeAs(string ExpectedGrade)
        {
            var uln        = scenarionContext["uln"] as string;
            int GradeCount = SqlQueries.ReturnLastActiveGradeCount(uln);

            if (GradeCount == 0)
            {
                string ExpectedDBGrade = "Not received";
                Console.WriteLine(ExpectedDBGrade);
                ResultsLearnersResultsPage.VerifyGradeText(ExpectedGrade);
                ResultsLearnersResultsPage.VerifyGradeText(ExpectedDBGrade);
            }
            else
            {
                string ExpectedDBGrade = SqlQueries.ReturnLastActiveGrade(uln);
                Console.WriteLine(ExpectedDBGrade);
                ResultsLearnersResultsPage.VerifyGradeText(ExpectedGrade);
                //This checks the last active grade on the database matches the grade shown against the registration
                ResultsLearnersResultsPage.VerifyGradeText(ExpectedDBGrade);
            }
        }
Ejemplo n.º 7
0
 public void ThenTheLearnersResultsPageWillBeDisplayedFor(string ULN)
 {
     ResultsLearnersResultsPage.VerifyLearnersResultsPage();
 }
Ejemplo n.º 8
0
 public void ThenLinkIsDisplayed(string AddEntryLink)
 {
     ResultsLearnersResultsPage.VerifyAddEntryLink(AddEntryLink);
 }
Ejemplo n.º 9
0
 public void ThenThereWillNoTextBelowTheSpecialism()
 {
     ResultsLearnersResultsPage.VerifyAssessmentEntryTextNotPresent();
 }
Ejemplo n.º 10
0
 public void ThenTheTextBelowTheCoreWillDisplay(string AssessmentEntryText)
 {
     ResultsLearnersResultsPage.VerifyCoreAssessmentEntryText(AssessmentEntryText);
 }
 public void ThenIShouldSeeAFinalTagOnThePage()
 {
     ResultsLearnersResultsPage.VerifyLearnerResultPage();
     ResultsLearnersResultsPage.VerifyFinalHeader();
 }
Ejemplo n.º 12
0
 public void ThenSearchAgainButtonTakesMeToSearchResultPage()
 {
     ResultsLearnersResultsPage.ClickSearchAgainBtn();
 }
Ejemplo n.º 13
0
 public void ThenIShouldSeeABeingAppealedMessageOnThePage()
 {
     ResultsLearnersResultsPage.VerifyLearnerResultPage();
     ResultsLearnersResultsPage.VerifyBeingAppealed();
 }
Ejemplo n.º 14
0
 public void ThenTheCoreIsDisplayedAs(string CoreText)
 {
     ResultsLearnersResultsPage.VerifyCore(CoreText);
 }
 public void ThenTheLearnersResultsForWithdrawnLearnerPageWillBeDisplayedFor(string ULN)
 {
     ResultsLearnersResultsPage.VerifyLearnersResultsPage(ULN);
 }
Ejemplo n.º 16
0
 public void ThenSpecialismIsDisplayedAs(string SpecialismText)
 {
     ResultsLearnersResultsPage.VerifySpecialismAdded(SpecialismText);
 }
Ejemplo n.º 17
0
 public void WhenIClickTheAddResultLink()
 {
     ResultsLearnersResultsPage.MaximiseWindow();
     ResultsLearnersResultsPage.ClickAddResultLink();
 }
Ejemplo n.º 18
0
 public void ThenTheTextBelowTheSpecialismWillDisplay(string AssessmentEntryText)
 {
     ResultsLearnersResultsPage.VerifySpecialismAssessmentEntryText(AssessmentEntryText);
 }
 public void ThenTheResultsLearnersResultPageIsDisplayed()
 {
     ResultsLearnersResultsPage.VerifyLearnerResultPage();
 }
Ejemplo n.º 20
0
 public void ThenTheTextBelowTheCoreWillDisplayTheAssessmentSeriesAsAnd(string Series, string Grade)
 {
     ResultsLearnersResultsPage.VerifyAssessmenSeriesText(Series, Grade);
 }
 public void ThenTheOrignalGradeAndAStatusOfFinalWillNowBeShownOnTheGradeRowOfTheCoreDetailsTableOnTheLearnerSResultsPage()
 {
     ResultsLearnersResultsPage.VerifyAssessmenSeriesTextFINALState();
 }
Ejemplo n.º 22
0
 public void WhenIClickTheSearchForALearnerBreadcrumbLinkOnTheLearnerSResultsPage()
 {
     ResultsLearnersResultsPage.ClickSearchAgainBreadcrumb();
 }
 public void WhenIClickOnTheContactUsLinkOnTheResultsLearnersResultsPage()
 {
     ResultsLearnersResultsPage.ClickContactUsLink();
 }
Ejemplo n.º 24
0
 public void ThenIShouldSeeLearnerResultsPage()
 {
     ResultsLearnersResultsPage.VerifyLearnerResultPage();
 }
Ejemplo n.º 25
0
 public void WhenIClickTheSearchAgainLinkOnTheResultsLearnersResultsPage()
 {
     ResultsLearnersResultsPage.ClickSearchAgainLink();
 }
Ejemplo n.º 26
0
 public void GivenIMaximiseTheBrowserWindow()
 {
     ResultsLearnersResultsPage.MaximiseWindow();
 }
 public void WhenIPressTheChangeLinkOnTheResultsLearnersResultsPage()
 {
     ResultsLearnersResultsPage.ClickChangeResultLink();
 }