def random_search_test(): log_dir = os.environ.get("UPLOADDIR") if log_dir: log_dir = os.path.join(log_dir, "policy.log") else: log_dir = "policy.log" logger.info("run random search in testcase runner") travel.explore(log_dir, [], mode=0, max_num=3000)
def random_search(): log_dir = os.environ.get("UPLOADDIR") if log_dir: log_dir = os.path.join(log_dir, "policy.log") else: log_dir = "../autotest/random_run_{0}.log".format( os.environ.get("ADB_SERIAL", "")) logger.info("run random search in testcase runner") travel.explore(log_dir, [], mode=0, max_num=3000)
def test_travel(): forbid_names = [ "/ViewUIDepth_2/Canvas/ManagerInformation/Panel/JumpWindow/RightPanel/Wanjiaxinxi/ChangeServerButton", "/ViewUIDepth_2/Canvas/ManagerInformation/Panel/JumpWindow/RightPanel/Wanjiaxinxi/LoginOutButton" ] travel.explore(forbid_names=forbid_names, mode=0, max_num=30)
def test_travel(): forbid_names = [ "/ViewUIDepth_2/Canvas/ManagerInformation/Panel/JumpWindow/RightPanel/Wanjiaxinxi/ChangeServerButton", "/ViewUIDepth_2/Canvas/ManagerInformation/Panel/JumpWindow/RightPanel/Wanjiaxinxi/LoginOutButton"] travel.explore(forbid_names=forbid_names, mode=0, max_num=30)