question

BandreddiSuryaKiran-5406 avatar image
0 Votes"
BandreddiSuryaKiran-5406 asked MayankBargali-MSFT edited

azure pipeline always fails at VS test assemblies step

Hi All,

I am trying to construct an Azure pipeline for running my PowerApps Test Studio Test Cases.

For this I followed the below article: [test-studio-classic-pipeline-editor][1]

Whenever I run the Agent Job, It fails in VS TestAssemblies.
Basically test case isn't fetched from TestUrl.json file and the whole VS test fails.

Error Message:
Test method Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation threw exception:
System.NotSupportedException: The given path's format is not supported.
Stack Trace:
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at Microsoft.PowerApps.TestAutomation.Api.TestAutomation.<>c_DisplayClass2_0.<GetTestURLs>b_0(IWebDriver driver) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Api\Pages\TestAutomation.cs:line 63
at Microsoft.PowerApps.TestAutomation.Browser.DelegateBrowserCommand`1.ExecuteCommand(IWebDriver driver, Object[] params) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Browser\DelegateBrowserCommand.cs:line 28
at Microsoft.PowerApps.TestAutomation.Browser.BrowserCommand`1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Browser\BrowserCommand.cs:line 136
at Microsoft.PowerApps.TestAutomation.Browser.BrowserCommand`1.Execute(IWebDriver driver) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Browser\BrowserCommand.cs:line 36
at Microsoft.PowerApps.TestAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Browser\BrowserPage.cs:line 182
at Microsoft.PowerApps.TestAutomation.Api.TestAutomation.GetTestURLs(String filePath) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Api\Pages\TestAutomation.cs:line 52
at Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation() in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Tests\TestAutomation\RunTestAutomation.cs:line 68
Results File: D:\a_temp..\TestResults\TestResults\VssAdministrator_fv-az182-651_2021-10-31_05_39_53.trx
Attachments:
D:\a\TestResults\TestResults\1617c1d7-0889-4ce8-ba63-54938e58ce49\VssAdministrator_fv-az182-651_2021-10-31.05_39_34.coverage
Total tests: 1
Failed: 1

[error]Test Run Failed.

Total time: 18.0236 Seconds
Vstest.console.exe exited with code 1.
Completed test execution *
[1]: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/test-studio-classic-pipeline-editor


Can someone help me solve this issue.

Thanks in Advance,
Surya Kiran

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @BandreddiSuryaKiran-5406

Welcome to Microsoft Q&A! Thanks for posting the question.
Power automate is not currently supported here on QnA. They're actively answering questions in dedicated forums here.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.