コード例 #1
0
#!/usr/bin/env python

import sys
from testlib.scripts.android.adb import adb_steps
from testlib.scripts.android.adb import adb_utils
from testlib.scripts.android.ui import ui_steps
from testlib.scripts.android.ui.browser import browser_steps
from testlib.base.base_utils import get_args

globals().update(vars(get_args(sys.argv)))
adb_steps.connect_device(serial=serial, port=adb_server_port)()
globals().update({"version": adb_utils.get_android_version()})

ui_steps.press_home()()

browser_steps.open_browser()()
browser_steps.close_all_tabs()()
browser_steps.open_new_tab()()
browser_steps.delete_all_bookmarks()()

ui_steps.press_home()()
コード例 #2
0
#!/usr/bin/env python

from testlib.scripts.android.adb import adb_steps
from testlib.scripts.android.adb import adb_utils
from testlib.scripts.android.ui import ui_steps
from testlib.scripts.android.ui.browser import browser_steps
from testlib.base import base_utils

import sys

globals().update(vars(base_utils.get_args(sys.argv)))
adb_steps.connect_device(serial=serial, port=adb_server_port)()
globals().update({"version": adb_utils.get_android_version()})

ui_steps.press_home(serial=serial)()

browser_steps.open_browser(serial=serial)()
browser_steps.close_all_tabs(serial=serial)()
browser_steps.open_new_tab(serial=serial)()
browser_steps.clear_browser_history(serial=serial)()

ui_steps.press_home(serial=serial)()