WebPagetest Forums

Full Version: NodeJS Agent on OS X
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone had success with this? I've been unable to run tests on it or even to get the browser to pop up on the device.

Code:
node src/agent_main --serverUrl http://webpagetest.eng.wsm.local --location android-001 --browser browser_local_chrome.BrowserLocalChrome --chromedriver /Users/work/webpagetest/agent/js/lib/webdriver/chromedriver/Darwin x86_64/chromedriver-2.4
I Apr_29_11:45:42.677 browser_local_chrome.js:53 new BrowserLocalChrome : BrowserLocalChrome(/Users/work/webpagetest/agent/js/lib/webdriver/chromedriver/Darwin x86_64/chromedriver-2.4, undefined)
I Apr_29_11:45:42.696 wpt_client.js:370 Client.<anonymous> : Get work: http://webpagetest.eng.wsm.local/work/getwork.php?location=android-001&f=json
.I Apr_29_11:45:53.710 wpt_client.js:431 Client.processJobResponse_ : Got job: {"client_":{"domain":null,"_events":{},"_maxListeners":10,"app_":"<REDACTED>","baseUrl_":{"protocol":"http:","slashes":true,"auth":null,"host":"webpagetest.eng.wsm.local","port":null,"hostname":"webpagetest.eng.wsm.local","hash":null,"search":null,"query":null,"pathname":"/","path":"/","href":"http://webpagetest.eng.wsm.local/"},"location_":"android-001","currentJob_":null,"jobTimeout":120000},"task":{"Test ID":"140429_9S_4P","url":"http://m.retailmenot.com/view/kohls.com","fvonly":1,"Capture Video":1,"runs":1,"browser":"Chrome","imageQuality":75,"orientation":"default"},"id":"140429_9S_4P","runs":1,"isFirstViewOnly":true,"isReplay":false,"runNumber":1,"isCacheWarm":false,"resultFiles":[],"zipResultFiles":{}}
I Apr_29_11:45:53.710 agent_main.js:230 Agent.startJobRun_ : Running job 140429_9S_4P run 1/1 cacheWarm=false
E Apr_29_11:45:53.808 process_utils.js:332 ChildProcess.<anonymous> : wpr status failed with exception: spawn ENOENT
W Apr_29_11:45:53.813 web_page_replay.js:125 WebPageReplay.<anonymous> : wpr status command failed: Error: wpr status failed, code -1, stderr[36] execvp(): No such file or directory
I Apr_29_11:45:53.901 browser_local_chrome.js:53 new BrowserLocalChrome : BrowserLocalChrome(/Users/work/webpagetest/agent/js/lib/webdriver/chromedriver/Darwin x86_64/chromedriver-2.4, undefined)
I Apr_29_11:45:53.964 process_utils.js:354 unknown : Spawning: chrome --disable-fre --enable-benchmarking --metrics-recording-only '-remote-debugging-port=1234'
E Apr_29_11:45:53.969 wd_server.js:868 WebDriverServer.<anonymous> : Top-level process uncaught exception: spawn ENOENT
W Apr_29_11:45:53.972 process_utils.js:360 Socket.<anonymous> : chrome STDERR: execvp(): No such file or directory
E Apr_29_11:45:53.976 wd_server.js:1011 WebDriverServer.done_ : Run failed, stopping: Error: spawn ENOENT

chrome --disable-fre --enable-benchmarking --metrics-recording-only '-remote-debugging-port=1234'
    at app.schedule (/Userswork/webpagetest/agent/js/src/process_utils.js:399:26)
    at Object.exports.scheduleSpawn (/Userswork/webpagetest/agent/js/src/process_utils.js:353:14)
    at BrowserLocalChrome.BrowserBase.startChildProcess (/Userswork/webpagetest/agent/js/src/browser_base.js:58:24)
    at BrowserLocalChrome.startBrowser (/Userswork/webpagetest/agent/js/src/browser_local_chrome.js:104:8)
    at WebDriverServer.startChrome_ (/Userswork/webpagetest/agent/js/src/wd_server.js:212:17)
    at WebDriverServer.runPageLoad_ (/Userswork/webpagetest/agent/js/src/wd_server.js:780:10)
    at WebDriverServer.runTest_ (/Userswork/webpagetest/agent/js/src/wd_server.js:566:10)
    at webdriver.promise.ControlFlow.runInNewFrame_ (/Userswork/webpagetest/agent/js/node_modules/selenium-webdriver/lib/webdriver/promise.js:1438:20)
    at webdriver.promise.ControlFlow.runEventLoop_ (/Userswork/webpagetest/agent/js/node_modules/selenium-webdriver/lib/webdriver/promise.js:1303:8)
Did you ever resolve this?

OK, I found it for me…

Path to adb was set relative to home using ~, switch to absolute path fixed it.
(08-09-2014 03:03 PM)andydavies Wrote: [ -> ]Did you ever resolve this?

OK, I found it for me…

Path to adb was set relative to home using ~, switch to absolute path fixed it.

in which js did you change that ?
Reference URL's