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.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.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, 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 *********************
Can someone help me solve this issue.
Thanks in Advance,
Surya Kiran