public void RemoteServerUITests_EditRemotePluginService_PluginServiceIsEdited() { // NOTE : // Requires PluginSource points the correct location as set below... // Requires a Plugin Directory on server with : // Plugins\PrimativesTestDLL.dll // And Plugins\PrimativesTestDLL - Copy.dll const string TextToSearchWith = "PluginService"; //Edit remote plugin service ExplorerUIMap.DoubleClickService(TextToSearchWith, "REMOTEUITESTS", RemoteServerName); PluginServiceWizardUIMap.ClickActionAtIndex(4); KeyboardCommands.SendTabs(8, 250); KeyboardCommands.SendEnter(500); // test it KeyboardCommands.SendTabs(5, 250); KeyboardCommands.SendEnter(500); // save it //Change it back ExplorerUIMap.DoubleClickService(TextToSearchWith, "REMOTEUITESTS", RemoteServerName); string actionName = PluginServiceWizardUIMap.GetActionName(); PluginServiceWizardUIMap.ClickActionAtIndex(13); KeyboardCommands.SendTabs(8, 250); KeyboardCommands.SendEnter(500); // test it KeyboardCommands.SendTabs(5, 250); KeyboardCommands.SendEnter(500); // save it StringAssert.Contains(actionName, "FetchCharVal"); }
public void PluginServiceTests_CodedUI_EditSource_FromEditService_ExceptNoNameError() { //------------Setup for test-------------------------- //Drag the service onto the design surface UITestControl theTab = ExplorerUIMap.DoubleClickWorkflow("ErrorFrameworkTestWorkflow", "UI TEST"); UITestControl service = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "DummyService"); using (DsfActivityUiMap activityUiMap = new DsfActivityUiMap(false) { Activity = service, TheTab = theTab }) { //------------Execute Test--------------------------- activityUiMap.ClickEdit(); PluginServiceWizardUIMap.EditSource(); var contents = PluginServiceWizardUIMap.GetWindowContents(); PluginServiceWizardUIMap.CancelEntireOperation(); var result = (contents.IndexOf("Name already exists.", StringComparison.Ordinal) >= 0); var isEmpty = (contents.Length == 0); //------------Assert Results------------------------- Assert.IsFalse(isEmpty, "Copy did not copy content of Edit Source Wizard!"); Assert.IsFalse(result, "Plugin Source Window Contains Save Message?! Check your warewolf-utils.js - updateSaveValidationSpan method"); } }
public void PluginServiceTests_CodedUI_EditService_ExpectErrorButton() { var newMapping = "ZZZ" + Guid.NewGuid().ToString().Replace("-", "").Substring(0, 6); //Drag the service onto the design surface UITestControl theTab = ExplorerUIMap.DoubleClickWorkflow("ErrorFrameworkTestWorkflow", "UI TEST"); UITestControl service = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "DummyService"); using (DsfActivityUiMap activityUiMap = new DsfActivityUiMap(false) { Activity = service, TheTab = theTab }) { activityUiMap.ClickEdit(); //Wizard actions PluginServiceWizardUIMap.ClickMappingTab(); PluginServiceWizardUIMap.EnterDataIntoMappingTextBox(3, newMapping); PluginServiceWizardUIMap.ClickSaveButton(1); ResourceChangedPopUpUIMap.ClickCancel(); //Assert the the error button is there Assert.IsTrue(activityUiMap.IsFixErrorButtonShowing()); //Click the fix errors button activityUiMap.ClickFixErrors(); activityUiMap.ClickCloseMapping(); //Assert that the fix errors button isnt there anymore Assert.IsFalse(activityUiMap.IsFixErrorButtonShowing()); } }
public void NewPluginServiceShortcutKeyExpectedPluginServiceOpens() { StudioWindow.WaitForControlReady(1000); Keyboard.SendKeys(StudioWindow, "{CTRL}{SHIFT}P"); if (!WizardsUIMap.TryWaitForWizard()) { Assert.Fail("New plugin service shortcut key doesnt work"); } StudioWindow.SetFocus(); PluginServiceWizardUIMap.ClickCancel(); }
public void ClickNewPluginServiceExpectedPluginServiceOpens() { RibbonUIMap.ClickNewPlugin(); UITestControl uiTestControl = PluginServiceWizardUIMap.GetWizardWindow(); if (uiTestControl == null) { Assert.Fail("Error - Clicking the new plugin service button does not create the new plugin service window"); } StudioWindow.SetFocus(); PluginServiceWizardUIMap.ClickCancel(); }
public void RemoteServerUITests_EditRemotePluginSource_PluginSourceIsEdited() { // NOTE : // Requires a Plugin Directory on server with : // Plugins\PrimativesTestDLL.dll // And Plugins\PrimativesTestDLL - Copy.dll const string TextToSearchWith = "PluginSource"; //Edit remote plugin source ExplorerUIMap.DoubleClickSource(TextToSearchWith, "REMOTETESTS", RemoteServerName); var actualLeftTitleText = PluginSourceMap.GetLeftTitleText(); var actualRightTitleText = PluginSourceMap.GetRightTitleText(); Assert.AreEqual("Edit - PluginSource", actualLeftTitleText); Assert.AreEqual(remoteConnectionString, actualRightTitleText); KeyboardCommands.SendTabs(2, 250); KeyboardCommands.SelectAll(); KeyboardCommands.SendDel(); KeyboardCommands.SendKey("Plugins\\PrimativesTestDLL - Copy.dll"); PluginServiceWizardUIMap.PressButtonOnWizard(1); SaveDialogUIMap.ClickSave(); // Change it back ExplorerUIMap.DoubleClickSource(TextToSearchWith, "REMOTETESTS", RemoteServerName); KeyboardCommands.SendTabs(2, 250); KeyboardCommands.SelectAll(); // get the path to see what it saved as ;) var path = KeyboardCommands.SendCopy(); KeyboardCommands.SendDel(); KeyboardCommands.SendKey("Plugins\\PrimativesTestDLL.dll"); PluginServiceWizardUIMap.PressButtonOnWizard(1); SaveDialogUIMap.ClickSave(); Assert.AreEqual(path, @"Plugins\PrimativesTestDLL - Copy.dll", "Cannot change remote plugin source"); }