def get_yml_data(): # 读取yaml文件 data_list = [] # with open(os.getcwd()+os.sep+"Data"+os.sep+"test_data.yaml", "r") as f: # data = yaml.load(f).get("Search_Data") # 读yaml数据 data = Op_Data("test_data.yaml").read_yaml().get("Search_Data") for i in data.values(): data_list.append((i.get("input"), i.get("expect"))) return data_list
def get_data(): # 读取返回数据 data_list = [] data = Op_Data("data.yml").read_yaml().get("Login_data") for i in data: for o in i.keys(): data_list.append((o, i.get(o).get("text"), i.get(o).get("tag"))) return data_list
def put_data(): data = Op_Data("data.yml").read_yaml().get('Login_data') data_list = [] for i in data: for o in i.keys(): data_list.append((o,i.get(o).get("phone"),i.get(o).get("passwd"),i.get(o).get("get_mess"),i.get(o).get("expect_message"),i.get(o).get("tag"))) return data_list
def get_data(): data_list = [] data = Op_Data("dev_login_data.yml").read_yaml().get("Dev_login") for i in data: data_list.append( (i.get("login_data").get("email"), i.get("login_data").get("pwd"), i.get("login_data").get("expec"))) return data_list
def get_data(): data_list = [] data = Op_Data('data.yaml').read_data().get('Login_in') for i in data: for o in i.keys(): data_list.append( (o, i.get(o).get('phone'), i.get(o).get('passwd'), i.get(o).get('toast_mess'), i.get(o).get('expect_mess'), i.get(o).get('tag'))) return data_list