This Power Apps Test Engine example shows how to validate and manipulate the values of Media controls such as Video, Audio, and Microphone within a model-driven application form.
-
Build the Test Engine Solution
Ensure the Power Apps Test Engine solution is built and ready to be executed. -
Get the URL of the Model-Driven Application Form
Acquire the URL of the specific Model-Driven Application form that you want to test. -
Modify the testPlan.fx.yaml
Update the YAML file to assert expected values of the Video, Audio, and Microphone controls.
[!NOTE] The controls are referenced using the logical name.
-
Update the Domain URL for Your Model-Driven Application
URL Part Description appid=a1234567-cccc-44444-9999-a123456789123The unique identifier of your model-driven application. etn=The name of the entity being validated. id=26bafa27-ca7d-ee11-8179-0022482a91f4The unique identifier of the record being edited. pagetype=customThe type of page to open. UserAuth=storagestateThe type of user authentication to use. UseStaticContext=TrueThe Flag to represent usage of Static context. -
Execute the Test for Custom Page
Change the example below to the URL of your organization:
cd bin\Debug\PowerAppsEngine
dotnet PowerAppsTestEngine.dll -i ..\..\..\samples\mda_imagecontrol\testPlan.fx.yaml -e 00000000-0000-0000-0000-11112223333 -t 11112222-3333-4444-5555-666677778888 -u storagestate -provider mda -d "https://contoso.crm4.dynamics.com/main.aspx?appid=d67b4662-12fb-ef11-bae2-00224823607e&pagetype=custom&name=cr693_mdamediacontrols_f20f0"