def setup_class(cls):
     #初始化用例参数,将全局变量替换成配置文件中得变量
     cls.result = {"result": True}
     #更新配置文件中的token
     cls.token = Token.Token()
     cls.token.save_token()
     cls.log = Log.MyLog()
     cls.Assert = Assert.Assertions()
 def setup_class(cls):
     """
     初始化用例参数,将全局变量替换成配置文件中得变量
     :return:
     """
     cls.result = {"result": True}
     cls.token = Token.Token()
     cls.token.save_token()
     cls.log = Log.MyLog()
     cls.Assert = Assert.Assertions()
 def setup_class(cls):
     #初始化用例参数,将全局变量替换成配置文件中得变量
     # cls.rel = ini_rel
     with allure.step("初始化环境变量"):
         cls.log = Log.MyLog()
         cls.Assert = Assert.Assertions()
         cls.log.info("设置project_token_name为amdin")
         conf = Config()
         conf.set_conf("test_data", "project_token_name", "admin")
         cls.result = {"result": True}
         #更新配置文件中的token
         cls.token = Token.Token()
         cls.token.save_token()