The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-15-2019, 05:41 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NodeJS Agent on OS X
04-30-2014, 03:06 AM
Post: #1
NodeJS Agent on OS X
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)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
NodeJS Agent on OS X - drwells - 04-30-2014 03:06 AM
RE: NodeJS Agent on OS X - andydavies - 08-09-2014, 03:03 PM
RE: NodeJS Agent on OS X - senteix2 - 09-13-2014, 01:07 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)