azure pipeline always fails at VS test assemblies step

Bandreddi, Surya Kiran 21 Reputation points
2021-10-31T05:59:45.333+00:00

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

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.DelegateBrowserCommand1.ExecuteCommand(IWebDriver driver, Object[] params) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Browser\DelegateBrowserCommand.cs:line 28 at Microsoft.PowerApps.TestAutomation.Browser.BrowserCommand1.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.BrowserCommand1.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, Func2 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 *********************
Can someone help me solve this issue.

Thanks in Advance,
Surya Kiran

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,997 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,476 Reputation points
    2021-11-01T02:37:53.12+00:00

    Hi @Bandreddi, Surya Kiran

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful