我不能跑sahi

时间:2012-06-27 09:58:39

标签: symfony behat sahi mink

  

可能重复:
  sahi and symfony2

我想用symfony2测试behat,mink和sahi。

在我的文件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时,我得到了

@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

你有什么想法吗?

1 个答案:

答案 0 :(得分:0)

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