Edit

pac test

(Deprecated) Execution of automated tests for a Power App.

The Power Apps Test Engine was deprecated in favor of Power Platform Playwright samples. Learn more about this deprecation

Commands

Command Description
pac test run (Preview) Execute tests defined in a Test Plan file

pac test run

(Preview) Execute tests defined in a Test Plan file

Required Parameters for test run

--environment-id -env

Environment ID for the app to be tested.

--tenant -t

Tenant ID for the app being tested

--test-plan-file -test

Path to the Test Plan file

Optional Parameters for test run

--auth -a

The certificate provider for the user authentication for app being tested

Use one of these values:

  • None
  • Certenv
  • Certstore

--domain -d

The player domain for the app being tested for Canvas provider or endpoint for other provider types.

--log-level -l

Log detail level

Use one of these values:

  • Trace
  • Debug
  • Information
  • Warning
  • Error
  • Critical
  • None

--output-directory -o

Path to save test output and logs

--provider -p

The application type being tested

Use one of these values:

  • Canvas
  • Mda
  • Portal
  • Powerfx

--queryparams -q

Query parameters for the app being tested

--use-static-context -c

Enable use of static context for Playwright browser

This parameter requires no value. It's a switch.

--user-auth -u

The user authentication type for app being tested

Use one of these values:

  • Storagestate
  • Dataverse

See also

Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview