II.1.2 Các features, scenarios theo đúng gherkin

    As a user
        I want to login into website 
        In order to share my result test with social network

    Scenario: Login with true account
                Given I had account
                When I click on "Đăng nhập"
               Then I should see "Tên người dùng" and "Mật khẩu" blank text boxes  
                When I fill "Tên người dùng"
                And I fill "Mật khẩu"
                And I click on "Đăng nhập" button
                Then I should see notification "Đăng nhập thành công!"

        Scenario: Login with false password
                Given I had account
                When I click on "Đăng nhập"
                Then I should see "Tên người dùng" and "Mật khẩu" blank text boxes  
                When I fill "Tên người dùng"
                And I fill "Mật khẩu" 
                But password false 
                And I click on "Đăng nhập" button
                Then I should see notification "Sai mật khẩu! Vui lòng đăng nhập lại"
                And I have to re-login


        Scenario: Login with account that does not exist
                Given I haven't account 
                When I click on "Đăng nhập"
                Then I should see "Tên người dùng" and "Mật khẩu" blank text boxes  
                When I fill "Tên người dùng" 
                But it'n exist
                And I fill "Mật khẩu"
                But it'n exist
                And I click on "Đăng nhập" button
                Then I should see notification "Tài khoản không tồn tại! Đăng nhập lại hoặc Đăng ký"
                And I see "Đăng nhập" and "Đăng ký" buttons to choose
Feature:  Test IQ
  In order to test your IQ
  As a user
  I want to know my result test IQ and share result with social network

    Scenario: Choose test
       Given I am at the "Các bài kiểm tra"
       When I click on "Bài kiểm tra trắc nghiệm"
       Then I see a list of question test

    Scenario: Test IQ
       Given I am at the "Bài kiểm tra trắc nghiệm"
       And I see 30 questions
       Then I started with question 1
       When I click on answer "A"
       Then I see answer "A" is checked
       When I click on answer "B" on the same question
       Then I see the answer "A" is unchecked
       When I click on "Nop bai" button
       Then I see the result of the test
Feature:  Share result test
  In order to everyone know my result test IQ
  As a user
  I want to share result with social network
Scenario: Share result
       Given I had submit test
       And I see the result of the test
       When I click "Facebook" button
       Then I shared result test IQ with Facebook

results matching ""

    No results matching ""