2012-02-29 4 views
0

내부 IT 응용 프로그램을 사용자의 관점에서 테스트하려면 쿠키 기반 Single Sign On 솔루션에 로그인하는 것을 포함하는 시나리오에 대한 Behat 배경을 설정해야합니다.HTTPS 기반 로그인 서비스에 대한 밍크 테스트를 실행할 때 왜 Behat가 실패합니까?

이것은 Givens에서 로깅을 설정하는 최소한의 테스트입니다. 이것이 성공하면 더 많은 "언제"와 "그 다음"이 될 것입니다. 나는이 시나리오를 실행하면

Feature: Bouncerize 
    In order to log in to internal applications 
    As an application user 
    I need to be able to use the SSO system 

    Scenario: Log in to Bouncer 
     Given I am on "https://private_url/login/" 
     And I fill in "pass_word" with "a hard to guess password" 
     And I fill in "id" with "username" 
     And I press "Sign In" 

, 주어진 첫 번째는 오류와 함께 실패 :

Scenario: Log in to Bouncer         # features/bouncer.feature:8 
    Given I am on "https://gh.bouncer.login.yahoo.com/login/" # FeatureContext::visit() 
     A cookie name is required to generate a field value for this cookie 

을 지금까지, 그것은 Behat\Mink\Behat\Context\MinkContext

답변