Beispiel #1
0
        public void ThenICreateStudyPlanFromCourseMaterialTab()
        {
            try
            {
                GenericHelper.WaitUtilWindow("Course Materials");
                _contentLibraryUxPage.ClickAddCourseMaterialsButton();
                if (!_contentLibraryUxPage.IsStudyPlanOptionPresent())
                {
                    GenericTestStep.StepToNavigateToTheTab("Preferences");
                    _generalPreferencesPage.SelectSkillsAndStandards();
                    _standardSkillPreferencesPage.SelectNeitherRadioButtonAndSave();
                    GenericTestStep.StepToNavigateToTheTab("Course Materials");
                    _contentLibraryUxPage.GetControlToLeftFrame();
                    _contentLibraryUxPage.ClickAddCourseMaterialsButton();
                }

                //create study plan
                string studyPlanName = GenericHelper.GenerateUniqueVariable("SP");
                _contentLibraryUxPage.StudyPlanCreation(studyPlanName);
                _contentLibraryUxPage.GetControlToLeftFrame();
                string SPName = DatabaseTools.GetActivityName(Enumerations.ActivityType.StudyPlan);
                GenericTestStep.StepToAddTheActivityToMyCourse(SPName);
            }
            catch (Exception e)
            {
                GenericHelper.Logs(e.ToString(), "FAILED");
                Assert.Fail(e.ToString());
            }
        }
 public void WhenIGrantthestudentasTa()
 {
     try
     {
         GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
         GenericTestStep.StepToIAmOnThePage("Global Home");
         GenericHelper.SelectWindow("Global Home");
         string courseName = DatabaseTools.GetCourse(Enumerations.CourseType.InstructorCourse).Trim();
         GenericHelper.WaitUntilElement(By.PartialLinkText(courseName));
         WebDriver.FindElement(By.PartialLinkText(courseName)).SendKeys("");
         WebDriver.FindElement(By.PartialLinkText(courseName)).Click();
         GenericTestStep.StepToIAmOnThePage("Calendar");
         // Will need to change this line as per the authored course
         GenericHelper.SelectWindow("Calendar");
         GenericTestStep.StepToNavigateToTheTab("Enrollments");
         GenericTestStep.StepToIAmOnThePage("Roster");
         _rosterPage.ToGrantTAPrivilege();
         GenericTestStep.StepToIClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         GenericStepDefinition.ThenIClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         Assert.Fail(string.Format("Exception of type {0} cau" + "ght: {1}", e.GetType(), e.Message));
     }
 }
 public void GivenStudentisalreadypromotedtoTAifnotthenpromotethestudentasTa()
 {
     try
     {
         GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor");
         GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
         GenericTestStep.StepToIAmOnThePage("Global Home");
         GenericHelper.SelectWindow("Global Home");
         string courseName = DatabaseTools.GetCourse(Enumerations.CourseType.ProgramCourse).Trim();
         GenericHelper.WaitUntilElement(By.PartialLinkText(courseName));
         WebDriver.FindElement(By.PartialLinkText(courseName)).SendKeys("");
         WebDriver.FindElement(By.PartialLinkText(courseName)).Click();
         GenericTestStep.StepToIAmOnThePage("Program Administration");
         GenericHelper.SelectWindow("Program Administration");
         GenericTestStep.StepToNavigateToTheTab("Sections");
         // Will need to change this line as per the authored course
         GenericHelper.SelectWindow("Program Administration");
         string sectionName = DatabaseTools.GetSectionName(Enumerations.CourseType.ProgramCourse).Trim();
         _sectionSearch.ToSearchSection(sectionName);
         _sectionSearch.SelectSectionAfterSearch();
         GenericTestStep.StepToIAmOnThePage("Calendar");
         GenericHelper.SelectWindow("Calendar");
         GenericTestStep.StepToNavigateToTheTab("Enrollments");
         GenericTestStep.StepToIAmOnThePage("Roster");
         _rosterPage.ToGrantTAPrivilege();
         GenericTestStep.StepToIAmOnThePage("Roster");
         GenericTestStep.StepToIClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
Beispiel #4
0
 public void GivenActivityIsAlreadySubmittedByTheStudentIfNotThenSubmitTheActivityByTheStudent()
 {
     try
     {
         string isActivityAlreadySubmitted = DatabaseTools.GetSubmissionStatusOfActivity(Enumerations.ActivityType.Essay);
         if (isActivityAlreadySubmitted == null || isActivityAlreadySubmitted.Equals("False") || isActivityAlreadySubmitted.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent();
             GenericTestStep.StepToCloseStudentHelpTextWindow();
             GenericTestStep.StepToItShouldBeOnPage("Global Home");
             GenericTestStep.StepToSelectTheCreatedCourse(_courseName);
             GenericTestStep.StepToItShouldBeOnPage("Today's View");
             GenericTestStep.StepToNavigateToTheTab("Course Materials");
             GenericTestStep.StepToNavigateInTheEssayTypeActivityFolder();
             if (_activityName != null)
             {
                 GenericTestStep.StepToClickOnTheLink(_activityName);
             }
             GenericTestStep.StepToSubmitEssayTypeActivitybyStudent(_activityName);
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
 public void GivenAuthoredCourseCopyIsAlreadyPublishedIfNotThenPublishTheAuthoredCourseCopy()
 {
     try
     {
         //Purpose: Steps To Create Test Data
         string isCourseAlreadyPublished = DatabaseTools.GetCoursePublishStatus(Enumerations.CourseType.MySpanishLabMasterCourse);
         if (isCourseAlreadyPublished == null || isCourseAlreadyPublished.Equals("False") || isCourseAlreadyPublished.Equals(""))
         {
             string getCopiedCourse = DatabaseTools.GetCourse(Enumerations.CourseType.MySpanishLabMasterCourse);
             if (getCopiedCourse == null)
             {
                 throw new ArgumentNullException("getCo" + "piedCourse is null");
             }
             GenericTestStep.StepToBrowsedUrlForPegasusUser("HED WS Admin");
             GenericTestStep.StepToLoggedIntoTheWorkspaceAsHedWsAdmin();
             GenericTestStep.StepToItShouldBeOnPage("Course Enrollment");
             GenericTestStep.StepToSelectTheCourse("MySpanishLab Authored Master Course");
             GenericTestStep.StepToClickOnTheCmenuOfCourse();
             GenericTestStep.StepToClickOnTheCourseCMenuOptionLink("Publish Master Course");
             GenericTestStep.StepToIShouldSeeTheNewPopup("Publishing Notes");
             GenericTestStep.StepToEnterThePublishingNotes();
             GenericTestStep.StepToClickOnThePublishButton();
             GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Course published successfully.");
             DatabaseTools.UpdateCoursePublishStatusTrue(getCopiedCourse);
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
 public void GivenAuthoredCourseCopyAlreadyCreatedIfNotThenCreateTheAuthoredCourseCopy()
 {
     try
     {
         string isCourseAlreadyCopied = DatabaseTools.GetCourse(Enumerations.CourseType.MySpanishLabMasterCourse);
         if (isCourseAlreadyCopied == null)
         {
             //Purpose: Steps To Create Test Data
             GenericTestStep.StepToBrowsedUrlForPegasusUser("HED WS Admin");
             GenericTestStep.StepToLoggedIntoTheWorkspaceAsHedWsAdmin();
             GenericTestStep.StepToItShouldBeOnPage("Course Enrollment");
             GenericTestStep.StepToIAmOnTheUserCreationPage();
             GenericTestStep.StepToSelectTheCourse("MySpanishLab AuthoredCourse");
             GenericTestStep.StepToClickOnTheCmenuOfCourse();
             GenericTestStep.StepToClickOnTheCourseCMenuOptionLink("Copy as Master Course");
             GenericTestStep.StepToIShouldSeeTheNewPopup("Copy as Master Course");
             GenericTestStep.StepToCopyTheCourseInSameWorkspace("Master");
             GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Copied as master course.");
             GenericTestStep.StepToWaitForTheCourseOutFromAssignToCopyState();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
 public void GivenCourseAssociationToProgramTypeProductIsAlreadyCreatedIfNotThenCreateAssociation()
 {
     try
     {
         string productName = DatabaseTools.GetProduct(Enumerations.ProductInstance.HedCoreProgram);
         string isMasterCourseAlreadyAssociatedToProduct = DatabaseTools.GetProductMaterCourseAssociatedStatus(productName);
         if (isMasterCourseAlreadyAssociatedToProduct == null || isMasterCourseAlreadyAssociatedToProduct.Equals("False") || isMasterCourseAlreadyAssociatedToProduct.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("HED CS Admin");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsHedCSAdmin();
             GenericTestStep.StepToItShouldShowTheManageProductsPage();
             GenericTestStep.StepToSelectCourseInManageProductsPage("MySpanishLab Master Course");
             GenericTestStep.StepToSelectTheProductInTheRightFrame("HedCoreProgram");
             GenericTestStep.StepToAssociateTheCourseToProduct();
             GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Approved courses programmed successfully.");
             DatabaseTools.UpdateProductMaterCourseAssociatedStatus(productName);
             GenericTestStep.StepToIClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
 public void GivenSMSUserIsAlreadyCreatedIfNotThenCreateSMSUser()
 {
     try
     {
         string isInstructorAlreadyCreated = DatabaseTools.GetUsername(Enumerations.UserType.CsSmsInstructor);
         if (isInstructorAlreadyCreated == null || isInstructorAlreadyCreated.Equals("False") ||
             isInstructorAlreadyCreated.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("SMSRegistration");
             GenericTestStep.StepToClickedTheIAcceptButton();
             GenericTestStep.StepToCreateNewSmsUser("CsSmsInstructor");
         }
         string isstudentAlreadyCreated = DatabaseTools.GetUsername(Enumerations.UserType.CsSmsStudent);
         if (isstudentAlreadyCreated == null || isstudentAlreadyCreated.Equals("False") || isstudentAlreadyCreated.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("SMSRegistration");
             GenericTestStep.StepToClickedTheIAcceptButton();
             GenericTestStep.StepToCreateNewSmsUser("CsSmsStudent");
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
        public void GivenSMSUserIsAlreadyEnrolledIntoTheProgramIfNotThenEnrollTheSMSUserInProgram()
        {
            try
            {
                string isProgramCourseCreated = DatabaseTools.GetCourse(Enumerations.CourseType.ProgramCourse);
                if (isProgramCourseCreated == null || isProgramCourseCreated.Equals("False") || isProgramCourseCreated.Equals(""))
                {
                    GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor");
                    GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
                    GenericTestStep.StepToIAmOnThePage("Global Home");
                    GenericTestStep.StepToCreateProgramCourse();
                    GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();

                    GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent");
                    GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent();
                    GenericTestStep.StepToCloseStudentHelpTextWindow();
                    GenericTestStep.StepToIAmOnThePage("Global Home");
                    GenericTestStep.StepToEnrolStudentToCourse("ProductTypeProg");
                    GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
                }
            }
            catch (Exception e)
            {
                GenericHelper.Logs(e.ToString(), "FAILED");
                Assert.Fail(e.ToString());
            }
        }
        public void GivenSmsStudentisalreadyenrolledintotheSectionifnotthenenrolltheSmSusertoSection()
        {
            try
            {
                string isStudentEnrolled = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsStudent);
                if (isStudentEnrolled == null || isStudentEnrolled.Equals("False") || isStudentEnrolled.Equals(""))
                {
                    GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor");
                    GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
                    GenericTestStep.StepToIAmOnThePage("Global Home");
                    GenericTestStep.StepToCreateProgramCourse();
                    GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();

                    GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent");
                    GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent();
                    GenericTestStep.StepToCloseStudentHelpTextWindow();
                    GenericTestStep.StepToIAmOnThePage("Global Home");
                    GenericTestStep.StepToEnrolStudentToCourse("ProductTypeProg");
                    GenericTestStep.StepToSelectTheSectionName();
                    GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
                }
            }
            catch (Exception e)
            {
                GenericHelper.Logs(e.ToString(), "FAILED");
                Assert.Fail(e.ToString());
            }
        }
 public void GivenAutohoredCourseIsAlreayApprovedInTheCourseSpaceIfNotThenApproveTheAuthoredCourseInCourseSpace()
 {
     try
     {
         //Purpose: Steps To Create Test Data
         string isCourseAlreadyApproved = DatabaseTools.GetCourseApproveStatus(Enumerations.CourseType.MySpanishLabMasterCourse);
         if (isCourseAlreadyApproved == null || isCourseAlreadyApproved.Equals("False") || isCourseAlreadyApproved.Equals(""))
         {
             string getCopiedCourse = DatabaseTools.GetCourse(Enumerations.CourseType.MySpanishLabMasterCourse);
             GenericTestStep.StepToBrowsedUrlForPegasusUser("HED CS Admin");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsHedCSAdmin();
             GenericTestStep.StepToItShouldBeOnPage("Course Enrollment");
             GenericTestStep.StepToNavigateToTheTab("Publishing");
             GenericTestStep.StepToSwitchToTheTab("Manage Products");
             GenericTestStep.StepToItShouldShowTheManageProductsPage();
             GenericTestStep.StepToSelectTheCourseToApprove("MySpanishLab Master Course");
             GenericTestStep.StepToClickedOnTheApproveCourseLink("Approve");
             GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Published course marked as Approved.");
             DatabaseTools.UpdateCourseApproveStatusTrue(getCopiedCourse);
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
        public void GivenWsUserIsAlreadyEnrolledInTheTestingCourseCopyIfNotThenEnrollTheUserInTestingCourseCopy()
        {
            string isWsUserAlreadyEnrolled = DatabaseTools.GetEnrolledUser(Enumerations.UserType.HedWsInstructor);

            if (isWsUserAlreadyEnrolled == null || isWsUserAlreadyEnrolled.Equals("False") || isWsUserAlreadyEnrolled.Equals(""))
            {
                GenericTestStep.StepToEnrolUserInTestingCopyCourse();
                GenericTestStep.StepToItShouldDisplaySuccessfulMessage("Instructors enrolled successfully.");
            }
        }
Beispiel #13
0
 public void GivenManualGradedQuestionIsAlreadySubmittedIfNotThenSubmitTheManualGraded()
 {
     try
     {
         string isActivityAlreadySubmitted = DatabaseTools.GetSubmissionStatusOfActivity(Enumerations.ActivityType.Essay);
         if (isActivityAlreadySubmitted == null || isActivityAlreadySubmitted.Equals("False") || isActivityAlreadySubmitted.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent();
             GenericTestStep.StepToCloseStudentHelpTextWindow();
             GenericTestStep.StepToItShouldBeOnPage("Global Home");
             GenericTestStep.StepToSelectTheSectionName();
             GenericTestStep.StepToItShouldBeOnPage("Today's View");
             GenericTestStep.StepToNavigateToTheTab("Course Materials");
             GenericTestStep.StepToNavigateInTheEssayTypeActivityFolder();
             if (_activityName != null)
             {
                 GenericTestStep.StepToClickOnTheLink(_activityName);
             }
             GenericTestStep.StepToSubmitEssayTypeActivitybyStudent(_activityName);
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
             // To submit grades by teacher
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
             GenericTestStep.StepToIAmOnThePage("Global Home");
             GenericHelper.SelectWindow("Global Home");
             string courseName = DatabaseTools.GetCourse(Enumerations.CourseType.ProgramCourse).Trim();
             GenericHelper.WaitUntilElement(By.PartialLinkText(courseName));
             WebDriver.FindElement(By.PartialLinkText(courseName)).SendKeys("");
             WebDriver.FindElement(By.PartialLinkText(courseName)).Click();
             GenericTestStep.StepToIAmOnThePage("Program Administration");
             GenericHelper.SelectWindow("Program Administration");
             GenericTestStep.StepToNavigateToTheTab("Sections");
             GenericHelper.SelectWindow("Program Administration");
             string sectionName = DatabaseTools.GetSectionName(Enumerations.CourseType.ProgramCourse).Trim();
             _SectionSearch.ToSearchSection(sectionName);
             _SectionSearch.SelectSectionAfterSearch();
             GenericTestStep.StepToIAmOnThePage("Calendar");
             GenericHelper.SelectWindow("Calendar");
             GenericTestStep.StepToNavigateToTheTab("Gradebook");
             GenericHelper.SelectWindow("Gradebook");
             _gbDefaultUxPage.SearchActivityByTitle("SAM 0A-33 El mundo hispano.");
             _gbInstructorUXPage.ClickActivityCmenu("SAM 0A-33 El mundo hispano.");
             _gbInstructorUXPage.ClickViewAllSubmissionsLink();
             _viewSubmissionPage.OpenActivityViewSubmissionPage();
             _viewSubmissionPage.GiveSubmissionByTeacher("Teacher");
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
Beispiel #14
0
 public static void ThenItShouldDisplaySuccessfulMessage(string successMsg)
 {
     try
     {
         GenericTestStep.StepToItShouldDisplaySuccessfulMessage(successMsg);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
     }
 }
Beispiel #15
0
 public static void ThenIClickOnTheLink(String linkName)
 {
     try
     {
         GenericTestStep.StepToClickOnTheLink(linkName);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #16
0
 public static void GivenIAmOnTheUserCreationPage()
 {
     try
     {
         GenericTestStep.StepToIAmOnTheUserCreationPage();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #17
0
 public static void SetupSTEnvironment(string sTUrl)
 {
     try
     {
         GenericTestStep.StepToSetupSTEnvironment(sTUrl);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #18
0
 public static void WhenIHaveLoggedIntoTheWorkspaceAsWsTeacher()
 {
     try
     {
         GenericTestStep.StepToLoggedIntoTheWorkspaceAsWsTeacher();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #19
0
 public static void WhenIClickedOnTheCreateNewLink(string linkName, string frame)
 {
     try
     {
         GenericTestStep.StepToClickedOnTheLink(linkName, frame);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #20
0
 public void ThenUpdateTheEnrollStatusOfTheUserInDB(string user)
 {
     try
     {
         GenericTestStep.StepToUpdateTheEnrollStatusOfTheUserInDB(user);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #21
0
 public static void WhenIHaveLoggedIntoTheCourseSpaceAsHedCSAdmin()
 {
     try
     {
         GenericTestStep.StepToLoggedIntoTheCourseSpaceAsHedCSAdmin();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #22
0
 public void ThenUpdateThePreferenceStatusInDBForBDDCC(string course)
 {
     try
     {
         GenericTestStep.StepToUpdateThePreferenceStatusInDBForBDDCC(course);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #23
0
 public void ThenUpdateThePublishStatusOfTheCourseInDB(string course)
 {
     try
     {
         GenericTestStep.SteptToUpdateThePublishStatusOfTheCourseInDB(course);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #24
0
 public void ThenItshoulddisplaythecourses()
 {
     try
     {
         GenericTestStep.StepToVerifyCoursesforTA();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
Beispiel #25
0
 public static void WhenISelectTheCreatedCourse(string course)
 {
     try
     {
         GenericTestStep.StepToSelectTheCreatedCourse(course);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #26
0
 public static void ThenIselectHomeButton()
 {
     try
     {
         GenericTestStep.StepTonIselectGlobalHomeButton();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #27
0
 public void ClickedOnSearchViewButton(string frameId)
 {
     try
     {
         GenericTestStep.StepToClickedOnSearchViewButton(frameId);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #28
0
 public void WhenIClickedOnTheApproveCourseLink(string linktext)
 {
     try
     {
         GenericTestStep.StepToClickedOnTheApproveCourseLink(linktext);
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #29
0
 public static void WhenIClosetheManageOrganizationAndLogOutFromTheApplication()
 {
     try
     {
         GenericTestStep.StepToClosetheManageOrganizationAndLogOutFromTheApplication();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
Beispiel #30
0
 public void WhenIHaveLoggedIntoTheCourseSpaceAsSmsInstructor()
 {
     try
     {
         GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }