Yêu cầu chức năng

  1. Sơ đồ ca sử dụng

2. Các features, scenarios chính

read_book:

feature: Read book

In order to acquire information and knowledge from books

As a reader

I want to read a book

Scenario: Read the "Hạt giống tâm hồn"-book

Given I logged in website

And I am living in the "Hạt giống tâm hồn"-info page

When I click "Đọc"-button below this book

Then I can read this book

But I see the "Bạn phải đăng nhập để đọc được nội dung sách"-messenger else

Scenario: Next Chapter

Given i am at the chapter 1 in "Hạt giống tâm hồn"-book in Online library

And I see a button below the chapter of book named "Trước" or "Sau".

When I click button "Next"

Then I will see the chapter 2 

When I click button "Back"

Then I will see the chapter 1

Scenario: Move to chapter 5 of "Hạt giống tâm hồn"-book

Given I am reading this book

And I see a section named "Mục lục" frontward book's title

When I click "Mục lục"

Then I see list chapter of book

When I click on chapter 5

Then I see the chapter 5
search_book:

Feature: Search

In order to acquire knowledge from books

As an end user

I want to search a book

Scenario: Succeed search

Given I am at the Online library

Given the Online library has the books named "Dac nhan tam"

And I see a blank box to fill name of book      

When I fill the blank box with "Dac nhan tam"

And I click on "Tìm kiếm"

Then I see the books named "Dac nhan tam"

Scenario: Failed search

Given I am at the Online library

Given the Online library hasn't the books named "Dac nhan tam"

And I see a blank box to fill name of book      

When I fill the blank box with "Dac nhan tam"

And I click on "Tìm kiếm"

Then I see the "Không tìm thấy :Dac nhan tam"-messenger
read_later:

feature: Read later

In order to add a book to the bookcase and read it later

As a reader

I want to read this book when I have free time

Scenario: Tuan will read the "Hạt giống tâm hồn"-book later

Given I logged in as Tuan

And I see the "Hạt giống tâm hồn"-book 

When I click "Đọc sau"-button below this book

Then I see the "Đã thêm 'Hạt giống tâm hồn' vào tủ sách của bạn"-messenger

And I see "Đọc sau"-button below the "Hạt giống tâm hồn"-book is disabled

Scenario: Tuan will read the "Hạt giống tâm hồn"-book later but didn't log in

Given I didn't log in on site

When I click "Đọc sau"-button below this book

Then I see the "Bạn chưa đăng nhập"-messenger

results matching ""

    No results matching ""