cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PurpleDeveloper
Helper III
Helper III

Test case for Forms

Hi Team,

 

Does anyone came across weird thing with Form submission while building test cases.

 

The code written on Form - "OnSuccess", doesn't execute in test case.

6 REPLIES 6
eka24
Super User
Super User

Can you give the full scenario. Which code doesnt execute?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Consider Checking My Youtube Channel

PurpleDeveloper
Helper III
Helper III

Hi @eka24 , 

 

I have created a form and the code written on 'OnSuccess ' property of form is as below :

Navigate(Form, Transition,{FormValue : DataCardValue6.Text});

 

This code doesn't execute while I tested in Test case. It only goes till confirmation button but do not navigate to next screen.

zmorek
Super User
Super User

The OnSuccess property only triggers if the form is successful in what ever it's doing. Is the form successful in doing that? Have you checked for errors?

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-form-detail

 

 

Yes, it works well while testing on tablet. However, it's not working only while playing the recorded test case. That's so weird I know. 

Maybe it's a tablet app so some features do not work while testing on web browser if that make sense.

Can you explain what you are trying to achieve?

Navigate should go with a screen name not a Form.

Navigate (Screen1)

Give further information.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

PurpleDeveloper
Helper III
Helper III

Sorry my bad, I added Form in the code. It's Navigate(NextScreen)

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (856)