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

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To test IOS devices
09-16-2015, 02:49 AM (This post was last modified: 09-16-2015 02:57 AM by matthew.)
Post: #10
RE: To test IOS devices
(09-11-2015 12:13 AM)pmeenan Wrote:  If you want to test iOS you'll probably want to grab from trunk on github as I've been doing a lot of work on it over the last 2 weeks.

That said, that device ID doesn't look right - the device ID's are like 40-character strings. Once you grab from trunk you can see a list of the attached device ID's by running "lib/ios/video/xrecord -q -l"

Exactly, my DID is not correct. Thank you.

We find the code in wptdriver.bat are less developed than wptdriver.sh, and this is why my -ios argument saying invalide browser. I have made some changes to have the ios argument:
Code:
for %%I in (%AGENT%\lib\ios\openURL\openURL*.ipa) do set URL_APP=%%I
if defined URL_APP set "URL_APP_ARGS= --iosUrlOpenerApp  ^"%URL_APP%^""

if "%BROWSER%"=="ios" (
  set KNOWN_BROWSER=1
  set "BROWSER_ARGS= --browser browser_ios.BrowserIos --deviceSerial %DEVICE_SERIAL% --captureDir ^"%AGENT%\lib\capture^" --iosIDeviceDir ^"%AGENT%\lib\ios\idevice\Darwin x86_64^" --iosDevImageDir ^"%AGENT%\lib\ios\DeviceSupport"^ --iosSshProxyDir ^"%AGENT%\lib\ios\usbmux_python_client"^ --iosVideoDir ^"%AGENT%\lib\ios\video^" %URL_APP_ARGS%"
)

We run the wptdriver.bat command but get:
Code:
W Sep_15_11:38:03.375 C:\webpagetest\mobile\src\wpt_client.js:512 Client.<anonym
ous> : Agent is not ready: ssh -F /dev/null -i undefined/.ssh/id_dsa_ios -o 'Pro
xyCommand="^C:\webpagetest\mobile\\lib\ios\usbmux_python_client^/sshproxy.py" -u
%h' -o 'User=root' 395d0d4e30d832a2b94c0fb6fac9cd6999064698 'echo show State:/N
etwork/Interface/en0/IPv4|scutil' failed, code -4058

From the error message, I can see a ssh command. I just suspect if the ios devices tests are only supported on Linux OS at this moment? I have to set up a linux agent to test ios devices?

For the ssh keys, I generated and put the private key on my ipad ~/.ssh/id_dsa_ios, and put the public key on my windows c:/Users/webpagetest/.ssh/authorized_keys

Thanks,
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
To test IOS devices - matthew - 09-09-2015, 08:36 AM
RE: To test IOS devices - andydavies - 09-09-2015, 06:46 PM
RE: To test IOS devices - matthew - 09-09-2015, 11:46 PM
RE: To test IOS devices - pmeenan - 09-09-2015, 10:44 PM
RE: To test IOS devices - matthew - 09-09-2015, 11:40 PM
RE: To test IOS devices - pmeenan - 09-09-2015, 11:44 PM
RE: To test IOS devices - matthew - 09-09-2015, 11:59 PM
RE: To test IOS devices - pmeenan - 09-09-2015, 11:50 PM
RE: To test IOS devices - pmeenan - 09-11-2015, 12:13 AM
RE: To test IOS devices - matthew - 09-16-2015 02:49 AM
RE: To test IOS devices - pmeenan - 09-16-2015, 03:11 AM
RE: To test IOS devices - matthew - 09-17-2015, 05:38 AM
RE: To test IOS devices - pmeenan - 09-17-2015, 05:46 AM
RE: To test IOS devices - matthew - 09-17-2015, 06:12 AM
RE: To test IOS devices - pmeenan - 09-18-2015, 02:19 AM
RE: To test IOS devices - matthew - 09-18-2015, 02:34 AM
RE: To test IOS devices - matthew - 09-18-2015, 06:14 AM
RE: To test IOS devices - matthew - 09-24-2015, 04:58 AM

Forum Jump:


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