2012-06-27 40 views
0

可能重复:
sahi and symfony2我不能运行SAHI

我想考贝哈特,貂皮和SAHI与Symfony2的。

在我的文件config_test.yml我有

mink: 
    base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php  
    default_session: symfony 
    sahi: ~ 
我test.feature

当我使用

Scenario: Open page with products list and check it 
Given I am on "/hello" 
Then the response should contain "hello" 

结果是好:

1 scenario (1 passed) 
2 steps (2 passed) 
0m5.112s 

但是当我添加我得到

@mink:sahi 
Scenario: Open page with products list and check it #    
src\Acme\DemoBundle\Features\test.feature:6 
Given I am on "/hello" # Acme\DemoBundle\Features\Context\FeatureContext::visit() 
Operation timed out after 5000 milliseconds with 0 bytes received 
Then the response should contain "hello" # 
Acme\DemoBundle\Features\Context\FeatureContext::assertResponseContains() 

1 scenario (1 failed) 
2 steps (1 skipped, 1 failed) 
0m5.112s 

你有什么想法吗?

回答

0

我已经解决了这个问题,其实我们必须在开始测试前运行驱动程序sahi,