2.1 Yêu cầu chức năng
Ứng dụng cung cấp các thông tin về các môn học, các bài học để người học dẽ dàng học tập và ghi nhớ. Cùng với các bài kiểm tra trắc nghiệm giúp người dùng ghi nhớ lâu hơn, giúp ích cho kì thi đại học, cao đẳng.
2.1.1 Sơ đồ ca sử dụng
Hình 2.1.1 Sơ đồ ca sử dụng
2.1.2 Các features, scenarios
Kịch bản login
Feature: Login
As a user
I want to visit the login page
So that I can access the application
Scenario: Fill in login form
Given I visit the login page
When fill in "username" with "Truong"
And fill in "password" with "myPassword"
And press "Login"
Then "username" should be "Truong"
And "password" should be "myPassword"
And I should be redirected to the home page
Kịch bản trang lý thuyết
Feature: Review theory
As a student
I want to review theory
In order to remember what i learned
Scenario: Select topic
Given There are some topic in this screen: Ankan, Xicloankan...
When I click in a topic "Ankan"
Then I should see "Ankan" page
Kịch bản trang kiểm tra
Feature: Do an exam
As a student
I want to try an exam
In order to get high score in the real exam
Scenario: Select the answer
Given Each question : "Câu 1: C4H8 có bao nhiêu đồng phân?" There are 4 answers "A.3 B.4 C.5 D.6"
When I click in "C.5"
Then I should see the color of this answer is changed
And I click "Tiếp theo"
Then I should see "Câu 2:..."
Scenario: Submit
Given I have done all questions
And I see "Nộp bài" bottom
When I click on "Nộp bài"
Then I should see the result of my exam: the number of correct answers/ total