public void GivenUserDownloadTheAttachmentFromDepartmentInboxMail(string subject, string downloadFileName, int downloadFileNo)
 {
     driver    = driverFactory.GetDriver();
     inboxPage = new InboxPage(driver);
     inboxPage.NavigateToQADeptInbox(driver);
     inboxPage.DownloadFile(subject, downloadFileName, downloadFileNo);
 }
 public void WhenUserGoToMyMessagesOutgoingDocument()
 {
     driver    = driverFactory.GetDriver();
     inboxPage = new InboxPage(driver);
     inboxPage.NavigateToMyMessageInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Outgoing Document");
 }
 public void ThenEncryptedMailShouldAppearInTheInbox(string to, string subject, string content, string listSubject, string encryptedPass)
 {
     myMessageInboxPage = new InboxPage(driver);
     myMessageInboxPage.NavigateToMyMessageInbox(driver);
     readFromConfig = new ReadFromConfig();
     Assert.IsTrue(myMessageInboxPage.ValidateMail(driver, readFromConfig.GetValue(to), subject, content, listSubject, readFromConfig.GetValue(encryptedPass)));
 }
 public void WhenUserSendsAnOutgoingMessageTo(string name, string subject, string content, string deliveryType)
 {
     driver             = driverFactory.GetDriver();
     myMessageInboxPage = new InboxPage(driver);
     readFromConfig     = new ReadFromConfig();
     myMessageInboxPage.SendOutgoingMessage(subject, content, deliveryType: readFromConfig.GetValue(deliveryType), deptName: readFromConfig.GetValue(name));
 }
Exemplo n.º 5
0
 public void WhenUserGoToDepartmentInbox(string dept)
 {
     driver = driverFactory.GetDriver();
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage = new InboxPage(driver);
 }
 public void WhenUserAttachAnAttachment(string attachmentType, int attachmentNo)
 {
     driver    = driverFactory.GetDriver();
     inboxPage = new InboxPage(driver);
     inboxPage.NavigateToMyMessageInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.AddAttachments(attachmentType, attachmentNo);
 }
 public void WhenUserGoToDeptMessagesInternalDocument()
 {
     driver               = driverFactory.GetDriver();
     inboxPage            = new InboxPage(driver);
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
 }
 public void WhenUserOpensDepartmentMailWithSubject(string dept, string subject)
 {
     driver = driverFactory.GetDriver();
     deptMessageInboxPage = new Pages.DeptMessages.InboxPage(driver);
     deptMessageInboxPage.NavigateToQADeptInbox(driver);
     inboxPage = new InboxPage(driver);
     inboxPage.OpenMail(driver, subject);
 }
 public void WhenUserGoToInternalDocument()
 {
     driver         = driverFactory.GetDriver();
     inboxPage      = new InboxPage(driver);
     readFromConfig = new ReadFromConfig();
     inboxPage.NavigateToMyMessageInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
 }
 public void WhenUserSendsAnInternalMessageWithAttachmentTo(string level, string receiverType, string to, string subject, string content, int multipleAttachementNo, string multipleAttachmentType)
 {
     driver    = driverFactory.GetDriver();
     inboxPage = new InboxPage(driver);
     inboxPage.NavigateToMyMessageInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.ClickToButton(driver);
     inboxPage.SelectLevel(driver, level);
     inboxPage.SelectReceiverType(driver, receiverType);
     inboxPage.SearchNameCode = to;
     inboxPage.SelectToUser(driver, to);
     inboxPage.ClickOkBtn();
     inboxPage.SendMail(subject, content, multipleAttachementNo: multipleAttachementNo, multipleAttachmentType: multipleAttachmentType);
 }
 public void WhenUserSendsAnEncryptedMessageTo(string level, string receiverType, string to, string subject, string content, string encryptPassword)
 {
     driver             = driverFactory.GetDriver();
     myMessageInboxPage = new InboxPage(driver);
     myMessageInboxPage.NavigateToMyMessageInbox(driver);
     myMessageInboxPage.CheckButtonClickable(driver, "Encrypted internal message");
     myMessageInboxPage.ClickToButton(driver);
     myMessageInboxPage.SelectLevel(driver, readFromConfig.GetValue(level));
     myMessageInboxPage.SelectReceiverType(driver, receiverType);
     myMessageInboxPage.SearchNameCode = readFromConfig.GetValue(to);
     myMessageInboxPage.SelectToUser(driver, readFromConfig.GetValue(to));
     myMessageInboxPage.ClickOkBtn();
     myMessageInboxPage.SendMail(subject, content);
 }
 public void WhenUserSendsAnInternalMessageWithProperties(string level, string receiverType, string to, string subject, string content, string securityLevel, int attachmentNo, string attachmentType)
 {
     driver         = driverFactory.GetDriver();
     inboxPage      = new InboxPage(driver);
     readFromConfig = new ReadFromConfig();
     inboxPage.NavigateToMyMessageInbox(driver);
     inboxPage.CheckButtonClickable(driver, "Internal Document");
     inboxPage.ClickToButton(driver);
     inboxPage.SelectLevel(driver, level);
     inboxPage.SelectReceiverType(driver, receiverType);
     inboxPage.SearchNameCode = readFromConfig.GetValue(to);
     inboxPage.SelectToUser(driver, readFromConfig.GetValue(to));
     inboxPage.ClickOkBtn();
     inboxPage.SendMail(subject, content, multipleAttachementNo: attachmentNo, multipleAttachmentType: attachmentType, securityLevel: readFromConfig.GetValue(securityLevel));
 }
 public void WhenUserOpensInboxEmailWithSubject(string subject)
 {
     driver    = driverFactory.GetDriver();
     inboxPage = new InboxPage(driver);
     inboxPage.OpenMail(driver, subject);
 }
 public void ThenMailShouldAppearInTheInbox(string to, string subject, string content)
 {
     myMessageInboxPage = new InboxPage(driver);
     myMessageInboxPage.NavigateToMyMessageInbox(driver);
     Assert.IsTrue(myMessageInboxPage.ValidateMail(driver, readFromConfig.GetValue(to), subject, content));
 }