Exemplo n.º 1
0
 def test_ReserveSuccess_emptycarFullName(self):
     """测试添加邀约记录接口,添加邀约记录成功,carFullName为空,不校验,@author:liusai"""
     ordNo = getOrderNumber(self)
     result = helpReserve("001553305", [
         "https://images-qa.kanche.com/merchant/basic_inf/d6082bc38577c4b6a5b7acaaf8d61b5b.jpg"
     ], "5", "TX156974125643811", "安那般那呐喊给您寄了跟进记录"
                          "", "9", "哈哈哈我是地址", ordNo, "2019-10-13 14:30:38")
     self.assertEqual(result['code'], 200)
Exemplo n.º 2
0
 def test_ReserveFail_emptysaleOrderNo(self):
     """测试添加邀约记录接口,添加邀约记录失败,saleOrderNo为空,@author:liusai"""
     result = helpReserve("001553305", [
         "https://images-qa.kanche.com/merchant/basic_inf/d6082bc38577c4b6a5b7acaaf8d61b5b.jpg"
     ], "5", "TX156974125643811", "安那般那呐喊给您寄了跟进记录"
                          "奥迪 RS 3 2017款 2.5T Limousine", "9", "哈哈哈我是地址",
                          "", "2019-10-13 14:30:38")
     self.assertIn("销售工单单号信息不能为空", result['message'])
Exemplo n.º 3
0
 def test_ReserveSuccess(self):
     """测试添加邀约记录接口,添加邀约记录成功,@author:liusai"""
     ordNo = getOrderNumber(self)
     result = helpReserve("001553305", [
         "https://images-qa.kanche.com/merchant/basic_inf/d6082bc38577c4b6a5b7acaaf8d61b5b.jpg"
     ], "5", "TX156974125643811", "安那般那呐喊给您寄了跟进记录"
                          "奥迪 RS 3 2017款 2.5T Limousine", "9", "哈哈哈我是地址",
                          ordNo, "2019-10-13 14:30:38")
     print(result)
Exemplo n.º 4
0
 def test_ReserveSuccess_emptyfollowRecord(self):
     """测试添加邀约记录接口,添加邀约记录成功,followRecord为空,不校验,@author:liusai"""
     ordNo = getOrderNumber(self)
     result = helpReserve("001553305", [
         "https://images-qa.kanche.com/merchant/basic_inf/d6082bc38577c4b6a5b7acaaf8d61b5b.jpg"
     ], "5", "TX156974125643811", ""
                          "奥迪 RS 3 2017款 2.5T Limousine", "9", "哈哈哈我是地址",
                          ordNo, "2019-10-13 14:30:38")
     self.assertEqual(result['code'], 200)
Exemplo n.º 5
0
    def test_ReserveFail_emptyPhoto(self):
        """测试添加邀约记录接口,添加邀约记录失败,followRecordPhotos为空,@author:liusai"""

        ordNo = getOrderNumber(self)
        result = helpReserve("001553305", "", "5", "TX156974125643811",
                             "安那般那呐喊给您寄了跟进记录"
                             "奥迪 RS 3 2017款 2.5T Limousine", "9", "哈哈哈我是地址",
                             ordNo, "2019-10-13 14:30:38")
        self.assertEqual(result['error'], "Bad Request")
Exemplo n.º 6
0
 def test_ReserveFail_unusualreserveTime(self):
     """测试添加邀约记录接口,添加邀约记录失败,reserveTime异常,@author:liusai"""
     ordNo = getOrderNumber(self)
     result = helpReserve("001553305", [
         "https://images-qa.kanche.com/merchant/basic_inf/d6082bc38577c4b6a5b7acaaf8d61b5b.jpg"
     ], "5", "TX156974125643811", "安那般那呐喊给您寄了跟进记录"
                          "奥迪 RS 3 2017款 2.5T Limousine", "9", "哈哈哈我是地址",
                          ordNo, "dddeee")
     print(result)
     self.assertEqual(result['message'], "添加预约记录异常")