How to write script in python to reboot android tablet multiple times -
how can write script in python reboot android tablet , launch app multiple times. there better way automate test.
you can use command adb reboot reboot device.
there plethora of ways use python make adb command. simplest of can think of is:
import os os.system("adb reboot") you'll have either put path infront of adb, run folder adb in, or add folder adb in system path variable.
if don't want go route (or if want other more ineteresting things adb) there exists python wrapper around adb tool let interact in more "pythonic" way running system cmds.
Comments
Post a Comment