Beispiel #1
0
 def get_case_id(self):
     '''
     获取依赖的case_id
     :return:
     '''
     data_config = DataConfig(self.data)
     return data_config.get_depend_case_id()
Beispiel #2
0
 def get_case_id(self):
     '''
     获取依赖的case_id,如果有依赖多个case用 | 去分隔
     :return:
     '''
     data_config = DataConfig(self.data)
     case_ids = data_config.get_depend_case_id()
     case_id_list = case_ids.split("|")
     return case_id_list
Beispiel #3
0
 def get_request_data(self, clear_interface_data):
     '''获取当前case的数据'''
     data_config = DataConfig(clear_interface_data)
     self.clear_url = data_config.get_url()
     self.clear_method = data_config.get_method()
     self.clear_header = data_config.get_header()
     self.clear_post_action = data_config.get_post_action()
     self.clear_post_params = data_config.get_post_params()
     self.depend_case_id = data_config.get_depend_case_id()
Beispiel #4
0
 def get_field(self):
     dc = DataConfig(self.data)
     self.case_id = dc.get_case_id()
     self.url = dc.get_url()
     self.method = dc.get_method()
     self.is_write = dc.is_write()
     self.is_run = dc.get_is_run()
     self.has_cookie = dc.has_cookie()
     self.header = dc.get_header()
     self.request_param = dc.get_param()
     self.request_data = dc.get_data()
     self.request_file = dc.get_file()
     self.depend_case_id = dc.get_depend_case_id()
     self.save_value = dc.get_save_value()
Beispiel #5
0
 def get_field(self, depend_case_id):
     '''
     获取依赖接口的字段
     :return:
     '''
     self.line_data = self.get_line_data(depend_case_id)
     data_config = DataConfig(self.line_data)
     self.url = data_config.get_url()
     self.method = data_config.get_method()
     self.has_cookie = data_config.has_cookie()
     self.header = data_config.get_header()
     self.request_param = data_config.get_param()
     self.request_data = data_config.get_data()
     self.request_file = data_config.get_file()
     self.depend_case_id = data_config.get_depend_case_id()
     self.save_value = data_config.get_save_value()
Beispiel #6
0
 def get_field(self):
     dc = DataConfig(self.data)
     self.case_id = dc.get_case_id()
     self.url = dc.get_url()
     self.method = dc.get_method()
     self.is_write = dc.is_write()
     self.is_run = dc.get_is_run()
     self.has_cookie = dc.has_cookie()
     self.header = dc.get_header()
     self.request_param = dc.get_param()
     self.request_data = dc.get_data()
     self.request_file = dc.get_file()
     self.depend_case_id = dc.get_depend_case_id()
     self.expect = dc.get_expect_for_db()
     self.post_action = dc.get_post_action()
     self.post_params = dc.get_post_params()