예제 #1
0
    def setUp(self):
        self.base_url = "http://10.0.4.66:61020/api/order/apply/acceptance"
        self.case_name = " "
        self.a = SqlExecution()
        i = self.a.get_value(
            "SELECT t.`program_id` FROM `t_order_apply` t WHERE t.`audit_status`=0 AND t.`sys_flag`=0 AND t.`channel_id`IS NULL;"
        )

        print(i)
        self.body_data = {
            "programId": i,
            "userId": 6,
            "operatorName": "小木鸟",
            "channelId": 4,
            "remark": "接口测试自动审核"
        }
        self.body_nodata = {
            "userId": 6,
            "operatorName": "小木鸟",
            "channelId": 4,
            "remark": "接口测试自动审核"
        }

        self.body_nouserId = {
            "programId": i,
            "operatorName": "小木鸟",
            "channelId": 4,
            "remark": "接口测试自动审核"
        }
예제 #2
0
    def setUp(self):
        self.base_url = "http://10.0.4.66:61020/api/factoring/payment/apply/bill/creation"
        self.case_name = ""
        #获取当前待生成还款单的请用单号
        self.a = SqlExecution ()
        i = self.a.get_value (
            "SELECT t.`business_order_id` FROM `t_loan_order` t WHERE t.`status`=3 AND t.`sys_flag`=0 AND t.`channel_id` != 4 AND t.`business_order_id` IS NOT NULL;")
        list = []
        list.append (i)
        #参数
        self.body_data = {"businessOrderIdList": list,
                          "billType": 1,
                          "userId": 6,
                          "operatorName": "小木鸟"
                          }

        self.body_nobusinessOrderIdList = {"billType": 1,
                                           "userId": 6,
                                           "operatorName": "小木鸟"
                                           }
        self.body_nobillType = {"businessOrderIdList": list,
                                "userId": 6,
                                "operatorName": "小木鸟"
                                }
        self.body_nooperatorName = {"businessOrderIdList": list,
                                    "billType": 1,
                                    "userId": 6
                                    }
        self.header = {"content-type": "application/json"}
예제 #3
0
    def setUp(self):
        self.base_url = "http://10.0.4.66:61020/api/factoring/store/operation/auditAcceptance"
        self.case_name = " "
        self.a = SqlExecution ()
        i = self.a.get_value (
            "SELECT t.`store_id` FROM `t_enterprise_verification_info` t WHERE t.`audit_status`=0 AND t.`sys_flag`=0 AND t.`status`=2")
        print(i)
        self.body_data = {"storeId": i,
                          "userId": 6,
                          "operatorName": "小木鸟",
                          "auditRemark": "自动化测试审核通过"
                          }
        self.body_nodata = {
                          "userId": 6,
                          "operatorName": "小木鸟",
                          "auditRemark": "自动化测试审核通过"
                          }

        self.body_nouserId = {"storeId": i,
            "operatorName": "小木鸟",
            "auditRemark": "自动化测试审核通过"
        }
예제 #4
0
파일: pay_test.py 프로젝트: slp520/AutoTest
    def setUp(self):

        # 获取当前待生成还款单的请用单号
        self.a = SqlExecution()
        i = self.a.get_value(
            "SELECT t.`payment_id` FROM `fdd_finance_operation_server`.`t_payment` t  WHERE  t.payment_status=0 AND t.`fee_type`=1;"
        )
        self.body_data = {
            "paymentId": str(i),
            "userId": 6,
            "userName": "******",
            "paymentChannel": 90,
            "paymentType": 1,
            "paymentMethod": 1,
            "paymentAccount": "12323213",
            "paymentAccountName": "小木鸟银行",
            "paymentBank": "小木鸟支行",
            "referenceNo": "12321321123"
        }
        paymentId = i
        self.base_url = "http://10.0.4.66:61020/api/payments/" + str(
            paymentId) + "/payAction"
        self.case_name = ""
예제 #5
0
    def setUp(self):
        self.base_url = "http://10.0.4.66:61020/api/factoring/payment/apply/audit/acceptance"
        self.case_name = " "
        self.a = SqlExecution()
        i = self.a.get_value("SELECT  t.`principal_interest_biz_bill_no` FROM  `t_loan_order` t  "
                 "LEFT JOIN `t_loan_order_payment_apply_bill` t1    "
                 "ON t.`business_order_id` = t1.`business_order_id` "
                 "WHERE t.`status` = 9  "
                 "AND t.`audit_status` !=2 "
                 "AND t1.`sys_flag`=0 "
                 "AND t.`principal_interest_biz_bill_no` IS NOT NULL "
                 "GROUP BY t.`principal_interest_biz_bill_no`;")

        self.body_data = {"bizBillNo": i,
                          "auditStatus": 3,
                          "userId": 6,
                          "operatorName": "小木鸟"
                          }

        self.body_wrong_data = {"bizBillNo": 0,
                          "auditStatus": 3,
                          "userId": 6,
                          "operatorName": "小木鸟"
                          }