cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Morghan
Helper IV
Helper IV

Testing function in PowerApps Studio

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

If this post helps you give a :thumbs_up: and if it solved your issue consider Accept it as the solution

View solution in original post

6 REPLIES 6
chsanche
Microsoft
Microsoft

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,

If this post helps you give a :thumbs_up: and if it solved your issue consider Accept it as the solution

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

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
Helper V
Helper V

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

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

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

If this post helps you give a :thumbs_up: and if it solved your issue consider Accept it as the solution

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (43,384)