import configparser
import os


config = configparser.ConfigParser()
dir = os.path.abspath('.').split('src')[0]
config.read(dir + "/config/config.ini", encoding='utf-8')


# 根据配置文件获取测试url
def test_location():
    location = config.get("testServer", "app_location")
    return location


def test_account():
    return config.get("account", "username")

def test_password():
    return config.get("account", "password")