I can not run sahi [duplicate]

巧了我就是萌 提交于 2019-12-13 03:36:53

问题


Possible Duplicate:
sahi and symfony2

I would like to test behat, mink and sahi with symfony2.

In my file config_test.yml I have

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

in my test.feature when I use

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

the result is well:

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

But when i add @mink:sahi I get

@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

Do you have any idea?


回答1:


i have solved the problem, in fact, we must run the driver sahi, before starting the test,



来源:https://stackoverflow.com/questions/11223637/i-can-not-run-sahi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!