public void CreateDotNetSource_GivenTabHasChanges_ClosingStudioPromptsChanges() { //Create Source ExplorerUIMap.Click_NewDotNetPluginSource_From_ExplorerContextMenu(); const string newDll = @"C:\ProgramData\Warewolf\Resources\TestingDotnetDllCascading.dll"; DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text = newDll; Mouse.Click(UIMap.MainStudioWindow.CloseStudioButton); DialogsUIMap.Click_MessageBox_Cancel(); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.Exists); }
public void Select_GACAssembly_DotNetPluginSource_UITests() { ExplorerUIMap.Click_NewDotNetPluginSource_From_ExplorerContextMenu(); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.Enabled, "Assembly Combobox is not enabled"); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyDirectoryButton.Enabled, "Assembly Combobox Button is not enabled"); Assert.IsFalse(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.ConfigFileComboBox.Enabled, "Config File Combobox is enabled"); Assert.IsFalse(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.ConfigFileDirectoryButton.Enabled, "Config File Combobox Button is enabled"); Assert.IsFalse(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.GACAssemblyComboBox.Enabled, "GAC Assembly Combobox is enabled"); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.GACAssemblyDirectoryButton.Enabled, "GAC Assembly Combobox Button is not enabled"); Mouse.Click(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.GACAssemblyDirectoryButton); DialogsUIMap.Select_GACAssemblyFile_From_ChooseDLLWindow("Microsoft"); UIMap.Save_With_Ribbon_Button_And_Dialog(GACAssemblySourceName); ExplorerUIMap.Filter_Explorer(GACAssemblySourceName); Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists, "Source did not save in the explorer UI."); }
public void Edit_DotNetSource_Keeps_The_Changes_On_ReOpen_UITests() { const string newDll = @"C:\ProgramData\Warewolf\Resources\TestingDotnetDllCascading.dll"; const string newDll2 = @"C:\ProgramData\Warewolf\Resources\TestingDotnetDllCascading2.dll"; ExplorerUIMap.RightClick_Localhost(); ExplorerUIMap.Click_NewDotNetPluginSource_From_ExplorerContextMenu(); DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text = newDll; UIMap.Save_With_Ribbon_Button_And_Dialog("NewDotnetPluginSource_Explorer"); DotNetPluginSourceUIMap.Click_Close_DotNetPlugin_Source_Tab(); ExplorerUIMap.Filter_Explorer("NewDotnetPluginSource_Explorer"); ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item(); Assert.AreEqual(newDll, DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text, "Assembly is not equal to updated text."); DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text = newDll2; UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog(); DotNetPluginSourceUIMap.Click_Close_DotNetPlugin_Source_Tab(); ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item(); Assert.AreEqual(newDll2, DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text, "Assembly is not equal to updated text."); }
public void Select_AssemblyAndConfigFile_Then_Validate_Clear_On_GACSelection_UITests() { string fakeDllPath = @"C:\UITestAssembly.dll"; File.Create(fakeDllPath).Close(); string fakeConfigPath = @"C:\UITestAssembly.dll.config"; File.Create(fakeConfigPath).Close(); try { ExplorerUIMap.Click_NewDotNetPluginSource_From_ExplorerContextMenu(); DotNetPluginSourceUIMap.Click_AssemblyDirectoryButton_On_DotnetPluginSourceTab(); Assert.IsTrue(DialogsUIMap.ChooseDLLWindow.Exists, "Choose DLL Window does not exist."); DialogsUIMap.Select_DLLAssemblyFile_From_ChooseDLLWindow(fakeDllPath); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.ConfigFileComboBox.Enabled, "Config File ComboBox is not enabled"); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.ConfigFileDirectoryButton.Enabled, "Config File Directory button is not enabled"); DotNetPluginSourceUIMap.Click_ConfigFileDirectoryButton_On_DotnetPluginSourceTab(); DialogsUIMap.Enter_ConfigFile_In_SelectFilesWindow(fakeConfigPath); Assert.IsFalse(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.GACAssemblyComboBox.Enabled, "GAC Assembly Combobox is enabled"); Mouse.Click(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.GACAssemblyDirectoryButton); DialogsUIMap.Select_GACAssemblyFile_From_ChooseDLLWindow("Microsoft"); Assert.IsFalse(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.ConfigFileComboBox.Enabled, "Config File Combobox is enabled."); Assert.IsTrue(string.IsNullOrEmpty(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text), "Assembly Combobox did not clear text."); } finally { while (File.Exists(fakeDllPath)) { File.Delete(fakeDllPath); } while (File.Exists(fakeConfigPath)) { File.Delete(fakeConfigPath); } } }
public void UnpinDotNetPluginSourceWizardTab() { ExplorerUIMap.Click_NewDotNetPluginSource_From_ExplorerContextMenu(); UIMap.Unpin_Tab_With_Drag(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab); }