1. Trang chủ
  2. » Luận Văn - Báo Cáo

Kiểm tra phần mềm (CO3015) bài tập lớn số 2 black box testing

49 3 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

ĐẠI HỌC QUỐC GIA THÀNH PHỐ HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA KHOA HỌC VÀ KỸ THUẬT MÁY TÍNH Kiểm tra phần mềm (CO3015) Bài tập lớn số 2: Black-box Testing GVHD: SV thực hiện: Bùi Hoài Thắng Nguyễn Danh Tiến Dũng Bùi Lương Vinh Hiển 1913380 Trần Quyết Thắng 1915251 Nguyễn Kim Phương Trang 1910620 Trịnh Nguyên Bảo Tuấn 1912371 Tp Hồ Chí Minh, Tháng 11/2022 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Mục lục Part A 1.1 Functional Requirement 1.1.1 Chức đăng ký - Sign Up 1.1.2 Chức đăng nhập - Log In 1.1.3 Chức thêm vào giỏ hàng - Add To Cart 1.1.4 Chức thay đổi giỏ hàng - Edit Cart 1.1.5 Chức đặt hàng - Order 1.2 Non-functional Requirement 1.2.1 Tổng quan 1.2.2 Giao diện 1.2.3 Bảo mật 1.2.4 Hiệu suất 4 10 14 16 16 18 19 19 viên Equivalent class partitioning Boundary value analysis Decision table Use-case testing Use-case testing Nonfunctional requirement viên Use-case testing 2.2.1.a Use-case xem chi tiết khóa học - Get course details 2.2.1.b Use-case xóa nộp - Remove Submission 2.2.2 Boundary value analysis 2.2.3 Equivalent class partitioning 2.2.4 Decision table 2.2.5 Nonfunctional requirement Thành viên 2.3.1 Functional Requirement 2.3.1.a Boundary value analysis 2.3.1.b Equivalent class partitioning 2.3.1.c Decision table 2.3.1.d Use-case testing Thành viên 2.4.1 Functional Requirement 2.4.1.a Boundary value analysis 2.4.1.b Equivalent class partitioning 2.4.1.c Decision table 2.4.1.d Use-case testing 2.4.2 Non-functional Requirement Thành viên 2.5.1 Functional Requirement 2.5.1.a Boundary value analysis 21 21 21 22 22 23 24 24 26 26 26 26 27 28 28 30 32 32 32 32 33 34 34 35 35 35 36 37 39 40 41 41 Part B 2.1 Thành 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2 Thành 2.2.1 2.3 2.4 2.5 Bài tập lớn số 2: Black-box Testing Trang 1/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính 2.5.2 2.5.1.b 2.5.1.c 2.5.1.d Non-functional Kết luận Bài tập lớn số 2: Black-box Testing Equivalent class Decision table Use-case testing Requirement partitioning 42 43 44 45 48 Trang 2/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Danh sách hình vẽ 10 11 12 13 14 15 16 17 18 19 20 21 22 Activity graph Add To Cart Edit Cart Activity Graph Activity graph tham gia khóa học Activity graph liên hệ business Màn hình Coursera máy tính/Laptop Màn hình Coursera Tablet Màn hình Coursera điện thoại Activity graph xem chi tiết khóa học Activity graph xóa nộp Màn hình BKEL máy tính/Laptop Màn hình BKEL Tablet Màn hình BKEL điện thoại Use-case tính Xuất lịch biểu View problem detail Activity Graph Create Mashup Contest Activity Graph Giao diện trang web Codeforces máy tính/laptop Giao diện trang web Codeforces tablet Giao diện trang web Codeforces điện thoại BKeL Send Message Activity Diagram Giao diện BKeL laptop Giao diện BKeL tablet Giao diện BKeL điện thoại Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing 11 23 24 25 25 25 26 26 30 31 31 34 38 39 40 40 40 45 46 46 47 Trang 3/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Part A 1.1 1.1.1 Functional Requirement Chức đăng ký - Sign Up Phương pháp kiểm thử: Equivalence Class Chức đăng ký biểu mẫu gồm trường điền người dùng Các trường yêu cầu sau: • Username: chuỗi ký tự có độ dài từ đến 11, ký tự ASCII, non-ASCII, khoảng trắng; phải có giá trị độc • Firstname: chuỗi ký tự có độ dài khơng giới hạn, ký tự ASCII, non-ASCII, khoảng trắng; trường bắt buộc • Lastname: chuỗi ký tự có độ dài khơng giới hạn, ký tự ASCII, non-ASCII, khoảng trắng; trường bắt buộc • Email: chuỗi địa email có độ dài tối thiểu 3, có biểu thức quy dạng: email_re = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/ Ví dụ !@1 email hợp lệ, a@a.! email khơng hợp lệ • Phone No.: thông tin số điện thoại, gồm chuỗi ký tự số có độ dài 10, có biểu thức quy dạng: phone_re = [0-9]{10} • Password: chuỗi ký tự biểu thị mật khẩu, có độ dài từ đến 21 • Re-Enter Password: có giá trị nhập trường Password Các output có input điền vào • A1: Nếu tất ràng buộc thỏa mãn, người dùng đăng ký thành công Success! You can now login Các trường hợp đăng ký thất bại cịn lại bao gồm: • A2: Độ dài Username hợp lệ không độc nhất, trường cịn lại thỏa mãn Warning! Username Already Exists • A3: Re-Enter Password không khớp với Password Warning! Passwords not match • A4: Các trường điền vào khơng định dạng trường, không đủ độ dài tối thiểu (Form chưa đạt yêu cầu để nhấn submit thành công): Please Fill out this field Please lengthen this text to 3(or 4) characters or more Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 4/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Chức đăng ký gồm có trường: username, firstname, lastname, email, phone, pwd, repwd Miền giá trị hợp lệ trường là: U1 = { username : ≤ len ( username ) ≤ 11; isUnique ( username ) } U1 = { username : ≤ len ( username ) ≤ 11; not isUnique ( username ) } F1 = { firstname : ≤ len ( firstname ) } L1 = { lastname : ≤ len ( lastname ) } E1 = { email : email ∈ email_re } P1 = { phone : phone ∈ phone_re } PD1 = { pwd : ≤ len ( pwd } RPD1 = { repwd : ≤ len ( repwd ) ; repwd = pwd } RPD1 = { repwd : ≤ len ( repwd ) ; repwd != pwd } Các miền giá trị không hợp lệ U2 = { username : len ( username ) < || 11 < len ( username ) } F2 = { firstname : len ( firstname ) = 0} L2 = { lastname : len ( lastname ) = 0} R2 = { email : email ∈ / email_re } P2 = { phone : phone ∈ / phone_re } PD2 = { pwd : len ( pwd ) < 4} RP2 = { repwd : len ( repwd ) < 4} Đánh giá sơ lược số lượng test case tối thiểu cho loại Equivalence Class: • Weak Normal: • Weak Robust: • Strong Normal: ∗ ∗ ∗ ∗ ∗ ∗ = • Strong Robust: ∗ ∗ ∗ ∗ ∗ ∗ = 288 Áp dụng hai cách Weak Robust Equivalence Class Testing Strong Normal Equivalence Class Testing: • Weak Robust Equivalence Class Testing Testcase username firstname lastname email phone pwd WR1 WR2 WR3 U1 U1.1 U2 F1 F2 F1 L1 L2 L1 E1 E2 E1 P1 P2 P1 PD1 PD2 PD1 repwd Expected Output RPD1 A1 RPD1.1 A4 RPD2 A4 • Strong Normal Equivalence Class Testing Testcase username firstname lastname email phone pwd SN1 SN2 SN3 SN4 U1 U1.1 U1.1 U1 F1 F1 F1 F1 L1 L1 L1 L1 E1 E1 E1 E1 P1 P1 P1 P1 PD1 PD1 PD1 PD1 Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing repwd Expected Output RPD1 A1 RPD1.1 A2 RPD1 A2 RPD1.1 A3 Trang 5/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Kết hợp hai phương pháp ta thu trường hợp testing: Testcase username firstname lastname email phone pwd WR1 WR2 WR3 SN2 SN3 SN4 U1 U1.1 U2 U1.1 U1.1 U1 F1 F2 F1 F1 F1 F1 L1 L2 L1 L1 L1 L1 E1 E2 E1 E1 E1 E1 P1 P2 P1 P1 P1 P1 PD1 PD2 PD1 PD1 PD1 PD1 repwd Expected Output RPD1 A1 RPD1.1 A4 RPD2 A4 RPD1.1 A2 RPD1 A2 RPD1.1 A3 Ở testcase ta yêu cầu precondition: • Username nkpt@ chưa có sở liệu username hệ thống • Username root tồn sở liệu username hệ thống WR1 : username : " nkpt@ " , firstname : " Trang " , lastname : " Nguyen " , email : " nkpt@gmail com " , phone : " 0123456789 " , pwd : " 1234 " , repwd : " 1234 " Expected Output : " Success ! You can now login " " Success " WR2 : username : " root " , firstname : " " , lastname : " " , email : " invalid_email " , phone : " " , pwd : " " , repwd : " 1234 " Expected Output : " Please Fill out this field " " Fail " WR3 : username : " " , firstname : " a " , lastname : " a " , email : " @1 " , phone : " 0123456789 " , pwd : " 1234 " , repwd : " " Expected Output : " Please lengthen this text to characters or more ( you are currently using character ) " " Fail " SN2 : username : " root " , firstname : " a " , lastname : " a " , email : " @1 " , phone : " 0123456789 " , pwd : " 1234 " , repwd : " 1111 " Expected Output : " Warning ! Username Already Exists " " Fail " SN3 : username : " root " , firstname : " a " , lastname : " a " , email : " @1 " , phone : " 0123456789 " , pwd : " 1234 " , repwd : " 1234 " Expected Output : " Warning ! Username Already Exists " " Fail " SN4 : username : " nkpt@ " , firstname : " Trang " , lastname : " Nguyen " , email : " nkpt@gmail com " , phone : " 0123456789 " , pwd : " 1234 " , repwd : " 1111 " Expected Output : " Warning ! Passwords not match " " Fail " 1.1.2 Chức đăng nhập - Log In Phương pháp kiểm thử: Decision Table • C1 Username: chuỗi ký tự có độ dài từ đến 11, ký tự ASCII, non-ASCII, khoảng trắng Phải trùng với username đăng ký trước • C2 Password: chuỗi ký tự biểu thị mật khẩu, có độ dài từ đến 21 Password nhập phải trùng với password username tương ứng • A1 Nếu tất điều kiện thỏa mãn, sau nhấn button submit lên thông báo "Success! You are logged in" Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 6/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính • A2 Nếu trường nhập sai, sau nhấn button submit lên thông báo "Warning! Invalid Credentials" • A3 Nếu trường để trống, hệ thống thông báo "Please fill out this field" Bảng định: C1 C2 A1 A2 A3 T T X T F T I X F T F F X X X F I I T I F I I X X X X Điều kiện C1 không ảnh hưởng tới rule 3,6,9, điều kiện C2 không ảnh hưởng tới rule 7,8,9 Nên ta kết hợp chúng lại: C1 C2 A1 A2 A3 T T X T F 3,6,9 F I T F F X X X X 7,8,9 I - X Tạo testcase: Testcase 1.1.3 Rule(s) 3,6,9 7,8,9 Username admin admin admin adtest asmin Password Expected Output admin Success! You are logged in 123456 Warning! Invalid Credentials Please fill out this field admin Warning! Invalid Credentials asmin Warning! Invalid Credentials asmin Please fill out this field Chức thêm vào giỏ hàng - Add To Cart Phương pháp kiểm thử: Use-case Testing: Sử dụng giải thuật McCabe Basic Path để tạo test case Số đường cần test: V (G) = e − n + p = 18 − 12 + = Các đường cần test: • Path 1: − − − − − − − • Path 2: − − 10 − − − − − Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 7/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hình 1: Activity graph Add To Cart • Path 3: − − − 11 − 12 − − − − − − − • Path 4: − − − 16 − − • Path 5: − − − 17 • Path 6: − − − − − 13 − 14 − − − − − • Path 7: − − − − − 15 − 12 − − − 17 • Path 8: − − − − − 18 Đối với Use-case Add To Cart, bước lựa chọn người dùng bao gồm button nên ứng với Path cần test case Ở test case ta yêu cầu preconditon: • Người dùng đăng nhập • Data có chứa category "Foody Mart" • Category "Foody Mart" chứa "Extra Cheese" • Đối với test case từ Path đến Path Path 6: Cart khơng chứa sản phẩm • Đối với test case Path 5, Path Path 8: Cart chứa "Extra Cheese" Path 1: Step Description Truy cập hệ thống Chọn "View All" "Foody Mart" Chọn "Quick Cheese" Chọn "Add to cart" View" "Extra Expected Output Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" Hệ thống hiển thị thông tin "Extra Cheese" Cart thêm sản phẩm Nút "Add to cart" chuyển thành "Go to cart" Path 2: Step Description Expected Output Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 8/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Truy cập hệ thống Chọn "Foody Mart" "Top Category" navigation Chọn "Quick View" "Extra Cheese" Chọn "Add to cart" Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" Hệ thống hiển thị thông tin "Extra Cheese" Cart thêm sản phẩm Nút "Add to cart" chuyển thành "Go to cart" Path Step Description Truy cập hệ thống Chọn "View All" "Foody Mart" Chọn "All Category" góc bên trái Chọn "View All" "Foody Mart" Chọn "Quick Cheese" Chọn "Add to cart" View" "Extra Expected Output Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" Hệ thống hiển thị thông tin "Extra Cheese" Cart thêm sản phẩm Nút "Add to cart" chuyển thành "Go to cart" Path Step Description Truy cập hệ thống Chọn "View All" "Foody Mart" Chọn "Add to cart" "Extra Cheese" Expected Output Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" Cart thêm sản phẩm Nút "Add to cart" "Extra Cheese" chuyển thành "Go to cart" Path Step Description Truy cập hệ thống Chọn "View All" "Foody Mart" Expected Output Hệ thống hiển thị danh sách category Hệ thống thị thuộc category "Foody Mart" "Extra Cheese" có button "go to cart" Path Step Description Truy cập hệ thống Expected Output Hệ thống hiển thị danh sách category Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 9/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Bảng định: C1a C2a C3a X C1 C2 C3 A 2.3.1.d C1a C2a C3b X C1a C2b C3a X C1a C2b C3b X C1b C2a C3a X C1b C2a C3b X C1b C2b C3a X C1b C2b C3b X C1c C2a C3a X 10 C1c C2a C3b X 11 C1c C2b C3a X 12 C1c C2b C3b X Use-case testing Chức 1: Xuất lịch biểu Mô tả: Images/Thang/uc1.png Hình 13: Use-case tính Xuất lịch biểu Sử dụng giải thuật McCabe Basic Path để tạo testcase Số đường cần test: V (G) = e − n + = 11 − 10 + = Các đường cần test: (a) − − − − − 10 − 11 (b) − − − − − − − − 10 − 11 (c) − − − − − − − − 10 − 11 2.4 Thành viên Name: Nguyễn Kim Phương Trang Mssv: 1910620 Hệ thống kiểm thử: Codeforces Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 34/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính 2.4.1 2.4.1.a Functional Requirement Boundary value analysis Chức năng: Create Mashup Contest Mô tả: Mashup loại thi luyện thi đặc biệt, bao gồm tốn cơng khai từ vịng Codeforces có Một biểu mẫu tạo Mashup Contest bao gồm trường: Name (tên contest), Duration (độ dài thi, đơn vị phút), Clone contest (chọn clone từ contest cụ thể), Clone from (tên contest chọn clone) Nội dung kiểm thử: Trường Duration Trường Duration yêu cầu số nguyên có giá trị đoạn [10, 527040]: 10 ≤ d ≤ 527040 Ta có giá trị biên là: • d(min) = 10 • d(max) = 52740 Xây dựng testcase cho Robust Boundary Value Testing: d(min-) = d(min) = 10 d(min+) = 11 d(nominal) = 120 d(max-) = 527039 d(max) = 527040 d(max+) = 527041 2.4.1.b Equivalent class partitioning Chức năng: Create Mashup Contest Nội dung kiểm thử: Form submit tạo Mashup Contest gồm trường: Name (tên contest), Duration (độ dài thi, đơn vị phút), Clone contest? (1 checkbox cho phép chọn clone từ contest cụ thể, tùy chỉnh chọn toán riêng lẻ từ contest khác nhau), Clone from (tên contest chọn clone) Miền giá trị hợp lệ trường: • Name: Chuỗi khác rỗng (N1) • Duration: Số nguyên hợp lệ có giá trị từ 10 đến 527040 (D1) • Clone contest?: Checkbox (C1), Khơng checkbox (C1.1) Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 35/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính • Clone from: Tên contest nhận dạng not found(CF1), Rỗng (CF1.1) Miền giá trị khơng hợp lệ trường: • Name: Chuỗi rỗng (N2) • Duration: Số nguyên bé 10 (D2), số nguyên lớn 527040 (D3) • Clone contest?: Khơng có • Clone from: Tên contest khơng nhận dạng (CF2) Output có input điền vào là: • A1: Tạo Mashup Contest thành cơng từ contest cụ thể (chọn trường Clone from checkbox Clone contest?) • A2: Tạo Mashup Contest thành cơng từ tốn riêng lẻ contest khác (nếu khơng checkbox Clone contest?) • A3: Form submit khơng thành cơng input điền vào chưa hợp lệ Xây dựng testcase cho Weak Robust Equivalence Class: Testcase WR1 WR2 WR3 WR4 WR5 2.4.1.c Input Doman Equiv Class N1, D1, C1, CF1 N1, D3, C1, CF2 N2, D2, C1.1, CF1 N1, D1, C1.1, CF1.1 N2, D1, C1, CF1 Expected Output A1 A3 Impossible A2 A3 Decision table Chức năng: Create Mashup Contest Nội dung kiểm thử: Form submit tạo Mashup Contest gồm trường: Name (tên contest), Duration (độ dài thi, đơn vị phút), Clone contest? (1 checkbox cho phép chọn clone từ contest cụ thể, tùy chỉnh chọn toán riêng lẻ từ contest khác nhau), Clone from (tên contest chọn clone) Các điều kiện cho Decision Table (cho trước Name input hợp lệ): • D1: Duration số nguyên hợp lệ có giá trị từ 10 đến 527040 (D1) • D2: Duration số ngun có giá trị ngồi khoảng hợp lệ • C1: Checkbox Clone contest? • C1.1: Khơng checkbox Clone contest? • CF1: Tên contest Clone from nhận dạng (found) • CF1.1: Ơ Clone from rỗng Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 36/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính • CF2: Tên contest Clone from khơng nhận dạng (not found) Các hành động xảy ra: • A1: Tạo Mashup Contest thành cơng từ contest cụ thể (chọn trường Clone from checkbox Clone contest?) • A2: Tạo Mashup Contest thành cơng từ toán riêng lẻ contest khác (nếu khơng checkbox Clone contest?) • A3: Form submit khơng thành cơng input điền vào chưa hợp lệ Bảng định: C1: Duration C2: Clone contest? C3: Clone from a1: A1 a2: A2 a3: A3 Impossible 10 11 12 D1 D1 D1 D1 D1 D1 D2 D2 D2 D2 D2 D2 C1 C1 C1 C1.1 C1.1 C1.1 C1 C1 C1 C1.1 C1.1 C1.1 CF1 CF1.1 CF2 CF1 CF1.1 CF2 CF1 CF1.1 CF2 CF1 CF1.1 CF2 X X X X X X X X X X X X Loại trừ trường hợp Impossible ta thu trường hợp kiểm thử tương ứng với testcase 2.4.1.d Use-case testing Chức 1: Xem chi tiết toán - View problem detail Mô tả: Trang web tổ chức contest, contest chứa số problem Trang Contest cho phép người dùng xem contest đã, đang, diễn Trang Problem kho tổng hợp tất problem từ tất contest Để xem chi tiết đề problem, người dùng vào trang Problem để tìm xem trực tiếp đề bài, người dùng truy từ Contest để xem problem contest tương ứng Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 37/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hình 14: View problem detail Activity Graph Sử dụng giải thuật McCabe Basic Path để tạo testcase Số đường cần test: V (G) = e − n + = 12 − 11 + = Các đường cần test: (a) − − − − − (b) − − − − − − − (c) − − 10 − 11 − 12 − − Chức 2: Tạo Mashup Contest - Create Mashup Contest Mô tả: Mashup loại thi luyện thi đặc biệt, bao gồm tốn cơng khai từ contest có Người dùng tạo Mashup Contest theo hai cách chính: Vào contest cụ thể chọn clone từ contest này; tạo Mashup Contest từ trang Gym Một biểu mẫu tạo Mashup Contest bao gồm trường: Name (tên contest), Duration (độ dài thi, đơn vị phút), Clone contest? (1 checkbox cho phép chọn clone từ contest cụ thể, tùy chỉnh chọn toán riêng lẻ từ contest khác nhau), Clone from (tên contest chọn clone) Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 38/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hình 15: Create Mashup Contest Activity Graph Sử dụng giải thuật McCabe Basic Path để tạo testcase Số đường cần test: V (G) = e − n + = 17 − 16 + = Các đường cần test: (a) − − − − − − − − (b) − − − − − − 10 − 11 − 12 − (c) − − 13 − 14 − 15 − 16 − 17 − − − − − 2.4.2 Non-functional Requirement Yêu cầu phi chức năng: Giao diện phù hợp với nhiều kích thước hình: Máy tính/Laptop (≥ 768px, tablet (≥ 576px) điện thoại (< 576px) Trình tự thực để kiểm thử chức năng: Truy cập trang web Trên hệ điều hành Linux, nhấn F12/(Fn+F12) để mở DevTools Chọn "Open DevTools Trên công cụ vừa hiện, lựa chọn kích thước thiết bị khác mục "Dimensions: Responsive" để kiểm tra giao diện tablet, điện thoại Kết kiểm tra: Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 39/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính • Máy tính/Laptop: Passed Hình 16: Giao diện trang web Codeforces máy tính/laptop • Tablet: Passed Hình 17: Giao diện trang web Codeforces tablet • Điện thoại: Passed Hình 18: Giao diện trang web Codeforces điện thoại 2.5 Thành viên Name: Trịnh Nguyên Bảo Tuấn Mssv: 1912371 Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 40/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hệ thống kiểm thử: BK E-learning 2.5.1 Functional Requirement 2.5.1.a Boundary value analysis Chức năng: Tạo kiện (Create event) Mô tả: Tạo kiện chức để tạo kiện cá nhân lịch hệ thống BK E-learning Để tạo kiện cần thông tin Tên kiện (Name), Ngày diễn kiện (Date), Mô tả (Description), Địa (Address), Thời lượng (Duration), Số lần lặp lại (Repeat) Nội dung kiểm thử: Trường Date Trường ngày bao gồm trường ngày tháng (Day), tháng (Month), năm (Year), (Hour), phút (Minute) có miền giá trị   D = {1 ≤ Day ≤ 31}      M o = {1 ≤ M onth ≤ 12} Y = {1900 ≤ Y ear ≤ 2050}    H = {0 ≤ Y ear ≤ 23}    M i = {0 ≤ M inute ≤ 59} Xây dựng test cases cho Normal Boundary Value Testing: Testcase Day Month Year Hour Minute TTDA-1 Mo Y H M Mo Y H M O1 Mo Y H M O1 TTDA-4 TTDA-5 Dmin = Dmin + = Dmax −1 = 30 Dmax = 31 D Expected Output O1 Y Y H H M M O1 O1 TTDA-6 D Y H M O1 TTDA-7 D Y H M O1 TTDA-8 D Mo M omin = M omin + = M omax −1 = 11 M omax = 12 H M O1 TTDA-9 D Mo H M O1 TTDA-10 D Mo H M O1 TTDA-11 D Mo Y Ymin = 1900 Ymin + = 1901 Ymax − = 2049 H M O1 TTDA-2 TTDA-3 Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 41/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính TTDA-12 D Mo TTDA-13 D Mo Ymax 2050 Y TTDA-14 D Mo Y TTDA-15 D Mo Y TTDA-16 TTDA-17 D D Mo Mo TTDA-18 D TTDA-19 TTDA-20 = H M O1 M O1 M O1 M O1 Y Y Hmin = Hmin + = Hmax −1 = 22 Hmax = 23 H O1 O1 Mo Y H D Mo Y H D Mo Y H M M imin = M imin + = M imax − = 58 M imax = 59 O1 O1 O1 Trong Expected output O1 : Tạo kiện thành công hiển thị lịch 2.5.1.b Equivalent class partitioning Chức năng: Tạo kiện (Create event) Mô tả: Tạo kiện chức để tạo kiện cá nhân lịch hệ thống BK E-learning Để tạo kiện cần thông tin Tên kiện (Name), Ngày diễn kiện (Date), Mô tả (Description), Địa (Address), Thời lượng (Duration), Số lần lặp lại (Repeat) Miền giá trị hợp lệ trường: • Name: Chuỗi khác rỗng (N1) • Date: ngày thuộc năm không nhuận vào (Da1.1.1), ngày thuộc năm nhuận vào (Da1.2.1), ngày thuộc năm không nhuận vào thời điểm (Da1.1.2), ngày thuộc năm nhuận vào thời điểm (Da1.2.2) • Description: Chuỗi rỗng (De1.1) chuỗi khơng rỗng (De1.2) • Address: Chuỗi rỗng (A1.1) chuỗi khơng rỗng (A1.2) • Duration: khơng có thời lượng (Du1.1), ngày thuộc năm không nhuận vào (Du1.2.1), ngày thuộc năm nhuận vào (Du1.3.1), ngày thuộc năm không nhuận vào thời điểm (Du1.2.2), ngày thuộc năm nhuận vào thời điểm (Du1.3.2), thời lượng tính phút số ngun dương (Du1.4) • Repeat: Số lần lặp lại (không chọn lặp lại) (R1.1), số lần lặp lại số nguyên dương (R1.2) Miền giá trị không hợp lệ trường: Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 42/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính • Name: Chuỗi rỗng (N2) • Date: Khơng có • Description: Khơng có • Address: Khơng có • Duration: Thời lượng tính phút khơng phải số (Du2.1), thời lượng tính phút số khơng phải số ngun dương (Du2.2) • Repeat: Số lần lặp lại số (R2.1), Số lần lặp lại số số tự nhiên (R2.2) Xây dựng testcase cho Weak Robust Equivalence Class: Testcase TTCE-1 TTCE-2 TTCE-3 TTCE-4 TTCE-5 TTCE-6 TTCE-7 TTCE-8 TTCE-9 TTCE-10 TTCE-11 Input Doman Equivalent Classes N1, Da1.1.1, De1.1, A1.1, Du1.1 , R1.1 N1, Da1.1.2, De1.2, A1.2, Du1.2.1 , R1.2 N1, Da1.2.1, De1.1, A1.1, Du1.2.2 , R1.1 N1, Da1.2.2, De1.2, A1.1, Du1.3.1 , R1.2 N1, Da1.1.1, De1.1, A1.2, Du1.3.2, R1.1 N1, Da1.1.2, De1.1, A1.1, Du1.4, R1.2 N2, Da1.1.1, De1.1, A1.1, Du1.1 , R1.1 N1, Da1.1.1, De1.1, A1.1, Du2.1 , R1.1 N1, Da1.1.1, De1.1, A1.1, Du2.2 , R1.1 N1, Da1.1.1, De1.1, A1.1, Du1.1 , R2.1 N1, Da1.1.1, De1.1, A1.1, Du1.1 , R2.2 Expected Output O1 O1 O1 O1 O1 O1 O2 O3 O3 O4 O4 Trong Expected Output: • O1: Tạo kiện thành công hiển thị lịch • O2: Hiển thị lỗi/yêu cầu nhập tên • O3: Hiển thị lỗi/yêu cầu nhập thời lượng số nguyên dương • O4: Hiển thị lỗi/yêu cầu nhập số lần lặp lại số nguyên dương 2.5.1.c Decision table Chức năng: Lọc khố học (Filter course) Mơ tả: Lọc khố học chức tìm kiếm khố học mà người dùng tham gia dựa số tuỳ chọn tiêu chí cho trước Có tuỳ chọn lọc theo loại khoá học (Type) theo thứ tự xếp (Order) Mỗi tuỳ chọn có nhiều tiêu chí khác Các điều kiện cho Decision Table: • C1: Tuỳ chọn Type Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 43/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính – T1: "All" – T2: "Tất khoá học (trừ khoá học ẩn)" – T3: "Đã đánh dấu" – T4: "Đã ẩn" • C2: Tuỳ chọn Order – Od1: "Sắp xếp theo tên" – Od2: "Sắp xếp theo thời gian truy cập" Các hành động xảy ra: • A1: Hiển thị tất khoá học xếp theo tên • A2: Hiển thị tất khố học (trừ ẩn) xếp theo tên • A3: Hiển thị khoá học đánh dấu xếp theo tên • A4: Hiển thị khố học ẩn xếp theo tên • A5: Hiển thị tất khoá học xếp theo thời gian truy cập • A6: Hiển thị tất khố học (trừ ẩn) xếp theo thời gian truy cập • A7: Hiển thị khoá học đánh dấu xếp theo thời gian truy cập • A8: Hiển thị khoá học ẩn xếp theo thời gian truy cập Bảng định: condition C1: Type is C2: Order is A1 A2 A3 A4 A5 A6 A7 A8 2.5.1.d T1 Od1 × T1 Od2 T2 Od1 T2 Od2 T3 Od1 T3 Od2 T4 Od1 T4 Od2 × × × × × × × Use-case testing Chức năng: Gửi tin nhắn (Send message) Mô tả: Chức gửi tin nhắn giúp người dùng gửi tin nhắn đến người dùng khác, gửi đến thân (Personal Space) để lưu trữ ghi chú, liên kết, Số đường cần test: V (G) = e − n + p = 16 − 14 + = Các đường cần test: Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 44/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính BKeL Send Message Activity Graph   Không Chọn icon Tin nhắn Hiển thị danh sách tin nhắn Mở Trang tin nhắn Có Chọn See All Personal Space Chọn tên người dùng Starred Gửi cho? Người nhận khác Chọn tên người nhận Starred Private 10 Hiển thị hộp thoại nhắn tin 11 Dùng bàn phím? Chọn icon Gửi tin nhắn 14 Khơng 15 16 Tin nhắn gửi thành cơng 12 Có 13 Ấn Enter Hình 19: BKeL Send Message Activity Diagram • Path 1: → → → → → → → 11 → 12 → 13 → 16 • Path 2: → → → → → → → 11 → 14 → 15 → 16 • Path 3: → → → → → → 10 → 11 → 12 → 13 → 16 • Path 4: → → → → → → 11 → 12 → 13 → 16 2.5.2 Non-functional Requirement Yêu cầu phi chức năng: Giao diện phù hợp với nhiều kích thước hình: Máy tính/Laptop (1024px), tablet (820px) điện thoại (375px) Trình tự thực để kiểm thử chức năng: Truy cập trang web Trên hệ điều hành Linux, nhấn F12/(Fn+F12) để mở DevTools Chọn "Open DevTools Trên công cụ vừa hiện, chọn "Dimensions" thiết bị "Nest Hub", "Ipad Air", "Iphone SE" để kiểm thử cho thiết bị laptop, tablet, điện thoại Kết kiểm tra: • Laptop: Passed Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 45/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hình 20: Giao diện BKeL laptop • Tablet: Passed Hình 21: Giao diện BKeL tablet • Điện thoại: Passed Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 46/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Trường Đại Học Bách Khoa Tp.Hồ Chí Minh Khoa Khoa Học & Kỹ Thuật Máy Tính Hình 22: Giao diện BKeL điện thoại Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Bài tập lớn số 2: Black-box Testing Trang 47/48 TIEU LUAN MOI download : skknchat123@gmail.com moi nhat Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing Kiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testingKiem.tra.phan.mem.(CO3015).bai.tap.lon.so.2.black.box.testing

Ngày đăng: 01/01/2024, 18:58

Xem thêm:

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w