web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Testing function in Po...
Power Apps
Answered

Testing function in PowerApps Studio

(0) ShareShare
ReportReport
Posted on by 209

Hello,


I am experiencing what seems like a bug when trying the test functionality in the PowerApps studio. I have a toggle that, when toggled on, conditionally displays a second field in the custom form. This functionality works perfectly within the actual list in production, however, in the studio itself, I can't get the test functionality to work, whether using "alt+" clicking on the toggle, nor when hitting the play button. I only see the message "No item to display." Am I missing something, or is this a bug? First time I am experiencing this behavior. I also attempted to attach an .mp4 of this behavior.

 

2020-04-08_15-18-24.jpg

 

 

Thank you in advance,

Morghan

Categories:
I have the same question (0)
  • Christopher S Profile Picture
    Microsoft Employee on at

    Hi @Morghan 

     

    Are you creating a standalone application or is it a customized form for a SharePoint list?

    There are several features that are only available to be used when you are viewing the application from the SharePoint list. If this is a standalone application, can you please share with me the formula that you are using?

     

    Best Regards,

  • Morghan Profile Picture
    209 on at

    Hi @chsanche - I am using a customized form for a SharePoint list. In example 1 below, I see in the list itself it's working (when Display Direct Number = true, Direct Number field is visible), but when holding ALT in the studio to test, it doesn't work. Example 2 though, which is a different list but same exact concept, is working just fine when holding ALT and testing its functionality in the studio. 

     

    Non-working Example 1-

    (from list)

    2020-04-09_8-34-05.jpg

     

     

    (from Studio - not displaying Direct Number field when value of "Display Direct Number?" = true)

    2020-04-09_8-35-26.jpg

     

     

    Working Example 2-

    (from the list)

    working-2020-04-09_8-36-25.jpg

     

     

     

    (from Studio - holding ALT in the studio works correctly and displays "Name of VP" when value of "Over 500?" = true)working-2020-04-09_8-37-19.jpg

     

     

    The columns in both examples are Yes/No Columns but I used the Selected.Value condition for Example 1 for it to work, assuming because it's using "Edit Options" instead of "Edit Toggle"?? 

     

    (Example 1)

    ex-1.jpg

     

    Formulas of each (Example 1 on the left)-

    compare.jpg

     

    Thank you for your help,

    M

  • Morghan Profile Picture
    209 on at

    Hi @chsanche - Very strange... I just created an entirely new list, and started fresh with a new custom form and it's working perfectly when holding ALT and testing in the PowerApps studio... Maybe something just cached or broken in that specific "Example 1" list?? Very peculiar. 

     

    new-list.jpg

  • Max44 Profile Picture
    223 on at

    When testing canvas app using Test Studio, consider the following best practices to gain maximum benefits to improve your app quality:

    Determine which test cases should be automated.

    It’s difficult to automate all tests and we do not recommend that you completely rely on test automation. Manual testing should be performed in addition to test automation. Tests best suited to automation are:

    Repetitive tests.
    High business impact functionality tests.
    Features that are stable and not undergoing significant change.
    Features that require multiple data sets.
    Manual testing that takes significant time and effort.
    Keep test cases small.

    While a single test case can support testing all functionality in your app, we recommend that you avoid writing a monolithic test case and try to divide it into multiple test cases. Each test case could test a specific feature or functionality in your app. A failed assertion in a large test case may cause other functionality to remain untested. Using multiple test cases contained in test suite allows other functionality to get tested regardless if a previous test case failed. This strategy also makes it easier to isolate test failures.

    Keep expressions to a single test action.

    A test action can contain multiple expressions. Large multi-action test expressions for a single step may impact your ability to debug and isolate any test failures. Consider dividing a test step with multiple actions into more test steps of single actions to identify issues faster.

    Every test case should have an expected result.

    Each test case should have one or more expected results. Test assertions should be used to validate the expected outcome(s) of your test against the actual outcome(s). Multiple assertions can be written for a single test case.

    Use Test suites.

    For maintenance, group or categorize similar test cases together and provide descriptions to describe the purpose and expected results of your test.

    Admin

    apps4rent | o365cloudexperts

  • Morghan Profile Picture
    209 on at

    Thanks for all the info. However, I am still unsure why I am having issues in Example 1 when the (simple) testing situations are virtually identical between Example 1 and Example 2. Since it's fine now after creating an entirely new custom form, I will chalk it up to SP being odd I suppose. 

     

    Thank you,

    M

  • Verified answer
    Christopher S Profile Picture
    Microsoft Employee on at

    Hi @Morghan 

     

    Thanks for the very detailed information, I tried to reproduce the issue in my environment but my results are the same as you from the newly created list. If you happen to face this issue once again, I would recommend you to create a support case with the PowerApps team in order to be able to gather more information, logs so we can check further.

     

    Best Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard