Loading...
xsara avatar xsara 24 Точки

TeamCity: unknown error: cannot find Chrome binary

Здравейте,

може ли някой да ми помогне да открия грешката си?

Не мога да достъпя хромдрайвъра, а той си го има в агента папката?

F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\packages\Selenium.WebDriver.ChromeDriver.2.29.0\driver\win32

При рънване на стъпката за NUnit tests имам следната грешка:

 

[Step 6/8] Blog.UI.Tests.dll (4s)

[10:18:51][Blog.UI.Tests.dll] Blog.UI.Tests.UITests.BlogLogoDisplayedRightMessage (3s)

[10:18:55][Blog.UI.Tests.UITests.BlogLogoDisplayedRightMessage] System.InvalidOperationException : unknown error: cannot find Chrome binary (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.14393 x86) TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

[10:18:55][Blog.UI.Tests.UITests.BlogLogoDisplayedRightMessage] 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(ChromeOptions options) at OpenQA.Selenium.Chrome.ChromeDriver..ctor() at Blog.UI.Tests.UITests.Init() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 23 --TearDown at Blog.UI.Tests.UITests.CleanUp() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 30

[10:18:56][Step 6/8] Failed tests detected

[10:18:55][Blog.UI.Tests.dll] Blog.UI.Tests.UITests.CheckSiteLoad (1s)

[10:18:56][Blog.UI.Tests.UITests.CheckSiteLoad] System.InvalidOperationException : unknown error: cannot find Chrome binary (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.14393 x86) TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

[10:18:56][Blog.UI.Tests.UITests.CheckSiteLoad] 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(ChromeOptions options) at OpenQA.Selenium.Chrome.ChromeDriver..ctor() at Blog.UI.Tests.UITests.Init() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 23 --TearDown at Blog.UI.Tests.UITests.CleanUp() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 30

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] Errors, Failures and Warnings

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] 1) Error : Blog.UI.Tests.UITests.BlogLogoDisplayedRightMessage

[10:18:56][Step 6/8] System.InvalidOperationException : unknown error: cannot find Chrome binary

[10:18:56][Step 6/8] (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.14393 x86)

[10:18:56][Step 6/8] TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)

[10:18:56][Step 6/8] at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options)

[10:18:56][Step 6/8] at OpenQA.Selenium.Chrome.ChromeDriver..ctor()

[10:18:56][Step 6/8] at Blog.UI.Tests.UITests.Init() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 23

[10:18:56][Step 6/8] --TearDown

[10:18:56][Step 6/8] at Blog.UI.Tests.UITests.CleanUp() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 30

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] 2) Error : Blog.UI.Tests.UITests.CheckSiteLoad

[10:18:56][Step 6/8] System.InvalidOperationException : unknown error: cannot find Chrome binary

[10:18:56][Step 6/8] (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.14393 x86)

[10:18:56][Step 6/8] TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)

[10:18:56][Step 6/8] at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)

[10:18:56][Step 6/8] at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options)

[10:18:56][Step 6/8] at OpenQA.Selenium.Chrome.ChromeDriver..ctor()

[10:18:56][Step 6/8] at Blog.UI.Tests.UITests.Init() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 23

[10:18:56][Step 6/8] --TearDown

[10:18:56][Step 6/8] at Blog.UI.Tests.UITests.CleanUp() in F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\UITests.cs:line 30

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] Run Settings

[10:18:56][Step 6/8] DisposeRunners: True

[10:18:56][Step 6/8] WorkDirectory: F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\bin\Debug

[10:18:56][Step 6/8] BasePath: F:\Petya\TeamCity_BuildAgents\BuildAgent\work\167fa28d277448ae\Blog-Skeleton\Blog.UI.Tests\bin\Debug

[10:18:56][Step 6/8] ImageRuntimeVersion: 4.0.30319

[10:18:56][Step 6/8] ImageTargetFrameworkName: .NETFramework,Version=v4.5

[10:18:56][Step 6/8] ImageRequiresX86: False

[10:18:56][Step 6/8] ImageRequiresDefaultAppDomainAssemblyResolver: False

[10:18:56][Step 6/8] NumberOfTestWorkers: 2

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] Test Run Summary

[10:18:56][Step 6/8] Overall result: Failed

[10:18:56][Step 6/8] Test Count: 2, Passed: 0, Failed: 2, Warnings: 0, Inconclusive: 0, Skipped: 0

[10:18:56][Step 6/8] Failed Tests - Failures: 0, Errors: 2, Invalid: 0

[10:18:56][Step 6/8] Start time: 2017-05-17 07:18:49Z

[10:18:56][Step 6/8] End time: 2017-05-17 07:18:56Z

[10:18:56][Step 6/8] Duration: 6.962 seconds

[10:18:56][Step 6/8]

[10:18:56][Step 6/8] Results (nunit3) saved as F:\Petya\TeamCity_BuildAgents\BuildAgent\temp\buildTmp\mMcjWHfV2tDaahmc79hqoLENA3rMpyRA.nunit.xml

[10:18:56][Step 6/8] Process exited with code 2

[10:18:56][Step 6/8] Publishing artifacts

1
QA Automation 17/05/2017 10:33:27
mailsteg avatar mailsteg 1 Точки

Ще предположа че си с AD и Win 10 

Аналогични на твоите грешки имаше при мен, причината поне в моя случаи бяха права. 

Пусни се с акаунт с всички права и би трябвало да е наред. 

Или в LocalGroupPolicyEditor\WindowSettings\Security Settings \LocalPolicies\Security Options \UAC - Run all administrators in admin approval mode.

си даи права. 

 

 

0
xsara avatar xsara 24 Точки

Да, с Windows 10 съм. :)

Логната съм с администратор на компютъра си.

Активирах настройките:

LocalSecurityPolicy/LocalPolicies/SecurityOptions/UserAccountControl: AdminApprovalMode for the Built-in Administrator Account

LocalSecurityPolicy/LocalPolicies/SecurityOptions/UserAccountControl: Run all administrators in Admin Approval Mode

Пуснах си теста и пак същата грешка получавам.

Може ли да ми кажеш да не би да бъркам някъде в настройките или някъде другъде?

0
21/05/2017 20:02:18
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.