[Feature]: Visual Difference Assert
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp
調査の方向性
まず、Power Fx namespace と issue に記載された提案中の Preview.ImageCompare エントリポイントを確認します。コントロールまたは locator、参照画像、比較の種類、フィルター、パーセンテージ許容値をどのように表現するかを明確にします。列挙された比較モードを機能がサポートし、ビジュアルなマルチモデルテストに対して信頼できる pass/fail 結果を生成できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Currently, Test Engine lacks the capability to verify visual design elements of a solution comprehensively. While it is possible to test individual properties, there is a significant need for a more efficient method that allows for visual multi-model tests. This limitation hinders the ability to ensure that the visual aspects of the application meet the desired standards and expectations.
Describe the solution you'd like
Propose the introduction of a Visual Image Compare feature in the Power Apps Test Engine. This feature should include the following capabilities:
-
Control Name or Locator: The ability to use a control name or locator to find the specific element that needs to be tested. This will streamline the process of identifying and targeting the visual elements within the application.
-
Reference Image: The option to specify a reference image against which the visual elements can be compared. This will serve as a baseline for the visual comparison, ensuring consistency and accuracy in the visual design.
-
Comparison Types: The feature should support various comparison types, including Pixel, Edge Detection, Color, and Structure. This flexibility will allow for comprehensive visual testing, catering to different aspects of the visual design.
-
Tolerance for Difference: The ability to set a tolerance for differences as a percentage. This will provide a margin for acceptable variations, ensuring that minor discrepancies do not result in false negatives.
Example Usage
Here is an example of how the Visual Image Compare feature could be used within the Power Fx namespace:
Preview.ImageCompare(Tab1, "reference.png", [{Compare: "Edge"}, {Compare: "Color"}], 10);
In this example, the ImageCompare function is used to compare the visual elements of Tab1 against a reference image named "reference.png". The comparison types specified are Edge Detection and Color, with a tolerance of 10%.
Describe alternatives you've considered
No response
Additional context?
To provide a clearer understanding of the proposed feature, I have included a screenshot of the current visual design elements and a reference image for comparison. Additionally, I have attached a document outlining the detailed requirements and expected outcomes of the Visual Image Compare feature.
Related to [Feature]: Sample of Testing the Copilot Studio Kit
For example theming of chat control
Filters
To help deal with differences and false positives consider the following
Edge Detection with Polygon matching modes
Blur
Colormap
- 主要言語
- C#
- スター
- 150
- フォーク
- 56
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/PowerApps-TestEngine のほかの issue
-
SimulateDataverse tries to replace HTTPS/1.1 when it should be HTTP/1.1対応中かも @jensotto が 316 日前に担当しました。 オープンnew
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
new
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
new
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
question
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/PowerApps-TestEngine の issue をすべて見る
似ている issue
-
VideoViewer: rotated (portrait phone) videos shown sideways when system decimal separator is a commaオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Volodymyr-Petrunin/Bankomaten#45 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AvaloniaUI/Avalonia#22420 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
dotnet/SqlClient#4823 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信