Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Automate Testing for Power Apps

You're reading from   Automate Testing for Power Apps A practical guide to applying low-code automation testing tools and techniques

Arrow left icon
Product type Paperback
Published in Oct 2023
Publisher Packt
ISBN-13 9781803236551
Length 352 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Carlos de Huerta Carlos de Huerta
Author Profile Icon Carlos de Huerta
Carlos de Huerta
César Calvo César Calvo
Author Profile Icon César Calvo
César Calvo
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1:Tools for Power Apps Automated Testing
2. Chapter 1: Software Quality and Types of Testing FREE CHAPTER 3. Chapter 2: Power Apps Studio Techniques and Automation Tools 4. Chapter 3: Power Fx Overview and Usage in Testing 5. Chapter 4: Planning Testing in a Power Apps Project 6. Part 2:Tools for Power Apps Automated Testing
7. Chapter 5: Introducing Test Studio – Canvas Apps Testing with a Sample Case Study 8. Chapter 6: Overview of Test Engine, Evolution, and Comparison 9. Chapter 7: Working with Test Engine 10. Chapter 8: Testing Power Apps with Power Automate Desktop 11. Part 3:Extending Power Apps Automated Testing
12. Chapter 9: PCF and Canvas Component Testing 13. Chapter 10: ALM with Test Studio and Test Engine 14. Chapter 11: Mocks with Test Engine 15. Chapter 12: Telemetry and Power Apps 16. Index 17. Other Books You May Enjoy

Getting to know mock testing in Test Engine

I will take a step back before diving into this topic to present the type of activities we can do in the preview version of Test Engine, available at the time of writing. Test Engine is based on Playwright (https://playwright.dev/), a library that provides cross-browser automation. It allows you to execute your tests, interact with elements, navigate to screens, or simulate API calls in your apps, as Power Apps runs on any browser as a web app. Test Engine uses Playwright to monitor and modify network traffic. Any request that Power Apps makes can be modified.

Let’s imagine your app called GPT from Azure OpenAI Service to generate a summary of a text. You don’t want to call the service every time in your tests, so in Test Engine, you will create a mock for the service. In Figure 11.9, you can follow what is going on under the hood:

Figure 11.9 – The Test Engine flow to intercept network calls

Figure 11.9 – The Test Engine flow to intercept network calls...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image