Example #1
0
 def get_response_field(self):
     '''
     获取返回的依赖字段
     :return:
     '''
     data_config = DataConfig(self.data)
     res_fields = data_config.get_depend_response_field()
     return res_fields and res_fields.split(";")
Example #2
0
 def get_response_field(self):
     '''
     获取返回的依赖字段,如果有依赖多个case用 | 去分隔
     :return:
     '''
     data_config = DataConfig(self.data)
     res_fields = data_config.get_depend_response_field()
     # if res_fields:
     res_fields_list = res_fields.split("|")
     return [res_fields.split(";")
             for res_fields in res_fields_list]  # ;用于分隔多个字段