feat(puzzle merge): add 2x2 bitmap merge utility and UI integration; add AirTest test_puzzle_merge
This commit is contained in:
20
test/airtest/test_puzzle_merge.py
Normal file
20
test/airtest/test_puzzle_merge.py
Normal 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()
|
||||
Reference in New Issue
Block a user