コード例 #1
0
        public static void ShareBookWithTeacher(Login student, Login teacher, BookShape shape)
        {
            BookBuilderCommonMethods.CreateBook(student.UserName, student.PersonName, shape);
            string assertFailureMessage;
            //TC53953
            Assert.IsTrue(BookBuilderCommonMethods.VerifyBookIsAtCenterOfScreen(out assertFailureMessage), assertFailureMessage);
            //TC53965
            Assert.IsTrue(BookBuilderCommonMethods.VerifyShareIconIsAtRightSideOfEditButton(), "Share icon not at rigt of edit button");
            BookBuilderCommonMethods.ClickShareIconInBookBuilder();

            //TC53966
            Assert.IsTrue(NotebookCommonMethods.VerifyShareNotebookConfirmationPrompt(), "Share confirmation not found");
            Assert.IsTrue(NotebookCommonMethods.VerifyShareNotebookConfirmationTeacherListScroll(), "teacher list no scrolling");
            //TC53967
            NotebookCommonMethods.ClickXCloseIconInSharePrompt();

            Assert.IsFalse(NotebookCommonMethods.VerifyShareNotebookConfirmationPrompt(), "Share confirmation still found");
            BookBuilderCommonMethods.ClickShareIconInBookBuilder();
            NotebookCommonMethods.SelectTeacherinSharePrompt(teacher.PersonName);

            NotebookCommonMethods.ClickCheckSendIconInSharePrompt();
            //TC53968
            Assert.IsTrue(NotebookCommonMethods.VerifyNotebookSentMessage(), "notebook sent message not found");
            NotebookCommonMethods.CloseNotebookSentPopup();
        }
コード例 #2
0
        /// <summary>
        /// Click to login for Begin setup of picture password
        /// </summary>
        /// <param name="login"></param>
        /// <param name="ClickStudentLoginStartupButton"></param>
        public static void ClickBeginSetupLoginButton(Login login, bool ClickStudentLoginStartupButton = true)
        {
            AutomationAgent.SetText("LoginView", "UserNameTextboxOnStudentSetupScreen", login.UserName);
            AutomationAgent.SetText("LoginView", "PasswordTextboxOnStudentSetupScreen", login.Password);
            AutomationAgent.Click("LoginView", "BeginSetupLoginButton");

            int i = 10;
            while(!(AutomationAgent.VerifyControlExists("LoginView", "StudentLoginPasswordResetPassword")) && i>0)
            {
                AutomationAgent.Wait();
                i--;
            }

            if (AutomationAgent.VerifyControlExists("LoginView", "StudentLoginPasswordResetPassword"))
            {
                AutomationAgent.Click("LoginView", "StudentLoginPasswordResetPassword");
            }
            else
            {
                if (ClickStudentLoginStartupButton)
                {
                    int j = 0;
                    while (!AutomationAgent.VerifyControlExists("LoginView", "StudentLoginStartupButton") & j<=5)
                    {
                       // AutomationAgent.WaitForControlExists("LoginView", "StudentLoginStartupButton");
                        AutomationAgent.Wait();
                    }
                    AutomationAgent.Click("LoginView", "StudentLoginStartupButton");
                }
            }
        }
コード例 #3
0
 public static void ClickBeginSetupLoginButtonWithoutPasswordReset(Login login)
 {
     AutomationAgent.SetText("LoginView", "UserNameTextboxOnStudentSetupScreen", login.UserName);
     AutomationAgent.SetText("LoginView", "PasswordTextboxOnStudentSetupScreen", login.Password);
     AutomationAgent.Click("LoginView", "BeginSetupLoginButton");
     int i = 10;
     while (!(AutomationAgent.VerifyControlExists("LoginView", "StudentLoginPasswordResetPassword")) && i > 0)
     {
         AutomationAgent.Wait();
         i--;
     }
 }
コード例 #4
0
        public static void ShareNotebookWithTeacherHavingInterctive(Login student, Login loginTchr, int UnitNo)
        {
            NavigationCommonMethods.LoginUsingTeacherAdminWaitingForSystemTray(student);
            Assert.IsTrue(LoginCommonMethods.VerifyELAGradeAppears(), "User is unable to login");
            NavigationCommonMethods.NavigateToMathUnit(UnitNo);
            Assert.IsTrue(NavigationCommonMethods.VerifyUnitHomeScreen(), "Unit home screen not found");
            NavigationCommonMethods.ClickUnitHomeScreenTodayBtn();
            Assert.IsTrue(NavigationCommonMethods.VerifyInteractiveThumbnailinELA(), "interactive thumbnail not found");
            NavigationCommonMethods.ClickInteractiveThumbnailinELA();
            //Assert.IsTrue(UnitSelectionCommonMethods.VerifyInteractiveDesignHavingBackNotebookButtonAndHeader(), "interactive thumbnail design not verified");
            InteractiveCommonMethods.ClickSendToNotebookInteractive();
            //Assert.IsTrue(InteractiveCommonMethods.VerifySendToNotebookConfirmationPopup(), "send to notebook confirmation popup not found");
            InteractiveCommonMethods.ClickSendToNotebookPopupCancel();
            //Assert.IsTrue(UnitSelectionCommonMethods.VerifyInteractiveDesignHavingBackNotebookButtonAndHeader(), "interactive thumbnail design not verified");
            InteractiveCommonMethods.ClickSendToNotebookInteractive();
            //Assert.IsTrue(InteractiveCommonMethods.VerifySendToNotebookConfirmationPopup(), "send to notebook confirmation popup not found");
            InteractiveCommonMethods.ClickSendToNotebookPopupAccept();
            AutomationAgent.Wait();
            Assert.IsTrue(NotebookCommonMethods.VerifySnapshotisAvailableInNotebook(), "interactive thumnail not found in notebook");

            Assert.IsTrue(NotebookCommonMethods.VerifyShareAirplaneIconPresentInNotebookAtTopLeft(), "share icon present on notebook");
            NotebookCommonMethods.ClickShareAirplaneIcon();
            Assert.IsTrue(NotebookCommonMethods.VerifyShareNotebookConfirmationPrompt(), "share noteboo confirm prompt not found");

            NotebookCommonMethods.SelectTeacherinSharePrompt(loginTchr.PersonName);
            NotebookCommonMethods.ClickCheckSendIconInSharePrompt();
            Assert.IsTrue(NotebookCommonMethods.VerifyNotebookSentMessage(), "notebook sent message not found");
            NotebookCommonMethods.CloseNotebookSentPopup();
            NotebookCommonMethods.ClickBackButtonNotebook();
            UnitSelectionCommonMethods.ClickInteractiveBackButton();
            NavigationCommonMethods.Logout();
        }
コード例 #5
0
        public static void ShareNotebookWithTeacherHavingAudio(Login student, Login loginTchr, int UnitNo)
        {
            NavigationCommonMethods.LoginUsingTeacherAdminWaitingForSystemTray(student);
            Assert.IsTrue(LoginCommonMethods.VerifyELAGradeAppears(), "User is unable to login");
            NavigationCommonMethods.NavigateToMathUnit(UnitNo);
            Assert.IsTrue(NavigationCommonMethods.VerifyUnitHomeScreen(), "Unit home screen not found");
            NavigationCommonMethods.NavigateToNotebook();
            Assert.IsTrue(NavigationCommonMethods.VerifyNotebookScreen(), "notebook not opened");
            NotebookCommonMethods.ClickToOpenNotebookCanvasPage();
            Assert.IsTrue(NotebookCommonMethods.VerifyCameraMicrophoneIconInNotebook(), "Add page not found");
            NotebookCommonMethods.ClickCameraMicrophoneIconInNotebook();
            Assert.IsTrue(NotebookCommonMethods.VerifyToolsSubMenuOpened(), "microphone camera sub menu not found");
            NotebookCommonMethods.ClickMicrophoneIcon();
            NotebookCommonMethods.ClickRecordButton();
            AutomationAgent.Wait(1500);
            NotebookCommonMethods.ClickRecordStopButton();
            Assert.IsTrue(NotebookCommonMethods.VerifyMediaInsertedInNotebook(), "media thumbnail not found in notebook");
            Assert.IsTrue(NotebookCommonMethods.VerifyShareAirplaneIconPresentInNotebookAtTopLeft(), "share icon present on notebook");
            NotebookCommonMethods.ClickShareAirplaneIcon();
            Assert.IsTrue(NotebookCommonMethods.VerifyShareNotebookConfirmationPrompt(), "share noteboo confirm prompt not found");

            NotebookCommonMethods.SelectTeacherinSharePrompt(loginTchr.PersonName);
            NotebookCommonMethods.ClickCheckSendIconInSharePrompt();
            Assert.IsTrue(NotebookCommonMethods.VerifyNotebookSentMessage(), "notebook sent message not found");
            NotebookCommonMethods.CloseNotebookSentPopup();
            NotebookCommonMethods.ClickBackButtonNotebook();
            NavigationCommonMethods.Logout();
        }
コード例 #6
0
 public static void LoginTeacherAndVerifySharedItemInboxPresent(Login loginTchr)
 {
     NavigationCommonMethods.LoginUsingTeacherAdminWaitingForSystemTray(loginTchr);
     Assert.IsTrue(LoginCommonMethods.VerifyELAGradeAppears(), "User is unable to login");
     NavigationCommonMethods.OpenOrCloseSystemTray();
     NavigationCommonMethods.NavigateInboxKGInSystemTray();
     InboxCommonMethods.ClickToggleButtonMath();
     Assert.IsTrue(InboxCommonMethods.VerifySharedItemInboxPresent(), "shared item not found");
 }
コード例 #7
0
 /// <summary>
 /// Logs into the app using Teacher / Admin screen
 /// </summary>
 /// <param name="login">Login object</param>
 public static void LoginUsingTeacherAdminWithoutWaitingForSystemTray(Login login)
 {
     AutomationAgent.LaunchApp();
     NavigationCommonMethods.NavigateToTeacherAdminLogin();
     AutomationAgent.SetText("LoginView", "UserNameTextboxOnTeacherAdminScreen", login.UserName);
     AutomationAgent.SetText("LoginView", "PasswordTextboxOnTeacherAdminScreen", login.Password);
     AutomationAgent.Click("LoginView", "LoginButtonOnTeacherAdminScreen");
 }
コード例 #8
0
 /// <summary>
 /// Gets Additional info from XML
 /// </summary>
 /// <param name="login">login</param>
 /// <returns>string array: Status</returns>
 public static string[] LoadUnitStatusFromAdditionalInfoMath(Login login)
 {
     TaskInfo taskInfo = login.GetTaskInfo("Math", "Assessment");
     String additionalInfo = taskInfo.AdditionalInfo;
     String[] unitStatus = additionalInfo.Split(',');
     return unitStatus;
 }
コード例 #9
0
        /// <summary>
        /// Logs into the app using Teacher / Admin screen
        /// </summary>
        /// <param name="login">Login object</param>
        public static void LoginUsingTeacherAdminWaitingForSystemTray(Login login)
        {
            AutomationAgent.LaunchApp();

            AutomationAgent.Wait();
            if (AutomationAgent.VerifyControlExists("LoginView", "SystemTray"))
            {   //Logout();
                OpenOrCloseSystemTray();

                if (!VerifyLoggedInUserNameInSystemTray(login.PersonName))
                {
                    OpenOrCloseSystemTray();
                    Logout();
                    NavigationCommonMethods.NavigateToTeacherAdminLogin();
                    AutomationAgent.SetText("LoginView", "UserNameTextboxOnTeacherAdminScreen", login.UserName);
                    AutomationAgent.SetText("LoginView", "PasswordTextboxOnTeacherAdminScreen", login.Password);
                    AutomationAgent.Click("LoginView", "LoginButtonOnTeacherAdminScreen");
                    AutomationAgent.WaitForControlExists("LoginView", "SystemTray", 80000);
                }
                else
                {
                    OpenOrCloseSystemTray();
                  //  NavigateToUnitLibrary();
                }
            }

            else
            {
                NavigationCommonMethods.NavigateToTeacherAdminLogin();
                AutomationAgent.SetText("LoginView", "UserNameTextboxOnTeacherAdminScreen", login.UserName);
                AutomationAgent.SetText("LoginView", "PasswordTextboxOnTeacherAdminScreen", login.Password);
                AutomationAgent.Click("LoginView", "LoginButtonOnTeacherAdminScreen");
                AutomationAgent.WaitForControlExists("LoginView", "SystemTray", 80000);
            }
            //}
        }
コード例 #10
0
        /// <summary>
        /// Navigates to Student Login startup screen
        /// </summary>
        /// <param name="login">Login object</param>
        public static void ClickStudentLogin(Login login)
        {
            //AutomationAgent.Click("LoginView", "LoginSelectionButton");
            //AutomationAgent.Click("LoginView", "StudentLoginStartup");

            AutomationAgent.Click("LoginView", "StudentLoginHomePage");
            AutomationAgent.Click("LoginView", "StudentLoginStartupButton");
        }