Example #1
0
 private static void InstallAt()
 {
     AT.Install();
     Assert.IsTrue(AT.WatchdogExists());
     Assert.IsTrue(AT.DttExists());
     Assert.IsTrue(AT.OsrExists());
 }
Example #2
0
        private static void InstallAt()
        {
            Console.WriteLine("Install AT");

            AT.Install();
            Assert.IsTrue(AT.WatchdogExists(), "Watch Dog service isn't started.");
            Assert.IsTrue(AT.DttExists(), "DTT service isn't started.");
            Assert.IsTrue(AT.OsrExists(), "OSR process isn't started.");
        }
Example #3
0
        public void Stable()
        {
            Preparation();
            InstallAt();

            CheckDtt();
            Assert.IsTrue(AT.WatchdogExists());
            Assert.IsTrue(AT.DttExists());
            Assert.IsTrue(AT.OsrExists());
            for (var i = 0; i < 2000; i++)
            {
                Calc = new Calculator(NunitSettings.CalcLocation);
                Thread.Sleep(DelayRunCalc);
                UserInputs.PressF1();
                Thread.Sleep(DelayHotKey);
                ////Call search in help window
                UserInputs.PressAltS();
                Thread.Sleep(DelayHotKey);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.A);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.C);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.F);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.G);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.N);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.O);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.P);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.S);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.V);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.X);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Z);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Shift);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Escape);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.F6);
                UserInputs.PressHotKey((int)VirtualKeys.LaunchApplication1, (int)VirtualKeys.F6);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.F2);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.F1);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.D);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.Space);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.R);
                UserInputs.PressHotKey((int)VirtualKeys.LeftWindows, (int)VirtualKeys.U);
                UserInputs.PressHotKey((int)VirtualKeys.Shift, (int)VirtualKeys.Tab);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Tab);
                UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.H);
                UserInputs.PressHotKey((int)VirtualKeys.Shift, (int)VirtualKeys.I);
            }
        }
Example #4
0
 public static void CheckProcess()
 {
     Assert.IsTrue(AT.WatchdogExists(), "Watch Dog service isn't started.");
     Assert.IsTrue(AT.DttExists(), "DTT service isn't started.");
     Assert.IsTrue(AT.OsrExists(), "OSR process isn't started.");
 }
 private static void CheckProcessAndServicesAbsent()
 {
     Assert.IsFalse(AT.WatchdogExists(), "Watch Dog service isn't removed.");
     Assert.IsFalse(AT.DttExists(), "DTT service isn't removed.");
     Assert.IsFalse(AT.OsrExists(), "OSR process isn't removed.");
 }