コード例 #1
0
def get_login_data():
    data = ReadYaml("bainian_data").read_yaml()
    arr = []
    for i in data.values():
        arr.append((i.get("username"), i.get("password"), i.get("expect"),
                    i.get("expect_toast"), i.get("message")))
    return arr
コード例 #2
0
def get_data():
    datas = ReadYaml("search_data").read_yaml()
    arrs = []
    for data in datas.values():
        arrs.append(data.get("input_text"))
    return arrs