配置中使用:E /發射器 - 進程,錯誤代碼退出135
OS : Windows 7
Node : 6.11.3
Protractor : 5.1.2
NPM : 3.10.10
我無法運行,因爲下面的錯誤的量角器測試。
C:\Users\Admin>protractor conf.js [14:45:16] I/launcher - Running 1 instances of WebDriver [14:45:16] I/hosted - Using the selenium server at http://localhost:4444/wd/hub [14:45:18] E/launcher - Error code: 135 [14:45:18] E/launcher - Error message: ECONNREFUSED connect ECONNREFUSED 127.0.0 .1:4444 [14:45:18] E/launcher - Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444 at ClientRequest. (C:\Users\Admin\AppData\Roaming\npm\node_module s\protractor\node_modules\selenium-webdriver\http\index.js:238:15) at emitOne (events.js:96:13) at ClientRequest.emit (events.js:188:7) at Socket.socketErrorListener (_http_client.js:310:9) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at emitErrorNT (net.js:1277:8) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9) From: Task: WebDriver.createSession() at Function.createSession (C:\Users\Admin\AppData\Roaming\npm\node_modules\p rotractor\node_modules\selenium-webdriver\lib\webdriver.js:777:24) at Function.createSession (C:\Users\Admin\AppData\Roaming\npm\node_modules\p rotractor\node_modules\selenium-webdriver\chrome.js:709:29) at createDriver (C:\Users\Admin\AppData\Roaming\npm\node_modules\protractor\ node_modules\selenium-webdriver\index.js:167:33) at Builder.build (C:\Users\Admin\AppData\Roaming\npm\node_modules\protractor \node_modules\selenium-webdriver\index.js:623:16) at Hosted.getNewDriver (C:\Users\Admin\AppData\Roaming\npm\node_modules\prot ractor\lib\driverProviders\driverProvider.ts:60:29) at Runner.createBrowser (C:\Users\Admin\AppData\Roaming\npm\node_modules\pro tractor\lib\runner.ts:225:39) at q.then.then (C:\Users\Admin\AppData\Roaming\npm\node_modules\protractor\l ib\runner.ts:391:27) at _fulfilled (C:\Users\Admin\AppData\Roaming\npm\node_modules\protractor\no de_modules\q\q.js:834:54) at self.promiseDispatch.done (C:\Users\Admin\AppData\Roaming\npm\node_module s\protractor\node_modules\q\q.js:863:30) at Promise.promise.promiseDispatch (C:\Users\Admin\AppData\Roaming\npm\node_ modules\protractor\node_modules\q\q.js:796:13) [14:45:18] E/launcher - Process exited with error code 135
提及任何其他可能有用的細節。
我想從我的Windows機器上運行量角器測試。我得到上述錯誤,請幫助!
您是否運行過Selenium服務器?如果沒有,那麼你應該使用'webdriver-manager start'來運行它。如果未安裝,請使用'npm install -g webdriver-manager'。 –
非常感謝您給予答覆 - 是的,我嘗試過,然後我得到了錯誤先生。 – ThirupaTI
謝謝你回覆我的問題 - 是的,我試過了,但我得到了錯誤的先生。 C:\用戶\管理員> webdriver的經理開始 webdriver的經理:使用全球安裝的版本12.0.6 C:\用戶\管理\應用程序數據\漫遊\故宮\ node_mo dules \ webdriver的經理\硒\硒-server-standalone-3.5.3.jar -port 4444 [16:12:03] I/start - seleniumProcess.pid:undefined [16:12:03] W/start - Selenium Standalone服務器遇到錯誤:錯誤:水療中心 wn cmd ENOENT – ThirupaTI