Example #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;
            }
        }
Example #2
0
        private static void RunByCategoryname(WebReportingManager reportingManager, string name)
        {
            RunUnitTestsClass <LoginTest> .RunTestByCategory(reportingManager, name);

            RunUnitTestsClass <HomeTest> .RunTestByCategory(reportingManager, name);

            RunUnitTestsClass <ViewIdeasTest> .RunTestByCategory(reportingManager, name);

            RunUnitTestsClass <SubmitIdeasTest> .RunTestByCategory(reportingManager, name);

            RunUnitTestsClass <ApproveIdeaTest> .RunTestByCategory(reportingManager, name);
        }
Example #3
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);
        }
Example #4
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);
        }
Example #5
0
        private static void RunByFunctionname(WebReportingManager reportingManager, string name)
        {
            RunUnitTestsClass <LoginTest> .RunTest(reportingManager, name);

            RunUnitTestsClass <AccountCreation> .RunTest(reportingManager, name);

            RunUnitTestsClass <HomeTest> .RunTest(reportingManager, name);

            RunUnitTestsClass <ViewIdeasTest> .RunTest(reportingManager, name);

            RunUnitTestsClass <SubmitIdeasTest> .RunTest(reportingManager, name);

            RunUnitTestsClass <ApproveIdeaTest> .RunTest(reportingManager, name);
        }