Book Image

Automate Testing for Power Apps

By : César Calvo, Carlos de Huerta
Book Image

Automate Testing for Power Apps

By: César Calvo, Carlos de Huerta

Overview of this book

Low-code testing helps build better applications, freeing developers from frustrating problems faced while enhancing app features. Automate Testing for Power Apps will help you use automation testing to build better Canvas apps. You’ll start by understanding the fundamentals of automation testing, different approaches for low-code testing, and its application to Power Apps. Next, you’ll learn how to use Test Studio, Power Automate Desktop, and other tools to automate testing for your Canvas apps. You'll find out how to incorporate testing into your deployment processes for faster and more reliable releases. Additionally, this book covers advanced topics such as PCF components testing and model-driven apps. You’ll discover the new open-source project, Power Apps Test Engine, that’ll provide you with a single automated testing platform for all Power Apps. You'll learn how to test these more complex components to ensure the highest quality and business value for your Power Apps. By the end of this book, you'll have become a pro at using automation testing to build better Power Apps, reduce app release times, and increase the quality of your applications.
Table of Contents (18 chapters)
1
Part 1:Tools for Power Apps Automated Testing
6
Part 2:Tools for Power Apps Automated Testing
11
Part 3:Extending Power Apps Automated Testing

Testing PCF components with Test Engine

Similar to our approach in the Testing canvas components with Test Engine section, we will employ a YAML file capable of modifying the component’s properties. This strategy, when coupled with the ability to interact with other controls, allows us to conduct a comprehensive end-to-end test of the application we aim to evaluate.

Our initial step typically involves configuring the config.dev.json file. Here’s how:

  1. Configure the environment ID and tenant ID where the application is situated.
  2. Point to the path where our YAML file can be found. In this case, since we’re directly using the provided sample file, we must point to the samples folder and the accompanying YAML file.

    Finally, specify the output folder where we wish to store our results, including the .trx file, logs, videos, and screenshots.

    Figure 9.15 shows how the config.dev.json file should appear:

Figure 9.15 – The config.dev.json file for PCF testing

Figure 9.15 – The...