[Feature]: Visual Difference Assert
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
调研方向
首先查看 Power Fx 命名空间以及 issue 中描述的拟议 Preview.ImageCompare 入口点。明确应如何表示控件或定位器、参考图像、比较类型、筛选器和百分比容差。完成的标准是该功能支持所列出的比较模式,并为视觉多模型测试生成可靠的通过/失败结果。
由索引模型根据 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
- 派生
- 55
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 4
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/PowerApps-TestEngine 的其他 Issue
-
new
难度 1/5 1 小时以内 新手友好度 68/100
-
new
难度 3/5 1-2 天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
-
new
难度 4/5 3-5 天 新手友好度 48/100
-
question
难度 5/5 一周以上 新手友好度 20/100
查看 microsoft/PowerApps-TestEngine 的全部 Issue
相似的 Issue
-
area-ai untriaged
难度 2/5 1-3 小时 新手友好度 78/100
dotnet/extensions#7783 ·
-
untriaged
难度 1/5 1 小时以内 新手友好度 88/100
dotnet/dotnet-api-docs#13095 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
type/automation type/tech-debt
难度 2/5 1-3 小时 新手友好度 84/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
newrelic/newrelic-dotnet-agent#3850 · 1 条评论 ·