Beispiel #1
0
        public void SMTPMultipleAttachmentsUITest()
        {
            string folderName = @"c:\$$AttachmentsForEmail";
            string filePath1  = @"C:\$$AttachmentsForEmail\attachment1.txt";
            string filePath2  = @"C:\$$AttachmentsForEmail\attachment2.txt";

            try
            {
                UIMap.CreateFolderForAttachments(folderName);
                UIMap.CreateAttachmentsForTest(filePath1);
                UIMap.CreateAttachmentsForTest(filePath2);
                EmailToolsUIMap.Open_SMTPSendTool_LargeView();
                EmailToolsUIMap.Click_SelectFilesButton_On_SMTPEmailTool_LargeView();
                DialogsUIMap.Select_Attachments_From_SelectFilesWindow();
                Assert.IsFalse(string.IsNullOrEmpty(EmailToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.SMTPEmail.LargeViewContent.AttachmentsComboBox.TextEdit.Text), "File Directory Textbox is empty");
                UIMap.RemoveTestFiles(filePath1, filePath2, folderName);
            }
            catch
            {
                UIMap.RemoveTestFiles(filePath1, filePath2, folderName);
            }
        }