WP8 WindowsPhoneTestFramework

时间:2013-06-10 08:03:42

标签: c# windows-phone-8

当我在wp7上运行测试时,这工作正常,但是当我将设置更改为WP8时,我从WCF服务获得Timeout,这可能导致这种情况。我知道wp8在网络中作为自己的设备运行,而不是像wp7那样使用hostmachine网络,这在新版本的框架中得到了解决。 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 

与设备和模拟器相同的问题。

虽然应用程序在设备和模拟器上启动,但随后超时。

1 个答案:

答案 0 :(得分:0)

也许防火墙阻止你的wcf服务连接wp8。 您可以使用管理员权限执行以下cmd。

netsh http add urlacl url=http://+:8085/ user=<domain>\<user>