﻿================================================================================
INVENTORYPLUS - MOBILE SCANNER PLUGIN (QA / TESTING TEST CASES)
Plugin Version: 2.0.0.0
Config Files: configMobileScanner.json, MobileScanner.dll.config
================================================================================

--------------------------------------------------------------------------------
MODULE 1: PLUGIN INSTALLATION & SYSTEM TRAY
--------------------------------------------------------------------------------
[TC-MS-01] Plugin Loading & Initialization
  - Pre-condition: MobileScanner.dll and configMobileScanner.json in Plugin/ folder.
  - Step 1: Launch InventoryPlus.
  - Expected: Mobile Scanner tray icon appears in Windows System Tray.
              Tooltip shows "Mobile Scanner - Not Connected".

--------------------------------------------------------------------------------
MODULE 2: SMARTPHONE PAIRING & REAL-TIME WEBRTC BARCODE SCANNING
--------------------------------------------------------------------------------
[TC-MS-02] QR Code Pairing
  - Step 1: Right-click Mobile Scanner tray icon -> Click "📱 Connect Mobile Phone (QR Code)".
  - Step 2: Open Camera / QR Scanner on phone -> Scan the displayed QR Code.
  - Step 3: Phone browser opens https://scanner.inventoryplus.in with auto-filled credentials.
  - Step 4: Tap "Connect & Start Scanning".
  - Expected: PC tray icon turns Green with tooltip "Mobile Scanner - Connected".
              PC receives instant connection acknowledgment.

[TC-MS-03] Barcode Scanning into POS Sales Grid
  - Step 1: In InventoryPlus, open POS Sales Entry screen. Focus cursor on Item Code field.
  - Step 2: On phone camera, point to an item barcode (e.g. 8901030).
  - Expected: Phone vibrates / beeps. Barcode instantly appears in POS grid, item is added
              and Auto-Enter advances to next row within milliseconds (<50ms).

--------------------------------------------------------------------------------
MODULE 3: REMOTE THERMAL LABEL PRINTING FROM PHONE
--------------------------------------------------------------------------------
[TC-MS-04] Thermal Label Printing Triggered from Phone
  - Step 1: Configure Thermal Label Printer and Template in Mobile Scanner tray menu.
  - Step 2: On mobile scanner page, scan item barcode.
  - Step 3: Tap "Print Label" on phone.
  - Expected: InventoryPlus on PC receives remote print command and prints barcode label
              directly to the configured thermal label printer.

--------------------------------------------------------------------------------
MODULE 4: SETTINGS CONFIGURATION
--------------------------------------------------------------------------------
[TC-MS-05] Settings Persistence in configMobileScanner.json
  - Step 1: Open Label & Scanner Configuration dialog from tray menu.
  - Step 2: Change Auto-Press Enter or Default Printer -> Click Save.
  - Expected: Changes saved to configMobileScanner.json and MobileScanner.dll.config.
              Reopening settings shows saved values.

--------------------------------------------------------------------------------
MODULE 5: PREMIUM SUBSCRIPTION LICENSING
--------------------------------------------------------------------------------
[TC-MS-06] Premium Subscription Check
  - Pre-condition: Basic tier registered store.
  - Step 1: Try to open Mobile Scanner configuration from tray menu.
  - Expected: Dialog displayed requiring Premium Subscription upgrade.
================================================================================