Canvas Application - Name isn't value.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- csharp
- Domain
- testing-qa
Research direction
Start with the provided Power Fx YAML test case and reproduce the failure using a control named Title_1, then compare it with the passing Title1 case. Trace the test execution and name-resolution path for gallery controls; done means the underscore-named control is accepted and the test passes without the reported errors.
Written by the indexing model from the issue text.
Description
- 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:
- Create canvas application
- 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
-
Rename control from Title_1 and Title1 run test.
-
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
- Run test and result pass
- Dominant language
- C#
- Stars
- 150
- Forks
- 55
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/PowerApps-TestEngine
-
new
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
new
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
new
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
question
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in microsoft/PowerApps-TestEngine
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/vscode-azurefunctions#5197 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/microsoft-ui-reactor#1274 ·