public string getInstallationExe() { var fiddler = new API_Fiddler(); var fiddlerInstaller = fiddler.installerFile(); Assert.That(fiddlerInstaller.fileExists(), "Could not find file: {0}".info(fiddlerInstaller)); return "ok - getInstallationExe"; }
public string test_UnInstallation_Process() { var fiddler = new API_Fiddler(); Assert.That(fiddler.isInstalled(), "Fiddler was NOT installed"); fiddler.unInstall(); Assert.That(fiddler.isInstalled().isFalse(), "After uninstall, Fiddler should not be there anymore"); return "ok - test_UnInstall"; }
public static API_Fiddler stop(this API_Fiddler fiddler) { "[API_Fiddler] Stopping Fiddler".info(); if (fiddler.Fiddler_Process.notNull()) { fiddler.Fiddler_Process.stop(); fiddler.waitForExit(); fiddler.Fiddler_Process = null; } return(fiddler); }
public string test_Installation_Process() { var fiddler = new API_Fiddler(); if (fiddler.isInstalled()) { "[UnitTest_API_Fiddler] Fiddler is already installed, so need to uninstalled first".info(); test_UnInstallation_Process(); } fiddler.install(); Assert.That(fiddler.isInstalled(), "After installation process, could not detect installation"); return "ok - test_Install"; }
public static bool started(this API_Fiddler fiddler) { return(fiddler.Fiddler_Process.notNull() && fiddler.Fiddler_Process.HasExited.isFalse() && fiddler.Fiddler_Process.MainWindowHandle != IntPtr.Zero); }
public static API_Fiddler waitForExit(this API_Fiddler fiddler) { fiddler.Fiddler_Process.WaitForExit(); return(fiddler); }
public static API_Fiddler restart(this API_Fiddler fiddler) { fiddler.stop(); return(fiddler.start()); }
public static API_Fiddler restartAndSync(this API_Fiddler fiddler, Control control) { fiddler.stop(); return(fiddler.startAndSync(control)); }
public static API_Fiddler startAndSync(this API_Fiddler fiddler, Control control) { fiddler.start(); fiddler.Fiddler_Window.syncWithControl(control); return(fiddler); }