Exploring the top test functions in Power Fx
You can use any function available in Power Fx, but there are some top functions you will use in every test. We’ll dive into six important functions: Select
, SetProperty
, Wait
, Assert
, Screenshot
, and Trace
. By the end of this section, you’ll have a firm understanding of how these functions work and how to use them in your apps and code testing.
As we discussed in Chapter 1, a large portion of the testing in your low-code apps will be UI tests, where you reproduce the actions you expect your users will follow. To validate the expected experience and results of your users, you need to follow three steps:
- Execute the steps to get and set the data in your app that confirm a defined use case. For example, in a weather app, click on a text box, enter the city’s location, and click on the respective button to get the required weather details.
- Validate that data against the expected behavior. In the weather...