e2e-test-20260623.md 2.65 KB

End-to-End Test: Daily Digest + Image Send (2026-06-23)

Test Objective

Verify complete workflow: query group messages → generate report → create infographic → send to contact.

Test Results: SUCCESS

Step 1: Group Identification

-- Found group via rcontact.nickname
SELECT username, nickname FROM rcontact 
WHERE username LIKE '%chatroom%' AND nickname LIKE '%8-TGO%'
-- Result: 54655425669@chatroom, "8-TGO和朋友们的AGI"

Discovery: chatroom.chatroomnick is NULL for all groups. rcontact.nickname is the reliable source.

Step 2: Message Query

SELECT msgId, type, isSend, talker, content, createTime 
FROM message 
WHERE talker = '54655425669@chatroom' 
AND createTime >= 1782144000000 AND createTime <= 1782230399000
ORDER BY createTime DESC LIMIT 50

Result: 33 messages retrieved, including:

  • 12 public account articles (type=49)
  • 8 text discussions (type=1)
  • 3 video channel shares (type=754974769)

Step 3: Report Generation

  • Output: /sdcard/WeChatDigest/report_20260623.md
  • Size: 1224 characters
  • Content: 6 topics, 12 articles, discussion highlights

Step 4: Infographic Generation

  • Tool: Gemini image generation (WanJie API)
  • Style: Vintage newspaper (beige background, black serif text)
  • Prompt: "Create a vintage newspaper front page infographic..."
  • Output: /sdcard/WeChatDigest/infographic_20260623.png
  • Size: 1,755,795 bytes (1.7MB)

Step 5: Image Send to 火星人

Method: System Share (ACTION_SEND)

Execution:

am start -a android.intent.action.SEND -t image/png \
  --eu android.intent.extra.STREAM file:///sdcard/WeChatDigest/infographic_20260623.png

Contact Selection:

  • OCR found "火星人" at (145, 923) in recent list
  • Tapped contact
  • UI showed "发送给:" label + send button

Send:

  • Tapped send button at (899, 2627)
  • Waited 3 seconds

Verification:

  • Screenshot showed "火星人" chat title (662, 233)
  • OCR found "To:火星人" markers (578, 636) and (578, 1184)
  • Image successfully sent

Key Learnings

  1. Group name location: rcontact.nickname is reliable; chatroom.chatroomnick is always NULL
  2. Pinyin search works: input_text("huoxingren") successfully finds Chinese contacts
  3. Send button coordinate: (899, 2627) is truly fixed on 1344x2992 screen
  4. Newspaper style: User prefers beige/cream vintage newspaper over purple tech style
  5. Verification pattern: OCR for "To:火星人" confirms image sent successfully

Files Generated

  • Report: /sdcard/WeChatDigest/report_20260623.md
  • Infographic: /sdcard/WeChatDigest/infographic_20260623.png
  • Screenshots: /sdcard/Pictures/VisualAgent/share_infographic_test_step*.png