def setUp(self, islocal=0): self.api = API2(islocal) self.t = tool() self.login_param, self.deviceid = runconfig.RunConfig().get_login( islocal) self.t.get_login_header(self.api, self.deviceid, self.login_param) self.ecode = errorCodeConst()
def __init__(self, islocal=0): self.api = API2(islocal) self.casedb = DBManual() self.t = tool() self.login_param, self.deviceid = runconfig.RunConfig().get_login( islocal) self.t.get_login_header(self.api, self.deviceId, self.login_param) self.sql = """update login_case set args=%s, response=%s,result=%s,test_time=%s WHERE case_no = %s"""
def __init__(self, islocal=0): self.api = API2(islocal) self.casedb = DBManual() # self.sql = """update user_interactive_case set args=%s,response=%s,result=%s,test_time=%s WHERE case_no = %s""" self.t = tool() self.login_param, self.deviceid = runconfig.RunConfig().get_login(islocal) self.ecode = errorCodeConst() self.pwd = base64.b64encode("888888")
def __init__(self, islocal=0): self.api = API2(islocal) self.casedb = DBManual(islocal) self.sql = """update user_case set args=%s, response= %s,result= %s,test_time= %s WHERE case_no = %s""" self.t = tool() # self.deviceid = "c37c6b3c-10cc-411d-abfe-200135522e6d" self.login_param, self.deviceid = runconfig.RunConfig().get_login( islocal) self.t.get_login_header(self.api, self.deviceid, self.login_param) self.ecode = errorCodeConst()
def __init__(self, islocal=0): self.api = API2(islocal) self.casedb = DBManual() self.sql = """update other_case set args=%s,response=%s,result=%s,test_time=%s WHERE case_no = %s""" self.t = tool() self.login_param, self.deviceid = runconfig.RunConfig().get_login(islocal) self.login_param2 = { "phoneNumber": "18782943852", "password": "******", "platform": "iOS", "clientVersion": "2.0", "machineId": 100001 } self.t.get_login_header(self.api, self.deviceid, self.login_param) self.ecode = errorCodeConst()
def get_baseurl(self): return runconfig.RunConfig().get_base_url(self.islocal)