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(); } }
public void StartTerminal() { using (TerminalApp app = new TerminalApp(TestContext)) { var root = app.GetRoot(); root.SendKeys("Hello smoke test!"); Globals.WaitForLongTimeout(); } }
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); } }
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); } }
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); } }