2012-02-13 65 views
1

我已经按照您的测试应用程序示例从this video。我也使用下面的命令创建了端口8085的ACL。 (与mydomain和myusracc是我的工作域和用户帐户)Windows Phone测试框架 - NuGet - 测试新应用程序

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

当我运行在调试模式下的解决方案,我发现了以下错误:

There was no endpoint listening at http://localhost:8085/phoneAutomation/automate that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

我试图执行SpecFlow情景,我得到以下异常:

App not alive - ping failed 
    Expected: True 
    But was: False 

我跑的命令来查看哪些端口lisening,(netstat的-an |找到/我“听”),但没有找到8085

如果我再次运行netsh命令创建ACL,我得到一个消息说URL已经存在,并列示如下:

Reserved URL   : http://+:8085/ 
    User: <mydomain>\<myusername> 
     Listen: Yes 
     Delegate: No 
     SDDL: D:(A;;GX;;;S-1-5-21-xxxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxx) 

回答

3

我有同样的问题,我发现关于第二个问题:GitHub上的manual在示例部分中不正确,我使用源代码中的示例 - 它们工作正常。

试图改变自己的SpecFlow功能类似:

Feature: MainPage 
    In order to test my app 
    As a WP7 Developer 
    I want to see it start and take a picture of it 

Scenario: Main Page loads after a few seconds 
    Given my app is clean installed and running 
    Then take a picture 
相关问题