Пример #1
0
        public void RunMakeKillTabs()
        {
            using (TerminalApp app = new TerminalApp(TestContext))
            {
                var root = app.GetRoot();

                root.SendKeys(Keys.LeftAlt + Keys.LeftShift + "T");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftAlt + Keys.LeftShift + "T");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftAlt + Keys.LeftShift + "T");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftAlt + Keys.LeftShift + "T");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftControl + Keys.LeftShift + "W");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftControl + Keys.LeftShift + "W");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftControl + Keys.LeftShift + "W");
                Globals.WaitForTimeout();
                root.SendKeys(Keys.LeftControl + Keys.LeftShift + "W");
                Globals.WaitForTimeout();

                Globals.WaitForLongTimeout();
            }
        }
Пример #2
0
 public void StartTerminal()
 {
     using (TerminalApp app = new TerminalApp(TestContext))
     {
         var root = app.GetRoot();
         root.SendKeys("Hello smoke test!");
         Globals.WaitForLongTimeout();
     }
 }
Пример #3
0
 public void RunBigTextCmd()
 {
     using (TerminalApp app = new TerminalApp(TestContext, "cmd.exe"))
     {
         var root        = app.GetRoot();
         var contentPath = app.GetFullTestContentPath("big.txt");
         root.SendKeys($"type \"{contentPath}\"");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }
Пример #4
0
 public void RunBigTextPowershellBulk()
 {
     using (TerminalApp app = new TerminalApp(TestContext))
     {
         var root        = app.GetRoot();
         var contentPath = app.GetFullTestContentPath("big.txt");
         root.SendKeys($"Get-Content -ReadCount 0 \"{contentPath}\" | Out-Default");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }
Пример #5
0
 public void RunCacafireCmd()
 {
     using (TerminalApp app = new TerminalApp(TestContext, "cmd.exe"))
     {
         var root = app.GetRoot();
         root.SendKeys("chcp 65001" + Keys.Enter); // This output needs UTF-8
         var contentPath = app.GetFullTestContentPath("cacafire.txt");
         root.SendKeys($"type \"{contentPath}\"");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }