2.1.2. Kịch bản viết bằng Gherkin

a. Kịch bản với Login

Feature : Login Action

In order to post and see photos of people

As an user

I want to login



    Background:

        Given:An User has an accounts with username and password

        And  database has username: nguyentienviet password: 123456 of this user



    Scenario: Successful Login with Valid Credentials

        Given User is on Login Page

        When User Navigate to Login Form

        And User enters Username ís nguyentienviet

        And Password is 123456

        And Click on "LOGIN" button

        Then message displayed login successfully



    Scenario: Fail to login

        Given User is on Login Page

        When User Navigate to Login Form

        And User enters Username is nguyentienviet

        And Password is isnotmatkhau

        And Click on "LOGIN" button

        Then message displayed login failed



    Scenario: Successful Logout

        Given user is at homepage

        When user want to logout

        And user click "logout" button

        Then message displayed logout successfully

b.Kịch bản post ảnh

Feature: Post Photos

As an user

I want to post my photos in order to save memories

So that i can chose photos and post them



    Scenario: Post

        Given the user is at the homepage

        When user choose to post photos

        And user choose from their folder

        And user submit

        Then their photos were posted

c. Kịch bản trang newfeed

Feature: see newfeed

As an user
I want to see photos of people who i followed
So i have to login

    Scenario: new newfeed
        Given: user is on Home Page
        And: stay at here
        Then: user see list of frames of image what user'followers post, order to times

d. Kịch bản search and explore

Feature: Searching and Explore

As an user

I want to looking for my friend and explore people

So I have to login



Scenario: Search people

    Given: When people at homepage 

    When: People click on "searching" symbol

    And: User enter name of another one on "search box"

    Then: Display list people have the same name



Scenario: Explore people

    Given: When people at homepage

    When: People click on "searching" symbol

    Then: People see list of users get the most likes on their picture
  1. Kịch bản xem profile của uers

Feature: Watch User'Profile

As an user

I want to watch photos, information of people

So i have to login



    Scenario: See photo's and infomation of user

Given: User is on Home Page

When: User click on "profile" symbol

And: do nothing

Then: User see list frames of their photos

results matching ""

    No results matching ""