0

可能重复:
sahi 和 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

你有什么主意吗?

4

1 回答 1

0

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

于 2012-06-28T08:18:55.237 回答