Current time: 10-15-2019, 04:59 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error test
05-27-2014, 06:10 PM
Post: #1
Error test
Finally i can start my agent but when i try to start test i have an error.

First i see in process_util.js this line
Code:
var cmd = system_commands.get('get all', [process.getuid()]).split(/\s+/)

getuid doesn't work on windows

so i try to replace by process.pid

and now i have new error

[Image: 1401178193-untitled.png]

Any idea ?

Thnanks
Find all posts by this user
Quote this message in a reply
05-28-2014, 12:39 AM
Post: #2
RE: Error test
What command-line are you using? It shouldn't be going down that code path for android testing (maybe it's going down the desktop agent code path).
Visit this user's website Find all posts by this user
Quote this message in a reply
05-28-2014, 12:59 AM
Post: #3
RE: Error test
Thanks patrick

i think i have a problem with my agent or device, maybe a permission problem ?

[Image: 1401202764-untitled.png]
Find all posts by this user
Quote this message in a reply
05-28-2014, 06:44 PM
Post: #4
RE: Error test
i specify that i've modify wptdriver.bat to pass my own parameters

like this :

Code:
set AGENT=%~dp0
set DP0=%~dp0
set WPT_SERVER=http://cd000186.cdbdx.biz
set LOCATION=Google_Nexus5
set BROWSER=android:070ab4d50073cd7d
set "WPT_MAX_LOGLEVEL=error"
set "WPT_VERBOSE=true"
set "OPT_ARGS="
set "BATCH_NAME=%0"
shift
Find all posts by this user
Quote this message in a reply
05-29-2014, 06:02 AM
Post: #5
RE: Error test
Why did you modify the batch file? That's only going to cause you grief down the road. All of the parameters of interest should be able to be passed as command-line options to the batch file.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-30-2014, 05:54 PM
Post: #6
RE: Error test
I modify to reset the catch file as the begining and i pass parameters now

but i'va the same error

D May_30_09:41:50.216 C:\wamp\www\webpagetest_2.14\mobile\src\process_utils.js:2
53 unknown : Exec with timeout(10000): wpr status
E May_30_09:41:50.218 C:\wamp\www\webpagetest_2.14\mobile\src\process_utils.js:3
33 ChildProcess.<anonymous> : wpr status failed with exception: spawn ENOENT
Find all posts by this user
Quote this message in a reply
05-30-2014, 07:37 PM
Post: #7
RE: Error test
I uninstall nodejs and install it again, and now i think it'sz better (i see on my android, chrome kill)
but i have a new error

The test failed to run.
Unexpected 'su' output: /system/bin/sh: su: not found

So i know, it's cause my device is not root.
But i have questions, what are features who need that's device is root ?
Can i have result test without root my android ?
Find all posts by this user
Quote this message in a reply
05-31-2014, 12:24 AM
Post: #8
RE: Error test
You need to root the device. Right now the agent is expecting it to be able to clear the profile/cache, enable remote debugging and possibly a few other things. It might be possible to get bits and pieces working without root but it's not something we have focused on.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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