public void DisplayTheGradeUnderGradeColumnOfTheSubmittedActivity (string activityScore, Activity.ActivityTypeEnum activityTypeEnum) { //Display of Grade for Submitted Activity Logger.LogMethodEntry("ViewSubmission", "DisplayOfGradeUnderGradeColumnforSubmittedActivity", base.IsTakeScreenShotDuringEntryExit); //Fetch Activity From Memory Activity activity = Activity.Get(activityTypeEnum); GBStudentUXPage gbStudentUXpage = new GBStudentUXPage(); //Select Window gbStudentUXpage.SelectGradebookWindow(); //Assert we have correct message displayed Logger.LogAssertion("VerifySbmittedActivityScore", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(activityScore, gbStudentUXpage.GetActivityScoreInGradebook(activity.Name))); Logger.LogMethodEntry("ViewSubmission", "DisplayOfGradeUnderGradeColumnforSubmittedActivity", base.IsTakeScreenShotDuringEntryExit); }
public void DisplayTheGradesForSubmittedActivity() { //Display The Grades For Submitted Activity Logger.LogMethodEntry("ActivitySubmission", "DisplayTheGradesForSubmittedActivity", base.IsTakeScreenShotDuringEntryExit); //Creating object GBStudentUXPage gBStudentUXPage = new GBStudentUXPage(); //Selecting the window gBStudentUXPage.SelectGradebookWindow(); //Assert we have correct message displayed Logger.LogAssertion("VerifySbmittedActivityScore", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(ActivitySubmissionResource. ActivitySubmission_Page_Grade_Score, gBStudentUXPage.GetAssetScoreInGradeBook( ActivitySubmissionResource. ActivitySubmission_Page_MyTest_Activity_Name))); Logger.LogMethodExit("ActivitySubmission", "DisplayTheGradesForSubmittedActivity", base.IsTakeScreenShotDuringEntryExit); }