コード例 #1
0
        public void VerifyStudentStudyPlanDetailsInReports(User.UserTypeEnum userTypeEnum,
                                                           string preTestScore, string postTestScore)
        {
            // Verify report heading ,section name and average score
            Logger.LogMethodEntry("Reports",
                                  "VerifyZeroScoreStudentReportDataInMultipleStudentInReports",
                                  base.IsTakeScreenShotDuringEntryExit);
            string studentName = new RptAllAssessmentAllStudentPage().
                                 GetZeroScoreUsername(userTypeEnum);

            //Verifies student name
            Logger.LogAssertion("GetStudentNameInStudtPlanActivity",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.IsTrue(new RptStudyPlanReportPage().
                                              GetStudentNameInStudtPlanActivity(studentName)));
            //Verifies Pre test Score value
            Logger.LogAssertion("GetStudentStudyPlanPreTestScore",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(preTestScore,
                                                new RptStudyPlanReportPage().GetStudentStudyPlanPreTestScore(studentName, 2)));
            //Verify  Post Test score value
            Logger.LogAssertion("GetStudentStudyPlanPostTestScore",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(preTestScore,
                                                new RptStudyPlanReportPage().GetStudentStudyPlanPostTestScore(studentName, 2)));
            Logger.LogMethodExit("Reports",
                                 "VerifyStudentStudyPlanDetailsInReports",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
コード例 #2
0
        public void VerifyZeroScoringDetailsInAdminActivityReportByStudent(
            User.UserTypeEnum userTypeEnum, string scorePercentage)
        {
            // Verify report heading ,section name and average score
            Logger.LogMethodEntry("Reports",
                                  "VerifyZeroScoringDetailsInActivityReportByStudent",
                                  base.IsTakeScreenShotDuringEntryExit);
            string studentName = new RptAllAssessmentAllStudentPage().
                                 GetZeroScoreUsername(userTypeEnum);

            //Verify student name
            Logger.LogAssertion("VerifyZeroScoringStudentPresent",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.IsTrue(new RptActivityResultByStudentPage().
                                              GetStudentNameInActivityResultByStudent(studentName)));
            //Verify student score
            Logger.LogAssertion("VerifyStudentPresent",
                                ScenarioContext.Current.ScenarioInfo.Title, () =>
                                Assert.AreEqual(scorePercentage, new RptActivityResultByStudentPage().
                                                GetStudentScoreInActivityResultByStudentByAdmin(1)));
            Logger.LogMethodExit("Reports",
                                 "VerifyZeroScoringDetailsInActivityReportByStudent",
                                 base.IsTakeScreenShotDuringEntryExit);
        }