Example #1
0
 def get_request_data(self, row):
     col = Define_variables.get_request_data()
     data = self.open_excel.get_cell_value(row, int(col))
     if data == '':
         return None
     else:
         return data
Example #2
0
 def get_token_data(self, row):
     col = Define_variables.get_token()
     token = self.open_excel.get_cell_value(row, int(col))
     if token == '':
         return None
     else:
         return token
Example #3
0
 def get_expect_data(self, row):
     col = Define_variables.get_expected_result()
     expect = self.open_excel.get_cell_value(row, int(col))
     if expect == '':
         return None
     else:
         return expect
Example #4
0
 def get_is_header(self, row):
     col = Define_variables.get_headers()
     headers = self.open_excel.get_cell_value(row, int(col))
     if headers == 'yes':
         return 'headers'
     else:
         return None
Example #5
0
 def get_depend_field(self, row):
     col = Define_variables.get_field_depend()
     data = self.open_excel.get_cell_value(row, int(col))
     if data == "":
         return None
     else:
         return data
Example #6
0
 def is_depend(self, row):
     col = Define_variables.get_relyid()
     depend_case_id = self.open_excel.get_cell_value(row, int(col))
     if depend_case_id == '':
         return None
     else:
         return depend_case_id
Example #7
0
 def get_depend_key(self, row):
     col = Define_variables.get_data_depend()
     depend_key = self.open_excel.get_cell_value(row, int(col))
     if depend_key == '':
         return None
     else:
         return depend_key
Example #8
0
 def get_is_run(self, row):
     flag = None
     col = Define_variables.get_run()
     run_model = self.open_excel.get_cell_value(row, int(col))
     if run_model == 'YES':
         flag = True
     else:
         flag = False
     return flag
Example #9
0
 def write_result(self, row, value):
     col = Define_variables.get_actual_result()
     self.open_excel.write_value(row, int(col), value)
Example #10
0
 def get_actual_data(self, row):
     col = Define_variables.get_actual_result()
     actual = self.open_excel.get_cell_value(row, int(col))
     return actual
Example #11
0
 def get_is_name(self, row):
     col = Define_variables.get_name()
     name = self.open_excel.get_cell_value(row, int(col))
     return name
Example #12
0
 def get_is_id(self, row):
     col = Define_variables.get_id()
     id = self.open_excel.get_cell_value(row, int(col))
     return id
Example #13
0
 def get_request_url(self, row):
     col = Define_variables.get_url()
     request_url = self.open_excel.get_cell_value(row, int(col))
     return request_url
Example #14
0
 def get_request_method(self, row):
     col = Define_variables.get_run_way()
     request_method = self.open_excel.get_cell_value(row, int(col))
     return request_method