Exemplo n.º 1
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
Exemplo n.º 2
0
    def setUp(self):
        """

        :return:
        """
        time.sleep(3)
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        print("开始测试用例" + self.case_name)
Exemplo n.º 4
0
    def setUp(self):
        """

        :return:
        """
        self.log = Log.get_log()
        self.logger = self.log.get_logger()
        self.logger.info(self.case_name + "_ready")
Exemplo n.º 5
0
 def setUp(self):
     """
     :return:
     """
     self.log = MyLog.get_log()
     self.logger = self.log.get_logger()
     print("测试开始前准备====================>>>>")
     print("测试用例名为:" + self.case_name)
Exemplo n.º 6
0
 def __init__(self):
     global log, logger, resultPath, on_off
     log = MyLog.get_log()
     logger =  log.get_logger()
     resultPath = log.get_report_path()
     self.caseListFile = os.path.join(readConfig.proDir,'caselist.txt')
     self.caseFile = os.path.join(readConfig.proDir,'test_case')
     self.caseList = []
Exemplo n.º 7
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        print self.case_describe + u"测试开始前准备"
Exemplo n.º 8
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
Exemplo n.º 9
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        self.login_token = businessCommon.login()
Exemplo n.º 10
0
 def __init__(self):
     self.timeout = 8.0
     self.log = MyLog.get_log()
     self.url = None
     self.method = None
     self.params = {}
     self.header = {}
     self.data = {}
Exemplo n.º 11
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        print(self.case_name + "测试开始前准备")
Exemplo n.º 12
0
 def setUp(self):
     """
     before test
     :return:
     """
     self.log = Log.get_log()
     self.logger = self.log.get_logger()
     self.log.build_start_line(self.case_name)
Exemplo n.º 13
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE ft_orders SET STATUS = '0' WHERE id = '8320';"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 14
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql1 = "UPDATE fy_house SET STATUS = '2' WHERE id = '1636559';"
        configDB.MyDB().zhiyu_run_sql(sql1)
Exemplo n.º 15
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE ft_rent_reside SET STATUS = '-1' WHERE user_id = '566';"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 16
0
 def setUp(self):
     """
     :return:
     """
     self.log = MyLog.get_log()
     self.logger = self.log.get_logger()
     print("测试开始前准备====================>>>>")
     testSendVerifyCode.send_verify_code(self.mobile)
     print("测试用例名为:" + self.case_name)
Exemplo n.º 17
0
    def setUp(self):
        """

        :return:
        """
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE ft_bill_list SET orders_id = 0 WHERE id = 23;"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 18
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        time.sleep(60)  # 因为会报获取验证码太频繁的错误,所以等待10秒
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
Exemplo n.º 19
0
 def __init__(self):
     global log, logger, resultPath
     log = Log.get_log()
     logger = log.get_logger()
     resultPath = log.get_report_path()
     # on_off = localReadConfig.get_email("on_off")
     self.caseListFile = os.path.join(readCongfig.proDir, "caselist.txt")
     self.caseFile = os.path.join(readCongfig.proDir, "testcase")
     self.caselist = []
Exemplo n.º 20
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE ft_signing SET STATUS = '5' WHERE house_id = '1636559';"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 21
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE fy_decorate SET STATUS = 1 WHERE id =28;"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 22
0
 def __init__(self):
     global baseurl, timeout
     baseurl = localReadConfig.getIniConfig('HTTP', 'baseurl')
     timeout = localReadConfig.getIniConfig('HTTP', 'timeout')
     self.log = Log.get_log()
     self.logger = self.log.get_logger()
     self.headers = {}
     self.data = {}
     self.params = {}
     self.url = None
Exemplo n.º 23
0
    def __init__(self):
        global protocol, ip, port
        protocol = localReadConfig.get_http('protocol')
        ip = localReadConfig.get_http('ip')
        port = localReadConfig.get_http('port')

        self.log = Log.get_log()
        self.logger = self.log.get_logger()
        self.data = None
        self.url = None
Exemplo n.º 24
0
 def __init__(self):
     global log, logger, resultPath, on_off
     log = Log.get_log()
     logger = log.get_logger()
     resultPath = log.get_report_file_path()
     on_off = localReadConfig.get_email("on_off")
     self.caseListFile = os.path.join(readConfig.ProDir, "caseList.txt")
     self.caseFile = os.path.join(readConfig.ProDir, "testCase")
     self.caseList = []
     self.email = MyEmail.get_email()
Exemplo n.º 25
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "UPDATE coupon_lists SET used_status = 0 WHERE id = 29;"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 26
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "DELETE FROM repair_cost WHERE app_id = 429;"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 27
0
    def setUp(self):
        """

        :return:
        """
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
        sql = "DELETE FROM cp_decorate_template WHERE NAME = '自动化用完就删';"
        configDB.MyDB().zhiyu_run_sql(sql)
Exemplo n.º 28
0
    def setUp(self):
        """

        :return:
        """
        if self.SQL == 1:
            print "等待60S..."
            time.sleep(60)
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
Exemplo n.º 29
0
    def setUp(self):
        """

        :return:
        """
        sql = 'UPDATE repair_apply SET STATUS = 1 WHERE id = 347;'
        configDB.MyDB().executeSQL(sql)
        print "测试接口:", self.case_describe
        self.log = MyLog.get_log()
        self.logger = self.log.get_logger()
Exemplo n.º 30
0
 def __init__(self):
     global host, port, timeout
     host = localReadConfig.get_http("baseurl")
     port = localReadConfig.get_http('port')
     timeout = localReadConfig.get_http('timeout')
     self.Log = Log.get_log()
     self.headers = {}
     self.params = {}
     self.data = {}
     self.url = None
     self.files = {}
Exemplo n.º 31
0
 def __init__(self):
     self.log = Log.get_log()
     self.logger = self.log.get_logger()
     self.db = None
     self.cursor = None