Yêu cầu bài toán:
I. Yêu cầu chức năng:
a. Sơ đồ ca sử dụng:
b. Các file features, scenarios:
- File Homepage.feature:
Feature: Home_page
I am on the home_page
as a user
I can see home_page and do something
Scenario: View "thi" on home_page
Given I am on "http://thithulaixe.esy.es/"
Then I should see "thi"
Scenario: View home_page
Given I am on "http://thithulaixe.esy.es/"
Then I should see "Đề ngẫu nhiên"
And I should see "Thi theo bộ đề"
Scenario: Go to meo_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "meo"
Then I should be on "http://thithulaixe.esy.es/meo"
Scenario: Go to doExam_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "dengaunhien"
Then I should be on "http://thithulaixe.esy.es/doExam"
Scenario: Go to chooseexam_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "bode"
Then I should be on "http://thithulaixe.esy.es/chooseexam"
Scenario: Go to meo_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "cauhoi"
Then I should be on "http://thithulaixe.esy.es/cauhoi"
Scenario: Go to meo_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "bienbao"
Then I should be on "http://thithulaixe.esy.es/bienbao"
Scenario: Go to meo_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "dangthi"
Then I should be on "http://thithulaixe.esy.es/dangthi"
- File Thingaunhien.feature:
Feature: Thingaunhien_page
I am on home_page
as a user
I can begin a random test
Scenario: Go to doExam_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "dengaunhien"
Then I should be on "http://thithulaixe.esy.es/doExam"
And I should see "Bộ đề thi ngẫu nhiên"
Scenario: Finish test
Given I am on "http://thithulaixe.esy.es/doExam"
When I follow "Nộp bài"
Then I should be on "http://thithulaixe.esy.es/doExam"
And I should see "Kết quả bài thi"
- File Thitheobode.feature:
Feature: Thitheobode_page
I am on home_page
as a user
I can begin a form test
Scenario: Go to chooseexam_page
Given I am on "http://thithulaixe.esy.es/"
When I follow "bode"
Then the url should match "http://thithulaixe.esy.es/chooseexam"
Scenario: Go to doExam_page
Given I am on "http://thithulaixe.esy.es/chooseexam"
When I follow "1"
Then I should be on "http://thithulaixe.esy.es/doExam"
And I should see "Bộ đề thi số 1"
Scenario: Finish test
Given I am on "http://thithulaixe.esy.es/doExam"
When I follow "Nộp bài"
Then I should be on "http://thithulaixe.esy.es/doExam"
And I should see "Kết quả bài thi"
- File Cauhoi.feature:
Feature: Cauhoi_page
I am on the cauhoi_page
as a user
I can see cauhoi_page
Scenario: View
Given I am on "http://thithulaixe.esy.es/cauhoi"
Then I should see "Danh sách câu hỏi có trong đề thi"
- File Meo.feature:
Feature: Meo_page
I am on the meo_page
as a user
I can see meo_page and do something
Scenario: View
Given I am on "http://thithulaixe.esy.es/meo"
Then I should see "CÁC MẸO GHI NHỚ"
Scenario: Go to a paragraph in Page
Given I am on "http://thithulaixe.esy.es/meo"
When I follow "PHẦN KHÁI NIỆM"
Then I should be on "http://thithulaixe.esy.es/meo#khainiem"
- File Bienbao.feature:
Feature: Bienbao_page
I am on the bienbao_page
as a user
I can see bienbao_page and do something
Scenario: View bienbao_page
Given I am on "http://thithulaixe.esy.es/bienbao"
Then I should see "Các loại biển báo giao thông đường bộ"
Scenario: Go to a paragraph in Page
Given I am on "http://thithulaixe.esy.es/bienbao"
When I follow "Biển báo cấm"
Then I should be on "http://thithulaixe.esy.es/bienbao#Biencam"
- File Dangthi.feature:
Feature: Dangthi_page
I am on the dangthi_page
as a user
I can see dangthi_page and do something
Scenario: View
Given I am on "http://thithulaixe.esy.es/dangthi"
Then I should see "Các dạng thi lái xe"
Scenario: Go to a paragraph in Page
Given I am on "http://thithulaixe.esy.es/dangthi"
When I follow "Xe máy"
Then I should be on "http://thithulaixe.esy.es/dangthi#xemay"
- File Login.feature:
Feature: Login_page
I am on home_page
as a Admin
I can login
Scenario: View Login_page
Given I am on the homepage
When I follow "Đăng nhập"
Then the url should match "http://thithulaixe.esy.es/login"
And I should see "Login"
Scenario: login with super admin account
Given I am on "http://thithulaixe.esy.es/login"
When I fill in "email" with "[email protected]"
And I fill in "password" with "conghieu"
And I press "Đăng nhập"
Then I should be on "http://thithulaixe.esy.es/home"
And I should see "Thêm câu hỏi"
And I should see "Sửa admin"
Scenario: login with admin account
Given I am on "http://thithulaixe.esy.es/login"
When I fill in "email" with "[email protected]"
And I fill in "password" with "a01205743673"
And I press "Đăng nhập"
Then I should be on "http://thithulaixe.esy.es/home"
And I should see "Thêm câu hỏi"
And I should not see "Sửa admin"
II. Yêu cầu chất lượng:
Sản phẩm cần đáp ứng được các yêu cầu sau:
Tính khả dụng: Website đơn giản, thân thiện, giúp người dùng dễ sử dụng.
Tính tin cậy: Website hoạt động đúng với chức năng đã thiết kế, thông tin sát thực tiễn.
Tốc độ load web trung bình cao.
Dẫn chứng sử công cụ kiểm tra https://gtmetrix.com.
Load trang chủ lần đầu:
- Tốc độ load của các trang còn lại gần như tương đương nhau: