public void CtfExportRefresh() { // Arrange SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator, true, "CTFExportV16"); AutomationSugar.NavigateMenu("Tasks", "Pupils", "CTF Export"); var export = new CtfExportRefresh(); export.GenerateCtfExport(); // Act export.Pupilselector(); // Assert var message = export.CheckIsProcessing(); Assert.AreEqual("File Processing", message); var text = export.CheckAfterRefresh(); Assert.AreEqual("CTF Export", text); }
public void CtfExportNotify() { // Arrange const string expected = "CTF Export Process"; SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator, true, "CTFExportV16"); AutomationSugar.NavigateMenu("Tasks", "Pupils", "CTF Export"); var export = new CtfExportRefresh(); export.GenerateCtfExport(); // Act export.Pupilselector(); Wait.WaitTillAllAjaxCallsComplete(); export.NavigateToOtherScreen(); // Assert export.WaitForProcessingOnOtherScreen(); var actual = export.ReadAndReturnMessageText(); Assert.AreEqual(expected, actual); }