コード例 #1
0
ファイル: getYaml.py プロジェクト: renbingqi/MVMAutoTest
 def get_YourProfile_yaml(self):
     ele_list = []
     file_path = get_rootpath() + "/config/initialElement/YourProfile.yaml"
     with open(file_path) as f:
         message = yaml.load(f, Loader=yaml.Loader)
         # print(message)
         for ele in message:
             ele_list.append(ele)
     return ele_list
コード例 #2
0
ファイル: getYaml.py プロジェクト: renbingqi/MVMAutoTest
 def get_TempStatus_yaml(self):
     ele_list = []
     file_path = get_rootpath() + "/config/deviceStatus/TempStatus.yaml"
     with open(file_path, encoding="utf-8") as f:
         message = yaml.load(f, Loader=yaml.Loader)
         # print(message)
         for ele in message:
             ele_list.append(ele)
     return ele_list
コード例 #3
0
ファイル: getYaml.py プロジェクト: renbingqi/MVMAutoTest
 def get_dashboard_yaml(self):
     ele_list = []
     file_path = get_rootpath() + "/config/initialElement/dashboard.yaml"
     with open(file_path) as f:
         message = yaml.load(f, Loader=yaml.Loader)
         for ele in message:
             ele_list.append(ele)
     # print(ele_list)
     return ele_list