Example #1
0
        public void LopImportGenerateNotificationWhenOnOtherScreen()
        {
            string sql      = "select ID from dbo.School where name = '" + TestDefaults.Default.SchoolName.Trim().Replace("'", "''") + "'";
            Guid   schoolId = DataAccessHelpers.GetValue <Guid>(sql);

            _documentPath = LOPImportAutoRefresh.AddDocumentToSharepoint(schoolId);

            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);
            SeleniumHelper.NavigateMenu("Tasks", "Pupils", "Levels of Progression File Import");

            LOPImportAutoRefresh lopImport = new LOPImportAutoRefresh();

            lopImport.LopImportFile();
            //Verify Processing Screen
            string message = lopImport.CheckIsProcessing();

            Assert.AreEqual(message, "File Processing");
            lopImport.ClickOnOtherScreen();
            lopImport.WaitForProcessingOnOtherScreen();
            string messageText = lopImport.ReadAndReturnMessageText();

            Assert.AreEqual(messageText, "LOP Import Process");
        }
Example #2
0
        public void LopImportTest()
        {
            string sql      = "select ID from dbo.School where name = '" + TestDefaults.Default.SchoolName.Trim().Replace("'", "''") + "'";
            Guid   schoolId = DataAccessHelpers.GetValue <Guid>(sql);

            _documentPath = LOPImportAutoRefresh.AddDocumentToSharepoint(schoolId);

            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AssessmentCoordinator);
            SeleniumHelper.NavigateMenu("Tasks", "Pupils", "Levels of Progression File Import");

            LOPImportAutoRefresh lopImport = new LOPImportAutoRefresh();

            lopImport.LopImportFile();
            //Verify Processing Screen
            string message = lopImport.CheckIsProcessing();

            Assert.AreEqual(message, "File Processing");
            WebContext.Screenshot();
            //Verify Screen Reload
            string refreshMsg = lopImport.CheckAfterRefresh();

            Assert.AreEqual("Levels of Progression Import File", refreshMsg);
            WebContext.Screenshot();
        }