Ejemplo n.º 1
0
 def test_intelligenceUploadFile(self, userLogin, send_data, expect):
     """上传盘点表格并-勾选-将未匹配的车辆C补录进场"""
     re = Information(userLogin).intelligenceCheckCarOut(
         send_data['parkName'], send_data['cleanType'],
         send_data['carNumList'])
     result = re['status']
     Assertions().assert_text(result, expect["cleanCarCheckOutMsg"])
Ejemplo n.º 2
0
 def test_checkParkingBillDetail(self, userLogin, send_data, expect):
     """查询收费记录"""
     re = Information(userLogin).getParkingBillDetail(
         send_data['parkName'], send_data['carNum'])
     result = re[0]
     Assertions().assert_in_text(result['parkVipTypeStr'],
                                 expect['checkParkingBillDetailMsg'])
Ejemplo n.º 3
0
 def test_checkPresentCarC(self, userLogin, send_data, expect):
     """在场车辆中查看C车辆,前入场时间为盘点时间"""
     re = Information(userLogin).getPresentCar(send_data['parkName'],
                                               send_data['carNumC'])
     result = re[0]
     Assertions().assert_text(result['checkInTypeStr'],
                              expect['checkPresentCarC'])
Ejemplo n.º 4
0
 def test_checkPresentCarType(self, userLogin, send_data, expect):
     """查看访客车在场类型"""
     re = Information(userLogin).getPresentCar(send_data['parkName'],
                                               send_data['carNum'])
     result = re[0]
     Assertions().assert_text(result['vipType'],
                              expect["checkPresentCarTypeMsg"])
Ejemplo n.º 5
0
 def test_checkParkingBillDetail(self, userLogin, send_data, expect):
     """查看收费流水"""
     re = Information(userLogin).getParkingBillDetail(
         send_data["parkName"], send_data["carNum"])
     result = re
     Assertions().assert_in_text(result,
                                 expect["checkParkingBillDetailMessage"])
Ejemplo n.º 6
0
 def test_presentCar(self, userLogin, send_data, expect):
     """查看在场记录"""
     re = Information(userLogin).getPresentCar(send_data["parkName"],
                                               send_data["carNum"])
     result = re[0]
     Assertions().assert_in_text(result['vipType'],
                                 expect["checkPresentCarTypeMsg"])
Ejemplo n.º 7
0
 def test_checkEmergencyCarOutRecord(self, userLogin, send_data, expect):
     """查看告警进场车辆记录没有非告警车"""
     re = Information(userLogin).getEmergencyCarRecord(
         send_data['parkName'], send_data['carType'], send_data['carNum'])
     result = re
     Assertions().assert_not_in_text(
         result, expect["checkEmergencyCarOutRecordMsg"])
Ejemplo n.º 8
0
 def test_presentCarType(self, userLogin, send_data, expect):
     """查看在场车辆"""
     re = Information(userLogin).getPresentCar(send_data['parkName'],
                                               send_data['carNum'])
     result = re[0]
     Assertions().assert_text(result['enterCarType'],
                              expect["presentCarTypeMsg"])
Ejemplo n.º 9
0
 def test_presentCar(self, userLogin, send_data, expect):
     """查看在场记录"""
     re = Information(userLogin).getPresentCar(send_data["parkName"],
                                               send_data["carNum"])
     result = re
     Assertions().assert_in_text(result, send_data["carNum"])
     Assertions().assert_in_text(result, send_data["ticketName"])
Ejemplo n.º 10
0
 def test_getAbnormalPicCar(self, userLogin, send_data, expect):
     """POMP上查看异常拍照记录"""
     re = Information(userLogin).getAbnormalPicCar(send_data["parkName"],
                                                   send_data["carNum"])
     result = re
     Assertions().assert_in_text(result, expect["getAbnormalPicCarMsg"])
     Assertions().assert_in_text(result["data"]["carCode"],
                                 expect["carNum"])
Ejemplo n.º 11
0
 def test_checkCarLeaveType(self, userLogin, send_data, expect):
     """查看访客车辆离场记录车辆类型"""
     re = Information(userLogin).getCarLeaveHistory(send_data['parkName'],
                                                    send_data['carNum'])
     result = re[0]
     Assertions().assert_text(result['leaveVipTypeStr'],
                              expect["checkCarleaveVipTypeStrMsg"])
     Assertions().assert_text(result['enterVipTypeStr'],
                              expect["checkenterVipTypeStrMsg"])
Ejemplo n.º 12
0
 def test_checkCarInOutHistoryVIPType(self, userLogin, send_data, expect):
     """查看进出场记录中查看到VIP类型"""
     re = Information(userLogin).getCarLeaveHistory(send_data["parkName"],
                                                    send_data["carNum"])
     result = re[0]
     Assertions().assert_in_text(result['enterVipTypeStr'],
                                 expect["checkCarInOutHistoryVIPTypeMsg"])
     Assertions().assert_in_text(result['leaveVipTypeStr'],
                                 expect["checkCarInOutHistoryVIPTypeMsg"])
Ejemplo n.º 13
0
 def test_checkSystemLog(self, userLogin, send_data, expect):
     """查看系统操作日志-对应的是编辑月票的内容"""
     re = Information(userLogin).getSystemLog(send_data['menuLevel'])
     result = re[0]
     Assertions().assert_in_text(result['operationObject'], expect["checkSystemLogMsg"])
Ejemplo n.º 14
0
 def test_carLeaveHistory(self, userLogin, send_data, expect):
     """查看离场记录"""
     re = Information(userLogin).getCarLeaveHistory(send_data["parkName"],
                                                    send_data["carNum"])
     result = re
     Assertions().assert_in_text(result, expect["carLeaveHistoryMessage"])
Ejemplo n.º 15
0
 def test_CarBLeaveHistory(self, userLogin, send_data, expect):
     """查看进出场记录B"""
     re = Information(userLogin).getCarLeaveHistory(send_data["parkName"], send_data["carNumB"])
     result = re[0]
     Assertions().assert_in_text(result['enterVipTypeStr'], expect["carBEnterVipTypeStrMsg"])
     Assertions().assert_in_text(result['leaveVipTypeStr'], expect["carBLeaveVipTypeStrMsg"])
Ejemplo n.º 16
0
 def test_checkAbnormalInCar(self, userLogin, send_data, expect):
     """异常进场中可以查看到该车辆"""
     re = Information(userLogin).getAbnormalInCar(send_data['parkName'], send_data['carNum'])
     result = re
     Assertions().assert_in_text(result, expect["checkAbnormalInCar"])
Ejemplo n.º 17
0
 def test_checkPresentCar(self, userLogin, send_data, expect):
     """在场车辆中查看不到该盘点车辆"""
     re = Information(userLogin).getPresentCar(send_data['parkName'], send_data['carNum'])
     result = re
     Assertions().assert_not_in_text(result, expect["checkPresentCarMsg"])
Ejemplo n.º 18
0
 def test_intelligenceCheckCarOut(self, userLogin, send_data, expect):
     """选择一条进行批量盘点"""
     re = Information(userLogin).intelligenceCheckCarOut(send_data['parkName'])
     result = re['status']
     Assertions().assert_text(result, expect["cleanCarCheckOutMsg"])
Ejemplo n.º 19
0
 def test_parkingBillDetail(self,userLogin,send_data,expect):
     """查看收费记录"""
     re = Information(userLogin).getParkingBillDetail(send_data["parkName"],send_data["carNumB"])
     result = re[0]
     Assertions().assert_in_text(result,expect["parkingBillDetailMsg"])
Ejemplo n.º 20
0
 def test_checkPresentCar(self, userLogin, send_data, expect):
     """在场车辆中查看不到A车辆,能查到B车辆"""
     re = Information(userLogin).getPresentCar(send_data['parkName'])
     result = re
     Assertions().assert_not_in_text(result, expect["checkPresentCarA"])
     Assertions().assert_in_text(result, expect["checkPresentCarB"])
Ejemplo n.º 21
0
 def test_checkAdjustCarOutWaterNum(self, userLogin, send_data, expect):
     """查看校正出场车辆流水"""
     re = Information(userLogin).getAdjustCarWaterNum(
         send_data['adjustCarNum'], send_data['parkName'])
     result = re
     Assertions().assert_in_text(result, expect["adjustCarOutWaterNumMsg"])
Ejemplo n.º 22
0
 def test_getAbnormalInCar(self, userLogin, send_data, expect):
     """查看异常进场记录"""
     re = Information(userLogin).getAbnormalInCar(send_data["parkName"], send_data["carNum"])
     result = re[0]
     Assertions().assert_text(result['carCode'], expect["abnormalInCar"])
     Assertions().assert_text(result['exceptionType'], expect["exceptionType"])