Skip to content

Commit a2e84c6

Browse files
authored
setting provider to avoid confusion, warnings (#611)
1 parent 4e57aff commit a2e84c6

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

samples/copilotstudiokit/RunTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,11 @@ if ($runTests)
325325

326326
if ($record) {
327327
# Run the tests for each user in the configuration file.
328-
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" -p "mda" -a "none" -r "True" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
328+
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" --provider "mda" -a "none" -r "True" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
329329
} else {
330330
Write-Host "Skipped recording"
331331
# Run the tests for each user in the configuration file.
332-
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" -p "mda" -a "none" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
332+
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" --provider "mda" -a "none" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
333333
}
334334

335335
Update-TestData -folderPath $folderPath -timeThreshold $testStart -entityName $entityName -entityType "details"
@@ -390,11 +390,11 @@ if ($runTests)
390390
$mdaUrl = "$environmentUrl/main.aspx?appid=$appId&pagetype=custom&name=$customPage"
391391
if ($record) {
392392
# Run the tests for each user in the configuration file.
393-
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" -p "mda" -a "none" -r "True" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
393+
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" --provider "mda" -a "none" -r "True" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
394394
} else {
395395
Write-Host "Skipped recording"
396396
# Run the tests for each user in the configuration file.
397-
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" -p "mda" -a "none" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
397+
dotnet PowerAppsTestEngine.dll -c "$staticContext" -w "$debugTestValue" -u "$userAuth" -a "$authType" --provider "mda" -a "none" -i "$currentDirectory\$matchingScript" -t $tenantId -e $environmentId -d "$mdaUrl" -l "Debug"
398398
}
399399

400400
Update-TestData -folderPath $folderPath -timeThreshold $testStart -entityName $customPage -entityType "custom"

samples/dataverse/RunTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ Write-Host "------------------------------------------------------------" -Foreg
4444
Write-Host "Dateverse Tests (Account Entity)" -ForegroundColor Green
4545
Write-Host "------------------------------------------------------------" -ForegroundColor Green
4646

47-
dotnet PowerAppsTestEngine.dll -u "storagestate" -p "powerfx" -a "none" -i "$currentDirectory\testPlan.fx.yaml" -t $tenantId -e $environmentId -d $environmentUrl
47+
dotnet PowerAppsTestEngine.dll -u "storagestate" --provider "powerfx" -a "none" -i "$currentDirectory\testPlan.fx.yaml" -t $tenantId -e $environmentId -d $environmentUrl
4848

4949
Write-Host "------------------------------------------------------------" -ForegroundColor Green
5050
Write-Host "Dateverse AI Tests (AI Builder)" -ForegroundColor Green
5151
Write-Host "------------------------------------------------------------" -ForegroundColor Green
5252

53-
dotnet PowerAppsTestEngine.dll -u "storagestate" -p "powerfx" -a "none" -i "$currentDirectory\ai-prompt.fx.yaml" -t $tenantId -e $environmentId -d $environmentUrl
53+
dotnet PowerAppsTestEngine.dll -u "storagestate" --provider "powerfx" -a "none" -i "$currentDirectory\ai-prompt.fx.yaml" -t $tenantId -e $environmentId -d $environmentUrl
5454

5555
# Reset the location back to the original directory.
5656
Set-Location $currentDirectory
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ This Power Apps Test Engine sample demonstrates how to assert and interact with
3030

3131
```pwsh
3232
cd bin\Debug\PowerAppsEngine
33-
dotnet PowerAppsTestEngine.dll -i ..\..\..\samples\mdainputcontrols\MDA_InputControls_testPlan.fx.yaml -e 00000000-0000-0000-0000-11112223333 -t 11112222-3333-4444-5555-666677778888 -u storagestate -p mda -d "https://contoso.crm4.dynamics.com/main.aspx?appid=9e9c25f3-1851-ef11-bfe2-6045bd8f802c&pagetype=custom&name=cr7d6_displaycontrols_7009b"
33+
dotnet PowerAppsTestEngine.dll -i ..\..\..\samples\mdainputcontrols\MDA_InputControls_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=9e9c25f3-1851-ef11-bfe2-6045bd8f802c&pagetype=custom&name=cr7d6_displaycontrols_7009b"
3434
```

0 commit comments

Comments
 (0)