Exemple #1
0
        private static void RunByPagename(WebReportingManager reportingManager, string page)
        {
            switch (page.ToLower())
            {
            case "login":
                RunUnitTestsClass <LoginTest> .RunTests(reportingManager);

                break;

            case "account":
                RunUnitTestsClass <AccountCreation> .RunTests(reportingManager);

                break;

            case "home":
                RunUnitTestsClass <HomeTest> .RunTests(reportingManager);

                break;

            case "viewideas":
                RunUnitTestsClass <ViewIdeasTest> .RunTests(reportingManager);

                break;

            case "submitideas":
                RunUnitTestsClass <SubmitIdeasTest> .RunTests(reportingManager);

                break;

            case "approveideas":
                RunUnitTestsClass <ApproveIdeaTest> .RunTests(reportingManager);

                break;
            }
        }
Exemple #2
0
        private static void RunAPITests()
        {
            var reportingManager = new APIReportingManager("index" + DateTime.Now.ToFileTime(), "extentReport.config");

            RunUnitTestsClass <CategoryTest> .RunTests(reportingManager);

            RunUnitTestsClass <ContentTest> .RunTests(reportingManager);

            RunUnitTestsClass <DepartmentTest> .RunTests(reportingManager);

            RunUnitTestsClass <IdeaTest> .RunTests(reportingManager);
        }
Exemple #3
0
        private static void RunAllTests(WebReportingManager reportingManager)
        {
            RunUnitTestsClass <LoginTest> .RunTests(reportingManager);

            RunUnitTestsClass <AccountCreation> .RunTests(reportingManager);

            RunUnitTestsClass <HomeTest> .RunTests(reportingManager);

            RunUnitTestsClass <ViewIdeasTest> .RunTests(reportingManager);

            RunUnitTestsClass <SubmitIdeasTest> .RunTests(reportingManager);

            RunUnitTestsClass <ApproveIdeaTest> .RunTests(reportingManager);
        }