Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot use variables in expressions

Open
#624 3 comments 0 reactions 0 assignees View on GitHub

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

new

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/PowerApps-TestEngine

All issues in microsoft/PowerApps-TestEngine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.