Пример #1
0
        /// <summary>
        /// Gets the Page Results Count - Need to change return type to string after building all the View Poartal Grids
        /// </summary>
        /// <returns>string value indicating the Page Results Text</returns>
        public string GetPageResults()
        {
            switch (GridName)
            {
            case ViewPortalResultsGridNames.MyTests:
                return(ViewPortalMyTestResultsGrid.GetPageResults());

                break;

            case ViewPortalResultsGridNames.InProgressTests:
                return(ViewPortalInProgressTestResultsGrid.GetPageResults());

                break;

            case ViewPortalResultsGridNames.ScheduledTests:
                return(ViewPortalScheduledTestResultsGrid.GetPageResults());

                break;

            case ViewPortalResultsGridNames.RecommendedTests:
                return(ViewPortalRecommendedTestResultsGrid.GetPageResults());

                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Пример #2
0
        /// <summary>
        /// Selects the Previous Page Results for the Grid
        /// </summary>
        public void SelectPreviousPageResults()
        {
            switch (GridName)
            {
            case ViewPortalResultsGridNames.MyTests:
                ViewPortalMyTestResultsGrid.ClickPreviousPage();
                break;

            case ViewPortalResultsGridNames.InProgressTests:
                ViewPortalInProgressTestResultsGrid.ClickPreviousPage();
                break;

            case ViewPortalResultsGridNames.ScheduledTests:
                ViewPortalScheduledTestResultsGrid.ClickPreviousPage();
                break;

            case ViewPortalResultsGridNames.RecommendedTests:
                ViewPortalRecommendedTestResultsGrid.ClickPreviousPage();
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Пример #3
0
        /// <summary>
        /// Sorts Results in the Ascending Order based on the Column Name specified
        /// </summary>
        /// <param name="columnName">Column Name Used for Sorting the Results</param>
        /// <remarks>Row Index = 1 specifies the Header Row for this Grid</remarks>
        public void SortResultsInDescendingOrderByColumnName(string columnName)
        {
            switch (GridName)
            {
            case ViewPortalResultsGridNames.MyTests:
                ViewPortalMyTestResultsGrid.SortDescending(columnName);
                break;

            case ViewPortalResultsGridNames.InProgressTests:
                ViewPortalInProgressTestResultsGrid.SortDescending(columnName);
                break;

            case ViewPortalResultsGridNames.ScheduledTests:
                ViewPortalScheduledTestResultsGrid.SortDescending(columnName);
                break;

            case ViewPortalResultsGridNames.RecommendedTests:
                ViewPortalRecommendedTestResultsGrid.SortDescending(columnName);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Пример #4
0
        /// <summary>
        /// Initializes the View Portal Results Grid based on the GridName (ViewPortalResultsGridName)
        /// </summary>
        public void InitializeViewPortalResultsGrid()
        {
            switch (GridName)
            {
            case ViewPortalResultsGridNames.MyTests:
                ViewPortalMyTestResultsGrid = new ViewPortalMyTestResultsGrid(ViewPortalMyTestResultsGridSelector, true, ControlPrefix);
                break;

            case ViewPortalResultsGridNames.InProgressTests:
                ViewPortalInProgressTestResultsGrid = new ViewPortalInProgressTestResultsGrid(ViewPortalInProgressTestResultsGridSelector, true, ControlPrefix);
                break;

            case ViewPortalResultsGridNames.ScheduledTests:
                ViewPortalScheduledTestResultsGrid = new ViewPortalScheduledTestResultsGrid(ViewPortalScheduledTestResultsGridSelector, true, ControlPrefix);
                break;

            case ViewPortalResultsGridNames.RecommendedTests:
                ViewPortalRecommendedTestResultsGrid = new ViewPortalRecommendedTestResultsGrid(ViewPortalRecommendedTestResultsGridSelector, true, ControlPrefix);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Пример #5
0
        /// <summary>
        /// Finds the Row containing the grade level range from the View Portal Scheduled Tests Results Grid.
        /// </summary>
        /// <param name="gradeLevelRange">grade level range of the test to be found</param>
        public ViewPortalScheduledTestResultsRow FindScheduledTestRowUsingGradeLevelColumn(string gradeLevelRange)
        {
            var viewPortalScheduledTestResultsRow = ViewPortalScheduledTestResultsGrid.GetsFirstRowContainingTextToFindFromList("Grade Level", gradeLevelRange);

            return(viewPortalScheduledTestResultsRow);
        }
Пример #6
0
        /// <summary>
        /// Finds the Row containing the subject from the View Portal Scheduled Tests Results Grid.
        /// </summary>
        /// <param name="subject">subject of the test to be found</param>
        public ViewPortalScheduledTestResultsRow FindScheduledTestRowUsingSubjectColumn(string subject)
        {
            var viewPortalScheduledTestResultsRow = ViewPortalScheduledTestResultsGrid.GetsFirstRowContainingTextToFindFromList("Subject", subject);

            return(viewPortalScheduledTestResultsRow);
        }
Пример #7
0
        /// <summary>
        /// Finds the Row containing the testName from the View Portal Scheduled Tests Results Grid.
        /// </summary>
        /// <param name="testName">test name of the test to be found</param>
        public ViewPortalScheduledTestResultsRow FindScheduledTestRowUsingTestNameColumn(string testName)
        {
            var viewPortalScheduledTestResultsRow = ViewPortalScheduledTestResultsGrid.GetsFirstRowContainingTextToFindFromList("Test Name", testName);

            return(viewPortalScheduledTestResultsRow);
        }
Пример #8
0
        /// <summary>
        /// Clicks on the Test Name Link in the Row concerned from the View Portal Scheduled Tests Results Grid.
        /// </summary>
        /// <param name="rowIndex">Index of the Row concerned</param>
        public void SelectScheduledTestName(int rowIndex)
        {
            var viewPortalScheduledTestResultsRow = (ViewPortalScheduledTestResultsRow)ViewPortalScheduledTestResultsGrid.GetRowFromList(rowIndex);

            viewPortalScheduledTestResultsRow.SelectTestName();
        }
Пример #9
0
        /// <summary>
        /// Gets the Test Name for the row concerned from the View Portal Scheduled Tests Results Grid.
        /// </summary>
        /// <param name="rowIndex">Index of the Row concerned</param>
        /// <returns>Name of the Test for the Row Concerned</returns>
        public string GetScheduledTestName(int rowIndex)
        {
            var viewPortalScheduledTestResultsRow = (ViewPortalScheduledTestResultsRow)ViewPortalScheduledTestResultsGrid.GetRowFromList(rowIndex);

            return(viewPortalScheduledTestResultsRow.GetTestName());
        }