我们正在调查在我们的 Azure DevOps 管道中执行 Power Platform 自动化测试。
当我们从 Power Platform 会话中运行测试时,测试运行并成功通过。
但是,当我们在管道中运行它们(意味着它们在我们创建的 Windows 构建代理上执行)时,我们会收到以下错误。
该框架使用 Selenium 作为测试执行堆栈的一部分。
有没有其他人经历过这个并解决了它?
Error Message:
Test method Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation threw exception:
System.InvalidOperationException: session not created
from disconnected: Unable to receive message from renderer
(Session info: chrome=99.0.4844.51) (SessionNotCreated)
Stack Trace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
at Microsoft.PowerApps.TestAutomation.Browser.BrowserDriverFactory.CreateWebDriver(BrowserOptions options) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\BrowserDriverFactory.cs:line 25
at Microsoft.PowerApps.TestAutomation.Browser.InteractiveBrowser.get_Driver() in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\InteractiveBrowser.cs:line 85
at Microsoft.PowerApps.TestAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Browser\BrowserPage.cs:line 182
at Microsoft.PowerApps.TestAutomation.Api.TestAutomation.GetTestURLs(String filePath) in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Api\Pages\TestAutomation.cs:line 52
at Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation() in C:\agent\_work\4\s\test\sdk\PowerAppsTestAutomation\Microsoft.PowerApps.TestAutomation.Tests\TestAutomation\RunTestAutomation.cs:line 68