public static void AssemblyInitialize(TestContext context) { var screensshotPath = Path.Combine(Directory.GetCurrentDirectory(), "Screenshot"); if (Directory.Exists(screensshotPath)) { Directory.Delete(screensshotPath, true); } var runner = IISRunner.GetInstance(); runner.Path = Path.Combine(new SolutionFilePathGetter().GetPath(), "WebApplicationMVCSample"); runner.Port = "8888"; runner.Run(); }
/// <summary> /// テスト対象のページオブジェクトを取得します。 /// </summary> /// <param name="webDriver">ウェブドライバーです。</param> /// <returns><see cref="四則演算画面"/>です。</returns> private static 四則演算画面 GetTargetPage(IWebDriver webDriver) { webDriver.Url = $"http://localhost:{IISRunner.GetInstance().Port}"; return(new ホーム画面(webDriver).四則演算リンククリック()); }
public static void AssemblyCleanup() { IISRunner.GetInstance().Dispose(); }