feat(puzzle merge): add 2x2 bitmap merge utility and UI integration; add AirTest test_puzzle_merge

This commit is contained in:
2026-03-01 12:59:56 +08:00
parent 0fe9ed4998
commit 44fe4d963c
3 changed files with 95 additions and 464 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""
AirTest Script: Puzzle Merge - 2x2 large image composition
"""
from airtest.core.api import *
auto_setup(__file__)
def main():
start_app("com.inspection.camera")
sleep(2)
width, height = device().get_current_resolution()
# 进入拼图页入口(假设在屏幕右侧)
touch((width * 2 / 3, height - 150))
sleep(2)
snapshot("puzzle_merge_page.png")
print("Saved puzzle_merge_page.png")
if __name__ == "__main__":
main()