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

Thực hiện kiểm thử tự động cho hệ thống bán hàng trực tuyến nopcommerce

90 5 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

Nội dung

TRƯỜNG ĐẠI HỌC KINH TẾ KHOA THỐNG KÊ – TIN HỌC BÁO CÁO THỰC TẬP NGHỀ NGHIỆP NGÀNH HỆ THỐNG THÔNG TIN QUẢN LÝ CHUYÊN NGÀNH QUẢN TRỊ HỆ THỐNG THÔNG TIN THỰC HIỆN KIỂM THỬ TỰ ĐỘNG CHO HỆ THỐNG BÁN HÀNG TRỰC TUYẾN NOPCOMMERCE Đơn vị thực tập : TMA Solutions Bình Định Giảng viên hướng dẫn : ThS Cao Thị Nhâm LỜI CẢM ƠN Em xin cảm ơn đến quý Thầy Cô Khoa Thống kê- Tin học trường Đại Học Kinh Tế Đà Nẵng tạo điều kiện để em có điều kiện thực tập Và em xin chân thành cảm ơn cô Cao Thị Nhâm nhiệt tình hướng dẫn hướng dẫn em hồn thành tốt tập Đặc biệt, em xin chân thành gửi lời cảm ơn đến chị Trần Thị Hoài Phương hướng dẫn trực tiếp, đạo tạo điều kiện giúp đỡ em suốt trình học thực tập Em xin trân trọng gửi lời cảm ơn đến ban giám đốc anh chị nhân viên công ty TMA Solution Bình Định tận tình dẫn giúp đỡ em suốt thời gian thực tập Nhờ mà em học thêm nhiều kiến thức có nhìn tường tận lý thuyết chun ngành thực tế áp dụng Trong suốt trình làm chuyên đề trình tìm hiểu, khơng thể tránh khỏi thiếu sót hạn chế Em mong nhận ý kiến đóng góp phản hồi từ q thầy để em khắc phục sai sót rút học cho trau dồi thêm kiến thức Em xin chân thành cảm ơn! i LỜI CAM ĐOAN Em xin cam đoan đề tài: “Nghiên cứu Katalon Studio ứng dụng cho hệ thống bán hàng trực tuyến nopCommerce” chúng em trình tìm hiểu nghiên cứu chúng em hướng dẫn cô Cao Thị Nhâm mentor Trần Thị Hồi Phương, khơng có chép nguồn khác Ngoài ra, báo cáo có sử dụng số nguồn tài liệu tham khảo trích dẫn nguồn thích rõ ràng Đề tài nội dung báo cáo nỗ lực mà chúng em nghiên cứu q trình thực tập cơng ty TMA Solutions Bình Định Em xin cam đoan em trình bày báo cáo hồn tồn trung thực Em xin chịu trách nhiệm lời cam đoan ii MỤC LỤC LỜI CẢM ƠN i LỜI CAM ĐOAN ii MỤC LỤC iii DANH MỤC HÌNH ẢNH vi DANH MỤC BẢNG BIỂU viii DANH MỤC CÁC TỪ VIẾT TẮT ix LỜI MỞ ĐẦU CHƯƠNG TỔNG QUAN VỀ ĐƠN VỊ VÀ VỊ TRÍ THỰC TẬP 1.1 Giới thiệu tổng quát về TMA Solutions 1.1.1 Tổng quan TMA Solutions 1.1.2 Lĩnh vực hoạt động 1.1.3 Cơ cấu tổ chức 1.1.4 Chính sách đãi ngộ 1.1.5 Về TMA Bình Định Tổng quan về vị trí Tester 1.2 1.2.1 Yêu cầu kiến thức kĩ 1.2.2 Vị trí cơng việc cần làm 1.2.3 Con đường phát triển nghiệp 1.2.4 Mức lương thị trường Việt Nam CHƯƠNG CƠ SỞ LÝ THUYẾT 2.1 Tổng quan về kiểm thử phần mềm 8 2.1.1 Khái niệm kiểm thử phần mềm 2.1.2 Tầm quan trọng kiểm thử phần mềm 2.1.3 Mục tiêu kiểm thử phần mềm 2.1.4 Bảy nguyên tắc kiểm thử phần mềm 2.1.5 Vòng đời kiểm thử phần mềm 2.1.6 Phân biệt Error, Bug, Fault 2.1.7 Phân biệt Verification Validation Loại kiểm thử phương pháp kiểm thử 10 2.2 2.2.1 Các loại kiểm thử phần mềm 10 2.2.2 Các phương pháp kiểm thử 10 iii 2.3 Các cấp độ kiểm thử 10 2.3.1 Unit testing (Kiểm thử đơn vị) 10 2.3.2 Integration testing (Kiểm thử tích hợp) 11 2.3.3 System testing (Kiểm thử hệ thống) 11 2.3.4 Acceptance testing (Kiểm thử chấp nhận) 11 2.4 Test case 12 2.4.1 Khái niệm test case 12 2.4.2 Các thành phần test case 12 2.4.3 Kỹ thuật kiểm thử 12 2.5 Katalon Studio 13 2.5.1 Tổng quan Katalon 13 2.5.2 Các tính 13 CHƯƠNG PHÂN TÍCH HỆ THỐNG 3.1 Tổng quan web nopCommerce 15 15 3.1.1 Giới thiệu chung web nopCommerce 15 3.1.2 Chức nopCommerce 15 3.1.3 Ưu nhược điểm website nopCommerce 16 3.2 Workflow hệ thống 17 3.3 Sơ đồ Use case 18 3.3.1 Sơ đồ use case tổng quát 18 3.3.2 Chức tác nhân 18 3.4 Mô tả chi tiết 19 3.4.1 Sơ đồ use case cho chức “Đăng ký” 19 3.4.2 Sơ đồ use case cho chức “Đăng Nhập ” 25 3.4.3 Sơ đồ use case cho chức “Thêm vào Wishlist” 29 CHƯƠNG THỰC HIỆN KIỂM THỬ TRÊN KATALON STUDIO 35 4.1 Môi trường kiểm thử 35 4.2 Cấu trúc test Automation 36 4.3 Thiết kế test case: 36 4.4 Thực hiện kiểm thử: 37 4.4.1 Script chức “Register” 37 4.4.2 Script chức “Login” 38 iv 4.4.3 4.5 Script chức “Add to Wishlist” Kết kiểm thử: 39 40 4.5.1 Chức “Register” 40 4.5.2 Chức “Login” 44 4.5.3 Chức “Add to Wishlist” 46 KẾT LUẬN VÀ HƯỚNG PHÁT TRIỂN 49 TÀI LIỆU THAM KHẢO 51 CHECK LIST CỦA BÁO CÁO 52 PHỤ LỤC 53 v DANH MỤC HÌNH ẢNH Hình 1.1 Trụ sở TMA Solutions TP.HCM Hình 1.2 Sơ đồ cấu tổ chức cơng ty Hình 1.3 TMA Solutions Bình Định Hình 2.1 Mơ hình vịng đời kiểm thử phần mềm Hình 2.2 Các tính Katalon Studio 14 Hình 3.1 Website nopCommerce 15 Hình 3.2 Workflow demo hệ thống nopCommerce 17 Hình 3.3 Use case tổng quát 18 Hình 3.4 Sơ đồ Use case chức đăng ký 19 Hình 3.5 Màn hình trang chủ hệ thống 20 Hình 3.6 Màn hình trang đăng ký 21 Hình 3.7 Màn hình Đăng ký thành cơng 22 Hình 3.8 Màn hình Đăng ký khơng nhập trường bắt buộc 23 Hình 3.9 Màn hình Đăng ký nhập email đăng ký trước 23 Hình 3.10 Màn hình Đăng ký nhập sai định dạng email 24 Hình 3.11 Màn hình Đăng ký nhập mật ký tự 24 Hình 3.12 Màn hình Đăng ký nhập mật xác nhận không khớp 25 Hình 3.13 Sơ đồ use case chức đăng ký 25 Hình 3.14 Màn hình trang chủ website 26 Hình 3.15 Màn hình Đăng nhập 26 Hình 3.16 Màn hình sau đăng nhập thành cơng 27 Hình 3.17 Màn hình người dùng nhập sai email mật 28 Hình 3.18 Màn hình người dùng nhập khơng tài khoản 28 Hình 3.19 Màn hình người dùng khơng nhập email passw 29 Hình 3.20 Sơ đồ use case chức thêm vào Wishlist 29 Hình 3.21 Màn hình thơng báo thêm sản phẩm vào Wishlist thành c 30 Hình 3.22 Màn hình hiển thị sản phẩm Wishlist 30 Hình 3.23 Màn hình thơng báo lỗi khơng chọn size 31 Hình 3.24 Màn hình hiển thị thơng báo lỗi khơng chọn Size/Color 31 Hình 3.25 Màn hình thơng báo lỗi khơng chọn RAM/HDD 32 Hình 3.26 Màn hình hiển thị thơng báo khơng chọn đủ số lượ 32 vi Hình 3.27 Màn hình hiển thị thơng báo lỗi khơng nhập thơng tin 33 Hình 3.28 Màn hình hiển thị lỗi khơng nhập thời gian 33 Hình 3.29 Màn hình hiển thị khơng nhập thơng tin bắt buộc 34 Hình 4.1 Màn hình mơ tả Test Case manual 35 Hình 4.2 Màn hình mơ tả ứng dụng Katalon Studio 35 Hình 4.3 Các script cho test case Register 37 Hình 4.4 Keyword chức Register 37 Hình 4.5 Test suites Register 38 Hình 4.6 Script chức Login 38 Hình 4.7 Keyword chức Login 38 Hình 4.8 Test suites chức Login 39 Hình 4.9 Script test case Add to Wishlist 39 Hình 4.10 Keyword chức Add to Wishlist 40 Hình 4.11 Test suites chức Add to Wishlist 40 Hình 4.12 Kết Test suites chức Register 40 Hình 4.13 Kết Test case RE_002 41 Hình 4.14 Kết Test case RE_004 42 Hình 4.15 Kết Test case RE_012 43 Hình 4.16 Kết Test case RE_014 43 Hình 4.17 Kết Test suites chức Login 44 Hình 4.18 Kết Test case Login_001 44 Hình 4.19 Kết Test case Login_003 45 Hình 4.20 Kết Test case Login_007 45 Hình 4.21 kết Test case Login_010 46 Hình 4.22 Kết Test suites Add to Wishlist 46 Hình 4.23 Kết Test case W_001 47 Hình 4.24 Kết Test case W_002 47 Hình 4.25 Kết Test case W_003 48 Hình 4.26 Kết Test case W_009 48 vii DANH MỤC BẢNG BIỂU Bảng 2.1 Phân biệt Verification Validation Bảng 3.1 Chức tác nhân 19 Bảng 4.1 Thiết kế test case 36 Bảng Checlist báo cáo 52 viii DANH MỤC CÁC TỪ VIẾT TẮT STLC : Vòng đời phát triển phần mềm IDE : Intergrated Development Environment ix TC ID Login_009 Login_010 Section Login Login TC Title/Summary Verify user does not need to enter login information next time if "Remember me?" is ticked Verify the user can recover the password if the password is forgotten Preconditi ons That account exists and has been activated That account exists and has been activated Manual Test Steps Open website https://demo nopCommerce.com/ Type correct Email Type correct Password Tick the "Remember me ?" checkbox Click on the "Login" button Close web Open website https://demo nopCommerce.com/ Verify that user login successfully Open website https://demo nopCommerce.com/ Click on the "Forgot password" link Verify that the user is redirected to the password recovery page Enter the "email" associated with the user's account Click on the "RECOVER" button Verify the notification has been sent to the email Expected Results Created By Status The user is automatically logged in without entering credentials and then the user is redirected to the home page Oanh PASS After pressing the "RECOVER", a message " Email with instructions has been sent to you." shows The user just need to follow the instructions in the email to be able to recover their password and log in again Oanh PASS 66 TC ID Login_011 Section TC Title/Summary Login Verify the user login unsuccessfully with account unregistered Preconditi ons That account exists and has been activated Manual Test Steps Open website https://demo nopCommerce.com/ Enter email Enter password 4.Click on the "Login" button Verify that user login unsuccessfully Expected Results Created By Status The user is not navigate through the home page and the screen shows "Login was unsuccessful Please correct the errors and try again No customer account foundt" Oanh PASS 67 Test case Register: TC_ID W_001 Section SubTC sections Title/Sum mary Wishlist Add [Homepa new ge] Verify user can add products to wishlist on home screen Precond itions Manual Test Steps Open website https://demo nopCommerce.com/ Down to" Featured Products" Click button "Add to wishlist" at the home page Click title "Wishlist" Verify the product in the wishlist is correct with the product name and quantity Expected Results Created By Status The product has been added to wishlist and shows a success message: "The product has been added to your wishlist" The product in the wishlist has the correct name and quantity Phượng PASS 68 TC_ID W_002 Section SubTC Precond sections Title/Sum itions mary Wishlist Add [Category new ] Verify user can add product to wishlist on product category Manual Test Steps Expected Results Open website https://demo nopCommerce.com/ Click menu or subsection in menu Click on the product image or name Enter the necessary information (if any) - Processor, RAM, HDD, OS, Software - Size, Color - Start date, end date - Recipient's Name, Recipient's Emai, Your Name, Your Email Click "Add to wishlist" on the product detail screen Click on the "Wishlist" heading Verify the product in the wishlist is correct with the product name and quantity -The product has been added to wishlist and shows a success message: "The product has been added to your wishlist" -The product in wishlist has the correct name and quantity Created By Status Phượng PASS 69 TC_ID W_003 W_004 Section SubTC sections Title/Sum mary Wishlist Add [Search new store] Verify users can add to wishlist when searching for products in search store Wishlist Add new [Quantity ] Verify of user adding product to wishlist fails when Precond itions Manual Test Steps Open website https://demo nopCommerce.com/ Search store: "Enter keyword" Click button "Search" Click button "Add to wishlist" Click title "Wishlist" Verify the product in the wishlist is correct with the product name and quantity Expected Results -Verify in step 2, if you enter a keyword, the information will display the keyword you are looking for -The product has been added to the wish list and shows the success message: "The product has been added to your wish list" -The product in the wishlist has the correct name and quantity Open the website -Display the detail https://demo screen of each nopCommerce.com/ product 2.Click the menu or sub-item in -Notice displayed: the menu Quantity should be Click on the product image positive or name Enter the necessary information (if any) Created By Status Phượng PASS Phượng PASS 70 TC_ID Section SubTC sections Title/Sum mary quantity entered is below initial minimum Precond itions Manual Test Steps Expected Results Created By Status - Processor, RAM, HDD, OS, Software - Size, Color - Start date, end date - Recipient's Name, Recipient's Email, Your Name, Your Email Enter quantity: less than original quantity Click "add to wish list" on the product detail screen Verify user was not added to Wishlist successfully 71 TC_ID W_005 W_006 Section SubTC sections Title/Sum mary Wishlist Add [Quantity new ] Verify user successfu lly add product to favorites list when entering quantity does not exceed the max (10000) Wishlist Add new [Quantity ] Verify of add-tofavorite user Precond itions Manual Test Steps Expected Results Open the website https://demo nopCommerce.com/ 2.Click the menu or sub-item in the menu Click on the product image or name Enter the necessary information (if any) - Processor, RAM, HDD, OS, Software - Size, Color - Start date, end date - Recipient's Name, Recipient's Email, Your Name, Your Email Enter quantity: less than or equal to maximum (10000) Click "add to wish list" on the product detail screen Verify user was added to Wishlist successfully Open the website https://demo nopCommerce.com/ Click the menu or sub-item in the menu -The product has been added to the wish list and shows the success message: "The product has been added to your wish list" -The product in the wishlist has the correct name and quantity -Display the detail screen of each product -Display message: The maximum Created By Status Phượng PASS Phượng PASS 72 TC_ID W_007 Section Wishlist SubTC sections Title/Sum mary failed when entering quantity above maximu m Precond itions Add new product: Apple iCam Verify users cannot add products to wishlist for products that are Manual Test Steps Click on the product image or name Enter the necessary information (if any) - Processor, RAM, HDD, OS, Software - Size, Color - Start date, end date - Recipient's Name, Recipient's Email, Your Name, Your Email Enter quantity: 10001 Click "Add to wishlist" on product details Verify user was not added to Wishlist successfully Open the website https://demo nopCommerce.com/ Click the menu or sub-item in the menu Click on the product image or name Verify out-of-stock products that don't support the "add to wishlist" button Expected Results Created By Status Phượng PASS quantity allowed to buy is 10000 The screen does not appear support button "add to wishlist" 73 TC_ID W_008 Section Wishlist SubTC sections Title/Sum mary out of stock require d fields Verify that user adding to wishlist fails when required fields are not entered Precond itions Manual Test Steps Expected Results Open website https://demo nopCommerce.com/ Select favorite product on the home page Click "Add to wishlist" of product on homepage Do not tick or enter information required fields - Processor, RAM, HDD, OS, Software - Size, Color - Start date, end date - Recipient's Name, Recipient's Email, Your Name, Your Email Click button "Add to wishlist" Verify the product is not added to your favorites After Clicking the "Add to wishlist" button, the product was not successfully added Shows the message: 'Please select RAM' 'Please select HDD' Created By Status Phượng PASS 74 TC_ID W_009 W_010 Section SubTC sections Title/Sum mary Wishlist Delete Verify users can remove products from wishlists when click "Remove " button in section "Wishlist " Wishlist Delete Verify the user can remove the product from the wishlist when clicking the "Qty=0" button in the Precond itions Manual Test Steps Open website https://demo Have nopCommerce.com/ products Click "Wishlist" on the title in bar wishlist ''Remove'' on wishlist Click the ""X"" button " Verify the product has been removed from "Wishlist" Have products in wishlist Open website https://demo nopCommerce.com/ Click "Wishlist" on the title bar Enter Qty=0 Verify the product has been removed from "Wishlist" Expected Results Created By Status Phượng PASS Phượng PASS After clicking on wishlist, clicking on remove product will be removed from wishlist -Product will be removed from wishlist 75 TC_ID W_011 W_012 Section Wishlist Wishlist SubTC sections Title/Sum mary "wishlist" section Precond itions Delete Open website https://demo Have nopCommerce.com/ products Click "Wishlist" on the title in bar wishlist ''Remove'' the last product in the wishlist Click the ""X"" " button Verify Empty favorites list -Product will be removed from wishlist -The wishlist is empty! Have products in wishlist After Clicking "Update Wishlist", the product quantity and total amount are updated Verify user can delete a product when only the last product in wishlist Update Verify users can edit the quantity of product and update wishlist with product Manual Test Steps Open website https://demo nopCommerce.com/ Click "Wishlist" on the title bar Click ''Qty'' on wishlist edit the number of products Click "Update Wishlist " to update Verify the number of products and the total amount in the favorites list are updated Expected Results Created By Status Phượng PASS Phượng PASS 76 TC_ID W_013 Section Wishlist SubTC sections Title/Sum mary in "Wishlist " Precond itions Update Verify users can edit the quantity of product and update wishlist with product in "Wishlist " Have products in wishlist Manual Test Steps Expected Results Open website https://demo nopCommerce.com/ Click "Wishlist" on the title bar Click "Edit" on the product to be edited Adjust the configuration as well as the quantity to buy Click "Update Wishlist" to update Verify the number of products and the total amount in the favorites list are updated -The product quantity and total amount are updated Created By Status Phượng PASS 77 TC_ID W_014 W_015 Section SubTC sections Title/Sum mary Wishlist Add to Verify card user can add wishlist products to cart when "Add to cart" column is selected Wishlist Add to card Verify user cannot add wishlist products to cart without selecting "Add to Cart" column Precond itions That account exists and has been activate d, Have products in wishlist Manual Test Steps Open website https://demo nopCommerce.com/ Click "Wishlist" on the title bar Click on the square in the "Add to cart" column representing the product you want to add to your cart Click button "Add to cart" Verify that clicking the add to cart button will go to the shopping cart screen and the product is in the cart? Open the website https://demo nopCommerce.com/ Click "WishList" on the title bar No Click on the square in the "Add to Cart" column showing the product you want to add to your cart Click "Add to Cart" button Have Verify that without clicking products the add to cart button the in product does not go to the cart wishlist screen Expected Results After clicking "Add to Cart", the "shopping cart "will show the correct product name and quantity and total amount selected Created By Status Phượng PASS Phượng PASS - The message "No products selected to add to cart" will be displayed 78 TC_ID W_016 W_017 Section SubTC sections Title/Sum mary Wishlist Email Verify a user can friend email a wishlist friend successfu lly when Clicking the "SEND EMAIL" Wishlist View Verify user can click on product name and image to navigate to view product informati on Precond itions Manual Test Steps Open website https://demo That nopCommerce.com/ account Login exists Click "Wishlist" on the title and has bar been Click button ""Email a activate friend "" d, have Enter your " Friend's Email" products "Your email address" in "Personal message" wishlist Click button " SEND EMAIL" Verify Email sending successful Open website https://demo nopCommerce.com/ 2.Click menu or subsection in menu Click on the product image or name Click on the product 'image' or 'name' to display product information page 5.Verify the product information page is visible Expected Results After Clicking the "SEND EMAIL" button, the message Your message has been sent will be displayed 'Your message has been sent.'' Created By Status Phượng PASS Phượng PASS After clicking on the product name, detailed product information is displayed 79 TC_ID W_018 W_019 Section SubTC sections Title/Sum mary Wishlist View Verify user can click on product name and image to navigate to view product informati on Wishlist Your Verify wishlis Share t URL URL will for appear sharin when g user adds at least products into ""Wishlis t"" Precond itions Manual Test Steps Expected Results Open website https://demo Have nopCommerce.com/ products Click "Wishlist" on the title in bar wishlist Click on the product 'image' or 'name' to display product information page Verify the product information page is visible After clicking on the product name, detailed product information is displayed Open website https://demo Have nopCommerce.com/ products 2.Click "Wishlist" on the title in bar wishlist 3.Click "https://demo nopCommerce.com/wishlist/ " 4.Your wishlist URL for sharing 5.Verify the favorites list is displayed After Click "https://demo nopCommerce.com/ wishlist/8857b2ced981-42e6-9c88515ee8934577"" your wishlist URL is shared, Wishlist will be displayed Created By Status Phượng PASS Phượng FAIL 80

Ngày đăng: 12/12/2023, 19:47

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

TÀI LIỆU LIÊN QUAN

w