Hi,
we use wireless adb to connect android phone to a virtual machine, so the device id is “IP:port”.
So we entered “wptdriver.bat -m debug --browser android:IP:port --serverUrl --location Mobile_1”, but got “& was unexpected at this time.”
If we modify “this.deviceSerial_ = args.flags.deviceSerial;” in browser_android_chrome.js at line 102, we get “Test Error: Object # has no method ‘getuid’”.
Maybe I did something wrong? Thank you for your help in advance!
The log is as follows:
D Nov_28_14:24:37.834 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
browser_base.js:97 BrowserAndroidChrome.BrowserBase.killChildProcessIfNeeded : B
rowser/driver process already unset, not killing
D Nov_28_14:24:37.971 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:252 unknown : Exec with timeout(60000): adb -s 10.59.144.173:55
55 shell ps
E Nov_28_14:24:42.248 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:332 ChildProcess.<anonymous> : adb -s 10.59.144.173:5555 shell
ps failed with exception: spawn OK
E Nov_28_14:25:37.988 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wd_server.js:1013 WebDriverServer.done_ : Run failed, stopping: Error: adb -s 10
.59.144.173:5555 shell ps timeout after 60 seconds, stdout[87] * daemon not runn
ing. starting it now on port 5037 *
* daemon started succes..., stderr[25] error: device not found
at newError (C:\Users\Administrator\Documents\webpagetest\agent\js\src\proce
ss_utils.js:268:17)
at null._onTimeout (C:\Users\Administrator\Documents\webpagetest\agent\js\sr
c\process_utils.js:295:11)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
==== async task ====
adb -s 10.59.144.173:5555 shell ps
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at Object.exports.scheduleExec (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\process_utils.js:251:14)
at Adb.command_ (C:\Users\Administrator\Documents\webpagetest\agent\js\src\a
db.js:72:24)
at Adb.adb (C:\Users\Administrator\Documents\webpagetest\agent\js\src\adb.js
:89:15)
at Adb.shell (C:\Users\Administrator\Documents\webpagetest\agent\js\src\adb.
js:106:15)
at Adb.getMatchingProcessNames (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\adb.js:324:15)
at Adb.scheduleForceStopMatchingPackages (C:\Users\Administrator\Documents\w
ebpagetest\agent\js\src\adb.js:348:8)
at BrowserAndroidChrome.kill (C:\Users\Administrator\Documents\webpagetest\a
gent\js\src\browser_android_chrome.js:509:13)
at BrowserAndroidChrome.startBrowser (C:\Users\Administrator\Documents\webpa
getest\agent\js\src\browser_android_chrome.js:209:8)
==== async task ====
Run the test
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at WebDriverServer.connect (C:\Users\Administrator\Documents\webpagetest\age
nt\js\src\wd_server.js:880:13)
at WebDriverServer.<anonymous> (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\wd_server.js:105:12)
at process.emit (events.js:98:17)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
D Nov_28_14:25:38.007 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:252 unknown : Exec with timeout(60000): adb -s 10.59.144.173:55
55 shell getprop ro.build.version.release
E Nov_28_14:25:38.041 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:332 ChildProcess.<anonymous> : adb -s 10.59.144.173:5555 shell
getprop ro.build.version.release failed with exception: spawn OK
E Nov_28_14:25:38.044 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wd_server.js:487 unknown : Screenshot failed: Error: adb -s 10.59.144.173:5555 s
hell getprop ro.build.version.release failed, code -1, stderr[25] error: device
not found
D Nov_28_14:25:38.055 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wd_server.js:1047 WebDriverServer.<anonymous> : sending IPC error
D Nov_28_14:25:38.060 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
agent_main.js:125 Agent.<anonymous> : got IPC: error
D Nov_28_14:25:38.069 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
browser_base.js:97 BrowserAndroidChrome.BrowserBase.killChildProcessIfNeeded : B
rowser/driver process already unset, not killing
D Nov_28_14:25:38.086 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:252 unknown : Exec with timeout(60000): adb -s 10.59.144.173:55
55 shell ps
E Nov_28_14:25:38.107 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
process_utils.js:332 ChildProcess.<anonymous> : adb -s 10.59.144.173:5555 shell
ps failed with exception: spawn OK
E Nov_28_14:25:38.188 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wd_server.js:857 WebDriverServer.<anonymous> : App uncaught exception event: [{"
stdout":"","stderr":"error: device not found\r\n","code":-1,"signal":null,"webdr
iver_promise_error_":true}]
C Nov_28_14:25:38.191 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wd_server.js:1097 WebDriverServer.onUncaughtException_ : Uncaught exception: Err
or: adb -s 10.59.144.173:5555 shell ps failed, code -1, stderr[25] error: device
not found
at newError (C:\Users\Administrator\Documents\webpagetest\agent\js\src\proce
ss_utils.js:268:17)
at ChildProcess.<anonymous> (C:\Users\Administrator\Documents\webpagetest\ag
ent\js\src\process_utils.js:314:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
==== async task ====
adb -s 10.59.144.173:5555 shell ps
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at Object.exports.scheduleExec (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\process_utils.js:251:14)
at Adb.command_ (C:\Users\Administrator\Documents\webpagetest\agent\js\src\a
db.js:72:24)
at Adb.adb (C:\Users\Administrator\Documents\webpagetest\agent\js\src\adb.js
:89:15)
at Adb.shell (C:\Users\Administrator\Documents\webpagetest\agent\js\src\adb.
js:106:15)
at Adb.getMatchingProcessNames (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\adb.js:324:15)
at Adb.scheduleForceStopMatchingPackages (C:\Users\Administrator\Documents\w
ebpagetest\agent\js\src\adb.js:348:8)
at BrowserAndroidChrome.kill (C:\Users\Administrator\Documents\webpagetest\a
gent\js\src\browser_android_chrome.js:509:13)
at WebDriverServer.<anonymous> (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\wd_server.js:1122:21)
==== async task ====
Kill server/browser
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at WebDriverServer.scheduleStop (C:\Users\Administrator\Documents\webpagetes
t\agent\js\src\wd_server.js:1120:13)
at WebDriverServer.done_ (C:\Users\Administrator\Documents\webpagetest\agent
\js\src\wd_server.js:1064:10)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\goog\base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (C:\Users\Administrator\Docu
ments\webpagetest\agent\js\node_modules\selenium-webdriver\lib\webdriver\promise
.js:1438:20)
at notify (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:328:12)
at notifyAll (C:\Users\Administrator\Documents\webpagetest\agent\js\node_mod
ules\selenium-webdriver\lib\webdriver\promise.js:297:7)
at reject (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:423:7)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\webdriver\promise.js:1314:10
C Nov_28_14:25:43.111 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:325 Client.onUncaughtException_ : Unhandled exception in the clien
t: TypeError: Object #<process> has no method 'getuid'
TypeError: Object #<process> has no method 'getuid'
at Object.exports.scheduleGetAll (C:\Users\Administrator\Documents\webpagete
st\agent\js\src\process_utils.js:117:53)
at Object.exports.scheduleGetTree (C:\Users\Administrator\Documents\webpaget
est\agent\js\src\process_utils.js:136:18)
at Object.exports.scheduleKillTree (C:\Users\Administrator\Documents\webpage
test\agent\js\src\process_utils.js:168:11)
at Agent.<anonymous> (C:\Users\Administrator\Documents\webpagetest\agent\js\
src\agent_main.js:463:21)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\goog\base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (C:\Users\Administrator\Docu
ments\webpagetest\agent\js\node_modules\selenium-webdriver\lib\webdriver\promise
.js:1438:20)
at notify (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:328:12)
at notifyAll (C:\Users\Administrator\Documents\webpagetest\agent\js\node_mod
ules\selenium-webdriver\lib\webdriver\promise.js:297:7)
at reject (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:423:7)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\webdriver\promise.js:1314:10
==== async task ====
Wait for wd_server exit
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at Object.exports.scheduleWait (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\process_utils.js:212:14)
at Agent.scheduleCleanup_ (C:\Users\Administrator\Documents\webpagetest\agen
t\js\src\agent_main.js:458:19)
at Agent.<anonymous> (C:\Users\Administrator\Documents\webpagetest\agent\js\
src\agent_main.js:136:14)
at ChildProcess.emit (events.js:98:17)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
D Nov_28_14:25:43.120 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:326 Client.onUncaughtException_ : TypeError: Object #<process> has
no method 'getuid'
at Object.exports.scheduleGetAll (C:\Users\Administrator\Documents\webpagete
st\agent\js\src\process_utils.js:117:53)
at Object.exports.scheduleGetTree (C:\Users\Administrator\Documents\webpaget
est\agent\js\src\process_utils.js:136:18)
at Object.exports.scheduleKillTree (C:\Users\Administrator\Documents\webpage
test\agent\js\src\process_utils.js:168:11)
at Agent.<anonymous> (C:\Users\Administrator\Documents\webpagetest\agent\js\
src\agent_main.js:463:21)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\goog\base.js:1178:15
at webdriver.promise.ControlFlow.runInNewFrame_ (C:\Users\Administrator\Docu
ments\webpagetest\agent\js\node_modules\selenium-webdriver\lib\webdriver\promise
.js:1438:20)
at notify (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:328:12)
at notifyAll (C:\Users\Administrator\Documents\webpagetest\agent\js\node_mod
ules\selenium-webdriver\lib\webdriver\promise.js:297:7)
at reject (C:\Users\Administrator\Documents\webpagetest\agent\js\node_module
s\selenium-webdriver\lib\webdriver\promise.js:423:7)
at C:\Users\Administrator\Documents\webpagetest\agent\js\node_modules\seleni
um-webdriver\lib\webdriver\promise.js:1314:10
==== async task ====
Wait for wd_server exit
at app.schedule (C:\Users\Administrator\Documents\webpagetest\agent\js\src\p
rocess_utils.js:399:26)
at Object.exports.scheduleWait (C:\Users\Administrator\Documents\webpagetest
\agent\js\src\process_utils.js:212:14)
at Agent.scheduleCleanup_ (C:\Users\Administrator\Documents\webpagetest\agen
t\js\src\agent_main.js:458:19)
at Agent.<anonymous> (C:\Users\Administrator\Documents\webpagetest\agent\js\
src\agent_main.js:136:14)
at ChildProcess.emit (events.js:98:17)
at handleMessage (child_process.js:322:10)
at Pipe.channel.onread (child_process.js:349:11)
C Nov_28_14:25:43.129 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:336 Client.onUncaughtException_ : Unhandled exception while proces
sing job 141128_H9_1
A Nov_28_14:25:43.130 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:493 Client.finishRun_ : Finished run 1/1 (isRunFinished=true) of j
ob 141128_H9_1
D Nov_28_14:25:43.132 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:678 Client.submitResult_ : submitResult_: job=141128_H9_1
D Nov_28_14:25:43.134 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:567 unknown : Adding 1_devtools.json (2 bytes) to results zip
D Nov_28_14:25:43.143 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=id body=1411
28_H9_1 headers=["Content-Type: text/plain"]
D Nov_28_14:25:43.144 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=location bod
y=Mobile_1 headers=undefined
D Nov_28_14:25:43.146 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=pc body=miao
headers=undefined
D Nov_28_14:25:43.147 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=error body=O
bject #<process> has no method 'getuid' headers=undefined
D Nov_28_14:25:43.149 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=_runNumber b
ody=1 headers=undefined
D Nov_28_14:25:43.151 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=_cacheWarmed
body=0 headers=undefined
D Nov_28_14:25:43.153 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:115 Multipart.exports.Multipart.addFilePart : addFilePart: name=fil
e filename=1_results.zip size=132
D Nov_28_14:25:43.154 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
wpt_client.js:629 Client.postResultFile_ : Writing a local copy of 1_results.zip
D Nov_28_14:25:43.224 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=id body=1411
28_H9_1 headers=["Content-Type: text/plain"]
D Nov_28_14:25:43.226 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=location bod
y=Mobile_1 headers=undefined
D Nov_28_14:25:43.227 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=pc body=miao
headers=undefined
D Nov_28_14:25:43.229 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=done body=1
headers=undefined
D Nov_28_14:25:43.230 C:\Users\Administrator\Documents\webpagetest\agent\js\src\
multipart.js:92 Multipart.exports.Multipart.addPart : addPart: name=testerror bo
dy=Object #<process> has no method 'getuid' headers=undefined