Edit

Share via


ALM in Power Platform with Test Engine (preview)

Note

Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.

Application Lifecycle Management (ALM) is a comprehensive approach to managing the lifecycle of applications from initial concept through development, testing, deployment, and ongoing maintenance. In the context of Power Platform, incorporating automated testing with Test Engine into your ALM process ensures that applications are thoroughly tested at each stage of development, resulting in higher quality releases.

Understanding test automation in ALM

Test automation plays a critical role in the ALM process by:

  • Ensuring quality - Verifying that applications function as expected before deployment
  • Reducing risk - Catching issues early before they reach production environments
  • Enabling continuous integration - Supporting automated build verification testing
  • Facilitating controlled deployments - Adding quality gates to release pipelines

With Power Apps Test Engine, you can integrate automated testing into your existing Power Platform ALM workflows, regardless of which CI/CD tooling you use.

Test automation lifecycle

The Test Engine supports a complete testing lifecycle that integrates with your ALM processes:

  1. Development - Create and run tests locally during app development
  2. Build validation - Execute tests as part of automated build verification
  3. Release gates - Use test results as quality gates for controlled deployments
  4. Production verification - Validate critical functionality in production environments

Getting started with test automation in ALM

To get started with incorporating Test Engine into your ALM processes:

  1. Create your test plan - Design YAML test plans for your Power Platform solutions
  2. Run tests locally - Verify tests work in your development environment
  3. Set up authentication - Configure appropriate authentication for your local execute and pipeline environments
  4. Integrate with your pipeline - Connect Test Engine to your existing ALM pipeline
  5. Implement quality gates - Use test results to control the promotion of solutions

Tip

Start with critical user journeys and gradually expand your automated test coverage as you become more familiar with Test Engine.

Source code version of Test Engine (optional)

If you're using the source code version of Test Engine, you'll also need:

Integration options

Test Engine integrates seamlessly with various ALM tools and processes

You can use a local editor like Visual Studio Code to edit the YAML files to author the Test Engine tests. To run the tests locally:

  1. Ensure you have Microsoft Power Platform CLI installed
  2. If you're using source control integration clone your project to your local machine
  3. Use the pac test run to execute your test
  4. Review the pass / fail results of the test

The Azure CLI is essential for obtaining access tokens to connect to Dataverse. Locally, you can use:

az login --allow-no-subscriptions

Learn about Test Engine YAML syntax
Set up authentication for your tests
Test canvas applications, model-driven applications, or Dataverse extensions
Understand Power Platform ALM