Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Canvas Application - Name isn't value.

未关闭
#644 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
csharp
领域
testing-qa

调研方向

从提供的 Power Fx YAML 测试用例开始,使用名为 Title_1 的控件重现失败,然后将其与通过的 Title1 用例进行比较。跟踪 gallery 控件的测试执行和名称解析路径;当带下划线的控件名称被接受,且测试在没有报告的错误的情况下通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug new
  • Please attach the test suite YAML & .msapp which demonstrates the issue you are experiencing and any logs written to the specified outputDirectory. (Please do not attach any file which may contain sensitive personal or company data.)

Describe the bug

When control has _ in the name unable to create test.

Errors: Error 35-43: Name isn't valid. 'Title_1' isn't recognized.
Error 43-48: The '.' operator cannot be used on Error values.
Error 48-49: Incompatible types for comparison. These types can't be compared: Error, Text.
Result: Failed

To Reproduce

Steps to reproduce the behavior:

  1. Create canvas application

Image

  1. Sample test which fails
# yaml-embedded-languages: powerfx
testSuite:
  testSuiteName: Basic Gallery
  testSuiteDescription: Verifies that you can interact with controls within a basic gallery
  persona: User1
  appId: d9d23189-9bbb-4ba3-9ace-59019ae64455

  testCases:
    - testCaseName: Case1
      testSteps: |
        = Assert(Index(Gallery1.AllItems, 1).Title_1.Text="Test");

testSettings:
  locale: "en-US"
  recordVideo: true
  headless: false
  browserConfigurations:
    - browser: Chromium
      channel: msedge

environmentVariables:
  users:
    - personaName: User1
      emailKey: user1Email
      passwordKey: NotNeeded
  1. Rename control from Title_1 and Title1 run test.

  2. Publish new version

# yaml-embedded-languages: powerfx
testSuite:
  testSuiteName: Basic Gallery
  testSuiteDescription: Verifies that you can interact with controls within a basic gallery
  persona: User1
  appId: d9d23189-9bbb-4ba3-9ace-59019ae64455

  testCases:
    - testCaseName: Case1
      testSteps: |
        = Assert(Index(Gallery1.AllItems, 1).Title1.Text="Test");

testSettings:
  locale: "en-US"
  recordVideo: true
  headless: false
  browserConfigurations:
    - browser: Chromium
      channel: msedge

environmentVariables:
  users:
    - personaName: User1
      emailKey: user1Email
      passwordKey: NotNeeded
  1. Run test and result pass
主要语言
C#
星标
150
派生
55
平均合并
5 天 23 小时
30 天内合并 PR
4

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/PowerApps-TestEngine 的其他 Issue

查看 microsoft/PowerApps-TestEngine 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。