Giter VIP home page Giter VIP logo

boilerse2e's Introduction

boilersE2E

boilersE2E は Windows Desktop アプリ向けの E2E テストのためのユーティリティーライブラリです。

boilersE2E は以下のライブラリから構成されます。

  • boilersE2E.Core boilersE2E.Core ・・・boilersE2Eのコア機能を含むライブラリ。必須。
  • boilersE2E.xUnit boilersE2E.xUnit ・・・xUnit向けライブラリ。
  • boilersE2E.NUnit boilersE2E.NUnit ・・・NUnit向けライブラリ。
  • boilersE2E.MsTest boilersE2E.MsTest ・・・MsTest向けライブラリ。

あなたが使用しているテストフレームワークに合わせて、NuGetからインストールしてください。

以下では、NUnitの使用方法の例を記載しています。

その他のテストフレームワークでの使用方法が知りたい方は、以下を参照ください。

Requirements / 要件

  • Windows 10.0.22000.0 以降のWindows環境
  • .NET 6.0 or 7.0

How to use for NUnit / NUnitでの使用方法

  1. WinAppDriver をインストールします。

    https://github.com/microsoft/WinAppDriver/releases

  2. E2E テストプロジェクトを作成し、Nugetで boilersE2E.Core と boilersE2E.NUnit を追加します。

  3. boilersE2E.E2ETestFixture クラスを継承した任意のクラスを作成します。

  4. AppPath、WindowSize をオーバーライドして指定します。

    public override string AppPath => Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "WPFApp.exe");
    public override Size WindowSize => new Size(571, 517);

  5. スタティックコンストラクタで boilersE2ETestEnvironmentVariableName を指定します。

    static E2ETestForWPF()
    {
    boilersE2ETestEnvironmentVariableName = "BOILERS_E2ETEST_IS_VALID";
    }

  6. E2Eテストを実行するシステムで、boilersE2ETestEnvironmentVariableName に指定した名前の環境変数を作成し、値を true にします。 Azure DevOps pipeline でE2Eテストを実行する場合は、 Windows Application Driver タスクを実行するので false を指定してください。

  7. お好きなようにE2Eテストメソッドを実装します。

  8. E2Eテストを実行します。

LICENSE / ライセンス

MIT License

boilerse2e's People

Contributors

dhq-boiler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jianyuyanyu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.