当我在 wp7 上运行测试时,这工作正常,但是当我将设置更改为 WP8 时,我从 WCF 服务获得超时,这可能是什么原因造成的。我知道 wp8 在网络中作为自己的设备运行,而不是像 wp7 那样使用主机网络,这在新版本的框架中得到了解决。WP8 已连接到自动化服务。
这是框架的链接 https://github.com/nokia-entertainment/WindowsPhoneTestFramework
并从错误中复制粘贴:
Given my app is clean installed and running
Trace:->creating datastore
Trace:->getting platform
Trace:->1 platform(s) found
Trace:->platform 'Windows Phone 8' found
Trace:->looking for device 'Device'
Trace:->5 devices found
Trace:->connecting to device...
Trace:->device Connected...
Trace:->building host...
Trace:->opening host...
Trace:->host open
Trace:->ensuring application is stopped...
Trace:->stopping application...
Trace:->application stopped
Trace:->Command timed out waiting for send
WCF command messages ->: Timeout
Trace:->ensuring application is stopped...
Trace:->stopping application...
Trace:->application stopped
Trace:->uninstalling xap from device...
Trace:->xap uninstalled from device
Trace:->installing xap to device...
Trace:->xap installed
Trace:->launching app...
Trace:->app launched
Trace:->Command timed out waiting for send
WCF command messages ->: Timeout
Trace:->Command timed out waiting for send
WCF command messages ->: Timeout
Trace:->Command timed out waiting for send
设备和模拟器同样的问题。
虽然应用程序在设备和模拟器上启动,但随后超时。