public void CloseAllTabs()
        {
            try
            {
                StudioWindow.SetFocus();
                // first try closing wizards ;)
                for (var i = 0; i < 5; i++)
                {
                    Playback.Wait(150);
                    SendKeys.SendWait("{ESC}");
                }

                // fetch the darn thing once ;)
                var tabManager = GetManager();

                if (tabManager != null)
                {
                    var tabs = tabManager.GetChildren();

                    for (int index = tabs.Count - 1; index >= 0; index--)
                    {
                        var tab = tabs[index];
                        CloseTab_Click_No(tab);
                    }
                }
            }
            // ReSharper disable EmptyGeneralCatchClause
            catch
            // ReSharper restore EmptyGeneralCatchClause
            {
                // just do it ;)
            }
        }
示例#2
0
        public void NewWorkflowShortcutKeyExpectedWorkflowOpens()
        {
            var preCount = TabManagerUIMap.GetTabCount();

            StudioWindow.SetFocus();
            Keyboard.SendKeys(StudioWindow, "{CTRL}W");
            string activeTabName = TabManagerUIMap.GetActiveTabName();
            var    postCount     = TabManagerUIMap.GetTabCount();

            Assert.IsTrue(postCount == preCount + 1, "Tab quantity has not been increased");
            Assert.IsTrue(activeTabName.Contains("Unsaved"), "Active workflow is not an unsaved workflow");
        }
示例#3
0
        public void NewWebServiceShortcutKeyExpectedWebServiceOpens()
        {
            StudioWindow.WaitForControlReady(1000);
            Keyboard.SendKeys(StudioWindow, "{CTRL}{SHIFT}W");
            if (!WizardsUIMap.TryWaitForWizard())
            {
                Assert.Fail("New web service shortcut key doesnt work");
            }

            StudioWindow.SetFocus();
            WebServiceWizardUIMap.Cancel();
        }
示例#4
0
        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();
        }
示例#5
0
 public void SchedulerShortcutKeyPress()
 {
     StudioWindow.SetFocus();
     KeyboardCommands.SendKey("{ALT}S", 2000);
 }
示例#6
0
 public void DebugShortcutKeyPress()
 {
     StudioWindow.SetFocus();
     SendKeys.SendWait("{F6}");
 }
示例#7
0
 public void ClickManageSecuritySettings()
 {
     StudioWindow.SetFocus();
     ClickRibbonMenuItem("UI_RibbonHomeManageSecuritySettingsBtn_AutoID");
     StudioWindow.WaitForControlReady();
 }