To test IOS devices
|
09-16-2015, 03:11 AM
Post: #11
|
|||
|
|||
RE: To test IOS devices
Oh yeah, you're not going to have a good time if you try to use Windows. Not only the ssh but also the ios_webkit_debug_proxy doesn't work on Windows. Linux and Mac OSX are the only supported platforms and only Mac OSX can be used if you want video capture.
|
|||
09-17-2015, 05:38 AM
(This post was last modified: 09-17-2015 05:53 AM by matthew.)
Post: #12
|
|||
|
|||
RE: To test IOS devices
(09-16-2015 03:11 AM)pmeenan Wrote: Oh yeah, you're not going to have a good time if you try to use Windows. Not only the ssh but also the ios_webkit_debug_proxy doesn't work on Windows. Linux and Mac OSX are the only supported platforms and only Mac OSX can be used if you want video capture. Thanks for your advise. I set up a Mac host today following the documentation. It looks everything work fine, except a timeout debug information. My web server is able to list my iPad in the location dropdownlist, and saying my test is on the front of the queue, but can't proceed the test. I can't see the browser being opened on the iPad. Here is the output from my Terminal on Mac: Quote:node --max-old-space-size=4096 --expose-gc src/agent_main --serverUrl http://myurl.net --location Ipad --browser browser_ios.BrowserIos --deviceSerial 395d0d4e30d832a2b94c0fb6fac9cd6999064698 --captureDir /Users/c_liu/webpagetest/agent/js/lib/capture --iosIDeviceDir /Users/c_liu/webpagetest/agent/js/lib/ios/idevice/Darwin x86_64 --iosDevImageDir /Users/c_liu/webpagetest/agent/js/lib/ios/DeviceSupport --iosSshProxyDir /Users/c_liu/webpagetest/agent/js/lib/ios/usbmux_python_client --iosVideoDir /Users/c_liu/webpagetest/agent/js/lib/ios/video --iosUrlOpenerApp /Users/c_liu/webpagetest/agent/js/lib/ios/openURL/openURL*.ipa --processvideo yes Is this timeout the problem? Thanks, |
|||
09-17-2015, 05:46 AM
Post: #13
|
|||
|
|||
RE: To test IOS devices
Is your server actually at "myurl.net"?
http://myurl.net/work/getwork.php?locati...698&f=json If so, what does the locations.ini look like? Looks like the agent is working fine in talking to the device so now it's just making sure the config matches what is defined on the server. |
|||
09-17-2015, 06:12 AM
(This post was last modified: 09-17-2015 07:14 AM by matthew.)
Post: #14
|
|||
|
|||
RE: To test IOS devices
(09-17-2015 05:46 AM)pmeenan Wrote: Is your server actually at "myurl.net"? Nope, it's not my real url ![]() But we can see it's in the good format, and my other devices are working fine ![]() Here is the Ipad part of my locations.ini Quote:[locations] I just find my ipad safari browser can only stay open several seconds. It's able to be closed by the script running on the host. The bad part is the Ipad becomes to inactivated suddenly... Office : Office (Chrome, Firefox, Canary, IE 11, Nexus5 - Chrome, Galaxy S5 - Chrome, Ipad) Office_wpt : Office - 2 agents connected Mobile_Nexus5 : Nexus 5 - 1 agents connected Mobile_GalaxyS5 : Galaxy S5 - 1 agents connected Ipad : Ipad - 274 minutes since last agent connected |
|||
09-18-2015, 02:19 AM
Post: #15
|
|||
|
|||
RE: To test IOS devices
Do you see anything in the debug output on the terminal where the iOS agent is running to see why it may have gone offline? An unhandled exception, node crashing, etc? I run my agent in a while loop from bash to auto-restart it if it exited but there are also cases where sometimes it just gets wedged (been fixing those over the last week or two).
|
|||
09-18-2015, 02:34 AM
(This post was last modified: 09-18-2015 02:54 AM by matthew.)
Post: #16
|
|||
|
|||
RE: To test IOS devices
url: http://myrul.net/work/getwork.php?locati...698&f=json
I find the problem: I have key settings on my web server. When the server get the request, the key parameter from url is null, but the key in my settings.ini is a 40 characters string. So, my question will be how can I add key parameter into the url? I try to add --key, -key and --apiKey, but they won't work. ( apiKey works for my android devices) (09-18-2015 02:19 AM)pmeenan Wrote: Do you see anything in the debug output on the terminal where the iOS agent is running to see why it may have gone offline? An unhandled exception, node crashing, etc? I run my agent in a while loop from bash to auto-restart it if it exited but there are also cases where sometimes it just gets wedged (been fixing those over the last week or two). Nothing more than a timeout message: Quote:D Sep_16_15:10:02.900 process_utils.js:263 unknown : Exec with timeout(10000): ssh -F /dev/null -i /Users/c_liu/.ssh/id_dsa_ios -o 'ProxyCommand="/Users/c_liu/webpagetest/agent/js/lib/ios/usbmux_python_client/sshproxy.py" -u %h' -o 'User=root' 395d0d4e30d832a2b94c0fb6fac9cd6999064698 killall MobileSafariThanks for your advise. If something wrong happens, your loop is a good try. --apiKey does work for sending request! I guess I made a typo on last try Quote:Office : Office (Chrome, Firefox, Canary, IE 11, Nexus5 - Chrome, Galaxy S5 - Chrome, Ipad, iPhone) The test can proceed now, however, the result is always not successful... Quote:The test completed but there were no successful results.Let me try to find something from the output.... |
|||
09-18-2015, 06:14 AM
(This post was last modified: 09-18-2015 06:21 AM by matthew.)
Post: #17
|
|||
|
|||
RE: To test IOS devices
I believe it's not a good experience to read the whole output
![]() I just take some suspicious parts from it: Quote:... I have copied /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform to /DeviceSupport to webpagetest/agent/js/lib/ios/DeviceSupport and checked the subdirectories are like : Quote:4.2 5.1 7.0 8.1 Maybe I need to update my Xcode.app somewhere.... But we can see it's also complaining an ipfw problem... Could you help me on it? Thanks, |
|||
09-24-2015, 04:58 AM
Post: #18
|
|||
|
|||
RE: To test IOS devices
I'm so happy to anounce:
after updated Xcode.app, and copied all the DeviceSupport files. My iPad is able to work! Thanks Patrick |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)