Example #1
0
        public void WizardUiTests_WebServiceWizard_WebServiceInputMappingsDeleteAll_ExpectedNoInputMappings()
        {
            string    newGuid           = Guid.NewGuid().ToString();
            string    remove            = newGuid.Remove(8);
            string    newWebserviceName = "WebService" + remove;
            const int WaitMs            = 50;

            //Open wizard
            RibbonUIMap.ClickNewWebService();
            KeyboardCommands.SendTabs(2, WaitMs);
            KeyboardCommands.SendDownArrows(1, WaitMs);
            KeyboardCommands.SendTabs(8, WaitMs);
            KeyboardCommands.SendDownArrows(1, WaitMs);
            KeyboardCommands.SendTabs(4, WaitMs);
            KeyboardCommands.SendDel();
            KeyboardCommands.SendTabs(2, WaitMs);
            KeyboardCommands.SendEnter(5000);
            KeyboardCommands.SendTabs(1, WaitMs);
            KeyboardCommands.SendEnter(1000);
            KeyboardCommands.SendTabs(3, WaitMs);
            KeyboardCommands.SendKey(newWebserviceName, WaitMs);
            KeyboardCommands.SendTabs(1, WaitMs);
            KeyboardCommands.SendEnter(2000);

            UITestControl theTab          = RibbonUIMap.CreateNewWorkflow(1500);
            UITestControl activityControl = ExplorerUIMap.DragResourceOntoWorkflowDesigner(theTab, newWebserviceName, "Unassigned");

            using (var activity = new DsfActivityUiMap(false)
            {
                Activity = activityControl, TheTab = theTab
            })
            {
                Assert.AreEqual(0, activity.GetInputMappingRows().Count);
            }
        }
        public void CreateEmailSource(string sourceName)
        {
            KeyboardCommands.SendTab();
            Playback.Wait(50);
            KeyboardCommands.SendKey("localhost");
            KeyboardCommands.SendTab();
            Playback.Wait(50);
            KeyboardCommands.SendKey("test");
            KeyboardCommands.SendTab();
            KeyboardCommands.SendKey("test");
            KeyboardCommands.SendTabs(2);
            Playback.Wait(50);
            KeyboardCommands.SendTabs(2);
            Playback.Wait(50);
            KeyboardCommands.SendEnter();
            SendKeys.SendWait("^[email protected]{TAB}");
            SendKeys.SendWait("[email protected]{TAB}");
            Playback.Wait(50);
            KeyboardCommands.SendEnter();
            Playback.Wait(5000);//wait for test
            ClickSave();

            KeyboardCommands.SendTabs(3);
            Playback.Wait(50);
            KeyboardCommands.SendKey(sourceName);
            Playback.Wait(50);
            KeyboardCommands.SendTab();
            KeyboardCommands.SendEnter();
        }
 public void EnterUsernameAndPassword(string user, string pass)
 {
     KeyboardCommands.SendTabs(3, 200);
     KeyboardCommands.SendKey(user);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendKey(pass);
     Playback.Wait(100);
 }
Example #4
0
        public void ClickSaveButton(int numberOfTabsToSaveButton)
        {
            var wizard = StudioWindow.GetChildren()[0].GetChildren()[2];

            wizard.WaitForControlReady();
            KeyboardCommands.SendTabs(numberOfTabsToSaveButton, 200);
            KeyboardCommands.SendEnter();
            Playback.Wait(500);
        }
Example #5
0
 public void CreateDbService(string serviceName)
 {
     ClickFirstAction();
     ClickTestAction();
     KeyboardCommands.SendTabs(5);
     KeyboardCommands.SendEnter();
     KeyboardCommands.SendTabs(3);
     SendKeys.SendWait(serviceName);
     Playback.Wait(10);
     KeyboardCommands.SendEnter();
 }
        public string GetUserName()
        {
            KeyboardCommands.SendTabs(3, 250);
            KeyboardCommands.SelectAll();
            KeyboardCommands.SendKey(KeyboardCommands.CopyCommand);
            var wizard   = StudioWindow.GetChildren()[0].GetChildren()[2];
            var userName = Clipboard.GetText();

            //Clipboard.SetText(persistClipboard);
            Mouse.Click(wizard, new Point(584, 160));
            return(userName);
        }
        /// <summary>
        /// ClickAndTypeInNameTextbox - Use 'ClickAndTypeInNameTextboxParams' to pass parameters into this method.
        /// </summary>
        public void ClickAndTypeInNameTextbox(string textToType)
        {
            WizardsUIMap.WaitForWizard();
            #region Variable Declarations
            //UITestControl uIItemImage = this.UIBusinessDesignStudioWindow.GetChildren()[0].GetChildren()[0];
            #endregion

            KeyboardCommands.SendTabs(6, 150);
            KeyboardCommands.SendKey(textToType, 200);
            KeyboardCommands.SendDel();
            //MouseCommands.ClickPoint(new Point(145, 364), 100);
            KeyboardCommands.SendTabs(2, 150);
            KeyboardCommands.SendEnter();
        }
 public void SaveWebService(string serviceName)
 {
     //Web Service Details
     KeyboardCommands.SendTabs(8);
     Playback.Wait(500);
     KeyboardCommands.SendEnter();
     Playback.Wait(500);//wait for test
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
     Playback.Wait(500);
     KeyboardCommands.SendTabs(3);
     KeyboardCommands.SendKey(serviceName);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
 }
 public void CreateWebSource(string sourceUrl, string sourceName)
 {
     //Web Source Details
     KeyboardCommands.SendKey(sourceUrl);
     KeyboardCommands.SendTabs(3);
     Playback.Wait(100);
     KeyboardCommands.SendEnter();
     Playback.Wait(1000);
     WebSourceWizardUIMap.ClickSave();
     KeyboardCommands.SendTabs(3);
     KeyboardCommands.SendKey(sourceName);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
     Playback.Wait(1000);
 }
Example #10
0
        public void WizardUiTests_WebServiceWizard_WebServiceInputMappings_ExpectedInputMappingsCreated()
        {
            string newGuid           = Guid.NewGuid().ToString();
            string remove            = newGuid.Remove(8);
            string newWebserviceName = "WebService" + remove;

            //Open wizard
            const int tabWait = 200;

            RibbonUIMap.ClickNewWebService();
            KeyboardCommands.SendTabs(2, tabWait);
            KeyboardCommands.SendDownArrows(1);
            KeyboardCommands.SendTabs(8, tabWait);
            KeyboardCommands.SendDownArrows(1); // first resource is faulty, we need the second ;)
            KeyboardCommands.SendTabs(4, tabWait);
            KeyboardCommands.SelectAllText();
            KeyboardCommands.SendDel();
            KeyboardCommands.SendKey("?[[a]]=[[b]][[c]]&[[d]]=[[f]]");
            KeyboardCommands.SendLeftArrows(2);
            KeyboardCommands.SendKey("e");
            KeyboardCommands.SendTabs(2, tabWait);
            KeyboardCommands.SendEnter(8000);
            KeyboardCommands.SendTabs(1, tabWait); // Test
            KeyboardCommands.SendEnter(5000);
            KeyboardCommands.SendTabs(3, tabWait);
            KeyboardCommands.SendKey(newWebserviceName);
            KeyboardCommands.SendTabs(1, tabWait);
            KeyboardCommands.SendEnter(2000);

            UITestControl theTab          = RibbonUIMap.CreateNewWorkflow(1500);
            UITestControl activityControl = ExplorerUIMap.DragResourceOntoWorkflowDesigner(theTab, newWebserviceName, "Unassigned");

            using (var activity = new DsfActivityUiMap(false)
            {
                Activity = activityControl, TheTab = theTab
            })
            {
                StringAssert.Contains(activity.GetInputMappingToServiceValue(1), "a");
                StringAssert.Contains(activity.GetInputMappingToServiceValue(2), "b");
                StringAssert.Contains(activity.GetInputMappingToServiceValue(3), "c");
                StringAssert.Contains(activity.GetInputMappingToServiceValue(4), "d");
                StringAssert.Contains(activity.GetInputMappingToServiceValue(5), "fe");
            }
        }
Example #11
0
 public void CreateDbSource(string sourcePath, string sourceName)
 {
     //KeyboardCommands.SendTab();
     KeyboardCommands.SendKey(sourcePath);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendRightArrows(1);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendKey(@"testuser");
     KeyboardCommands.SendTab();
     KeyboardCommands.SendKey("test123");
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
     Playback.Wait(2500);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendDownArrows(1);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
     KeyboardCommands.SendTabs(3);
     KeyboardCommands.SendKey(sourceName);
     KeyboardCommands.SendTab();
     KeyboardCommands.SendEnter();
     Playback.Wait(1500);
 }
Example #12
0
        public void WizardUiTests_WebServiceWizard_WebServiceInputMappingsCase3_ExpectedInputMappingsCreated()
        {
            string newGuid           = Guid.NewGuid().ToString();
            string remove            = newGuid.Remove(8);
            string newWebserviceName = "WebService" + remove;

            //Open wizard
            RibbonUIMap.ClickNewWebService();
            KeyboardCommands.SendTabs(2);
            KeyboardCommands.SendDownArrows(1);
            KeyboardCommands.SendTabs(8);
            KeyboardCommands.SendDownArrows(1);
            KeyboardCommands.SendTabs(4);
            KeyboardCommands.SelectAllText();
            KeyboardCommands.SendKey("[[foobar]]?a=[[a]]");
            KeyboardCommands.SendTabs(2);
            KeyboardCommands.SendEnter(5000);
            KeyboardCommands.SendTabs(1);
            KeyboardCommands.SendEnter(1000);
            KeyboardCommands.SendTabs(3);
            KeyboardCommands.SendKey(newWebserviceName);
            KeyboardCommands.SendTabs(1);
            KeyboardCommands.SendEnter(2000);

            UITestControl theTab          = RibbonUIMap.CreateNewWorkflow(1500);
            UITestControl activityControl = ExplorerUIMap.DragResourceOntoWorkflowDesigner(theTab, newWebserviceName, "Unassigned");

            using (var activity = new DsfActivityUiMap(false)
            {
                Activity = activityControl, TheTab = theTab
            })
            {
                Assert.AreEqual("a", activity.GetInputMappingToServiceValue(1));
                Assert.AreEqual("foobar", activity.GetInputMappingToServiceValue(2));
            }
        }
 /// <summary>
 /// Edits the source.
 /// </summary>
 public void EditSource()
 {
     KeyboardCommands.SendTabs(2);
     KeyboardCommands.SendEnter();
 }