コード例 #1
0
        public void SendMessageWithAttachedFile_sentCorrectFileExtension()
        {
            themeOfMessage = "Message with attached file";
            messageBody    = "sent a message to the method being tested SentMessageWithAttachedFile()";
            string fileName = "Account.txt";

            inboxGmailPage.OpenNewMessagePopUp();

            messagePopUp.SendMessageWithAttachedFile(this.firstMail, themeOfMessage, messageBody, fileName);

            this.foundMessage = inboxGmailPage.GetMessageByFileName(fileName);
            Assert.IsTrue(foundMessage.Displayed);
        }
コード例 #2
0
        public void SendMessageWithAttachedFile_sentCorrectFileExtension()
        {
            this.themeOfMessage = "Message with attached file";
            this.messageBody    = "sent a message to the method being tested SentMessageWithAttachedFile()";
            this.fileName       = "Account.txt";
            this.pathFileName   = controller.GetFilePath(fileName);

            MessagePopUp messagePopUp = inboxGmailPage.OpenNewMessagePopUp();

            messagePopUp.SendMessageWithAttachedFile(this.firstMail, this.themeOfMessage, this.messageBody, pathFileName);

            Assert.IsTrue(inboxGmailPage.GetMessageByFileName(fileName).Displayed);
        }
コード例 #3
0
        public void SendMessageWithAttachedFile_SentMessageWithoutFile()
        {
            this.themeOfMessage = "incorrect file extension";
            this.messageBody    = "sent a message to the method being tested SentMessageWithAttachedFile() with incorrect file extension";
            this.fileName       = "iTechArt.7z";
            this.pathFileName   = controller.GetFilePath(fileName);

            MessagePopUp messagePopUp = inboxGmailPage.OpenNewMessagePopUp();

            messagePopUp.SendMessageWithAttachedFile(this.firstMail, this.themeOfMessage, this.messageBody, pathFileName);
            messagePopUp.ConfirmAlertPopUp();

            Assert.IsTrue(inboxGmailPage.GetMessageByTheme(themeOfMessage).Displayed);
        }