private void FinishRebootProcess() { RenameLogFile(); Console.WriteLine("Removing ShortCut from Sturtup folder"); Thread.Sleep(3000); _fileService.RemoveFile(StartupDirectoryFullPath, Constants.RebootLoopShortcutName + ".lnk", IsShortcutOfRebootLoopExists); _logInService.DisableAutoLogIn(); FinishTest(); }
public static void SelectTestPoint() { Console.WriteLine(@"Please select a test set of tests (e.g. 1,2,3,4,5 or 11,12 ... 100). You cannot set Test and Environment at the same time. Tests: 1. Reboot System Test 2. Sleep Test 3. Set Debugger 4. WSHTester 5. KernelStress Test Setting The Environment: 11. Turn ON HVCI 12. Turn OFF HVCI 21. Turn ON HyperThreading 22. Turn OFF HyperThreading 31. Enable Windows Update 32. Disable Windows Update 41. Turn ON M5M11 42. Turn OFF M5M11 51. Enable AutoAdminLogon 52. Disable AutoAdminLogon Checking The Environment: 100. Check is HVCI running 0. To quit"); List <int> testList = _inputService.CreateTestList(); if (testList.Min() <= 5) { CreateZTestSettingList(testList); SetConfiguration(); } else { foreach (var item in testList) { switch (item) { case 11: { _testEnvironment.TurnOnHVCI(); break; } case 12: { _testEnvironment.TurnOffHVCI(); break; } case 21: { _testEnvironment.TurnOnHyperThreading(); break; } case 22: { _testEnvironment.TurnOFFHyperThreading(); break; } case 31: { _testEnvironment.EnableWindowsUpdate(); break; } case 32: { _testEnvironment.DisableWindowsUpdate(); break; } case 41: { _testEnvironment.TurnOnM5M11(); break; } case 42: { _testEnvironment.TurnOFFM5M11(); break; } case 51: { _logInService.EnableAutoLogIn(); break; } case 52: { _logInService.DisableAutoLogIn(); break; } case 100: { _powershellService.ExecutePowerShellScript(Constants.checkIsHVCIrunning); break; } case 0: { break; } default: { break; } } } } }