24 lines
487 B
Python
24 lines
487 B
Python
|
|
"""
|
|||
|
|
Mumu模拟器测试 - 卸载测试(结尾)
|
|||
|
|
"""
|
|||
|
|
|
|||
|
|
import pytest
|
|||
|
|
import pyautogui
|
|||
|
|
import time
|
|||
|
|
|
|||
|
|
|
|||
|
|
def test_uninstall_app(emulator):
|
|||
|
|
"""测试卸载 flomo app"""
|
|||
|
|
time.sleep(3)
|
|||
|
|
if not emulator.is_running():
|
|||
|
|
pytest.skip("模拟器未运行")
|
|||
|
|
|
|||
|
|
result = emulator.uninstall_app_ui()
|
|||
|
|
assert result, "卸载 app 失败"
|
|||
|
|
|
|||
|
|
time.sleep(2)
|
|||
|
|
emulator.bring_to_front()
|
|||
|
|
time.sleep(1)
|
|||
|
|
pyautogui.hotkey("alt", "f4")
|
|||
|
|
print("已按 Alt+F4 关闭模拟器")
|