Example #1
0
        public static void AmIOnPageSwitch(string page)
        {
            switch (page)
            {
            case "Logged Out":
            {
                LoginPage.AmIOnLoggedOutPage();
                break;
            }

            case "Logged In":
            {
                LoginPage.AmIOnPage();
                break;
            }

            case "Announcement Portal":
            {
                AnnouncementPortalPage.AmIOnPage();
                break;
            }

            case "SSP":
            {
                SSPPage.AmIOnPage();
                break;
            }

            case "Announcement Manager":
            {
                AnnouncementManagerPage.AmIOnPage();
                break;
            }

            case "Incident Template Manager":
            {
                TemplateManagerPage.AmIOnPage(page);
                break;
            }

            case "Problem Template Manager":
            {
                TemplateManagerPage.AmIOnPage(page);
                break;
            }

            case "Change Template Manager":
            {
                TemplateManagerPage.AmIOnPage(page);
                break;
            }

            case "Flex1 Template Manager":
            {
                TemplateManagerPage.AmIOnPage(page);
                break;
            }

            case "Flex2 Template Manager":
            {
                TemplateManagerPage.AmIOnPage(page);
                break;
            }

            case "Incident Task Manager":
            {
                TaskManagerPage.AmIOnPage(page);
                break;
            }

            case "Change Task Manager":
            {
                TaskManagerPage.AmIOnPage(page);
                break;
            }

            case "User Center":
            {
                UserCenterPage.AmIOnPage();
                break;
            }

            default:
            {
                log.Error("This page[" + page + "] does not exist. Check the feature file for errors.");
                Assert.Fail("This page[" + page + "] does not exist. Check the feature file for errors.");
                break;
            }
            }
        }