Esempio n. 1
0
 def __init__(self, inteface_url, inteface_method,
              inteface_parme,
              inteface_assert, file, headers,
              pid, replydata, saveresult,
              id_list, is_database, data_mysql,
              data_field, urltest):
     self.result_pass = 0
     self.result_fail = 0
     self.result_toal = 0
     self.result_exception = 0
     self.result_cashu = 0
     self.result_wei = 0
     self.url = inteface_url
     self.inteface_method = inteface_method
     self.parme = inteface_parme
     self.assert_test = inteface_assert
     self.bask_list = []
     self.resultall = []
     self.headers = headers
     self.pid = pid
     self.repydata = replydata
     self.saveresult = saveresult
     self.id = id_list
     self.is_database = is_database
     self.data_mysql = data_mysql
     self.data_field = data_field
     self.title = u'测试日志'
     self.log_can = log_t(self.title, filename=file)
     self.urltest = urltest
     self.spendlist = []
Esempio n. 2
0
 def __init__(self, inteface_url, inteface_meth, inteface_parm,
              inteface_assert, file, headers, pid, yilaidata, saveresult,
              id_list, is_database, data_mysql, data_ziduan, urltest):
     self.result_pass = 0
     self.result_fail = 0
     self.result_toal = 0
     self.result_except = 0
     self.result_cashu = 0
     self.result_wei = 0
     self.url = inteface_url
     self.meth = inteface_meth
     self.parm = inteface_parm
     self.assert_test = inteface_assert
     self.bask_list = []
     self.result_pf = []
     self.headers = headers
     self.pid = pid
     self.yilaidata = yilaidata
     self.saveresult = saveresult
     self.id = id_list
     self.is_database = is_database
     self.data_mysql = data_mysql
     self.data_ziduan = data_ziduan
     self.title = u'测试日志'
     self.log_can = log_t(self.title, filename=file)
     self.urltest = urltest
     self.spendlist = []