Cannot use variables in expressions
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- testing-qa
Research direction
Start by reproducing the reported Assert(MyVariable="MyExpectedValue") failure in Test Engine and trace how expressions resolve names. Compare variable access with the existing control-value workaround; done means internal application variables can be referenced in assertions without the “Name isn't valid” error.
Written by the indexing model from the issue text.
Description
Test Engine does not appear to have access to variables. For example, I can't use the Assert function to check the internal state of the application.
e.g. If my test case uses something like Assert(MyVariable="MyExpectedValue"); then Test Engine will report:
Error 8-22: Name isn't valid. 'MyVariable' isn't recognized.
I understand that I could expose internal state using controls (e.g. use a TextInput control with a default value set to MyVariable and then use Assert(MyTextInput.Value="MyExpectedValue");) but this is not ideal and not consistent with Test Studio.
- Dominant language
- C#
- Stars
- 150
- Forks
- 55
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
spectreconsole/spectre.console#2221 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
unoplatform/uno#24925 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
PhilippC/keepass2android#3315 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DamianEdwards/ghcp-spend-tray#39 ·
Maintainers usually reply within 1 day