BLogic Systems

Checklisence

Last updated on 

🧑‍🏭 Product Requirement

Target release 08/10/2024
Document owner [email protected]
Developer [email protected], [email protected]
QA [email protected]

🎯 Objective

  • Tạo lisence cho khách hàng xài thử free trong vòng 10 ngày
  • Quá 10 ngày, nếu khách hàng muốn xài nữa thì phải mua lisence để xài tiếp

🎨 User interaction and design

Set up

  • Cách active lisence :

Sau đó vào web Blogic Lisence Dashboard -> Unregistered Devices -> tìm đúng key cần active lisence -> sau đó vào Destination chọn đúng storeid của tiệm để active -> rồi bấm Register selected device

ls3.png

Trên Wait&order app -> setting -> Product lisence có 1 product id với trạng thái Lock pending như hình bên dưới :

img_0073.png

Set up làm lisence die : Vào link http://192.168.1.194/ -> chọn Portainer

ls1.png

Test cases

  • Khi device đã được active: ** Case 1: Device được active cho store ID tiệm A rồi, nhưng lại đổi store ID qua tiệm khác thì trên device sẽ báo Missmatch như hình bên dưới

Khi device chưa được active -> thì sẽ show pop-up như hình bên dưới

img_0075.png
img_0074.png
img_0074.png

Case 2: Lisence die - khi lisence die hoặc mất kết nối mạng , thì phải show pop-up Active Require và cho sử dụng app trong vòng 10 ngày - từ ngày thứ 11, show pop-up Active Require nhưng không cho phép sử dụng app

Case 3: Khi dùng mạng local sẽ connect tới server bình thường nhưng không connect mạng ngoài được thì như không connect tới lisence được thì sau 10 ngày cũng show Active require

Case 4: Khi tắt wifi device : ngày 1 tắt wifi, open app không connect tới lisence được, change date device tới ngày 11 thì khi open lại app cũng show Active require

img_0076.png
img_0076.png

Note: Script để test:

  • Blogic Lisence
  • script xoá key đã được active để trở về key chưa dc active (select * from ProductKeys order by RegisteredDate desc delete from ProductKeys where ID = 8293)
  • script đổi ngày tạo key , tính lùi lại từ ngày hiện tại (select * from UnRegisterKeys order by DateConnected desc update UnRegisterKeys set CreateDate=‘2024-10-05 07:00:16.103’ where ID=12439)