Exemplo n.º 1
0
 def test_checkCarIn(self, sentryLogin, send_data, expect):
     """岗亭端登记放入"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carInHandleType'],
         send_data['carIn_jobId'])
     result = re
     Assertions().assert_in_text(result, expect["checkCarInMsg"])
Exemplo n.º 2
0
 def test_sentryPay(self,sentryLogin,send_data,expect):
     """岗亭收费处收费-查看车辆离场信息"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(send_data['carNum'],send_data['carOutHandleType'],send_data['carOut_jobId'])
     result = re
     Assertions().assert_in_text(result['screen'], expect['outscreen'])
     Assertions().assert_in_text(result['voice'], expect['outvoice'])
     Assertions().assert_in_text(result['open_gate'], expect['outOpen_gate'])
Exemplo n.º 3
0
 def test_sentryPay(self, sentryLogin, send_data, expect):
     """岗亭端缴费"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data["newCarNum"], send_data['carOutHandleType'],
         '${mytest.carOut_jobId}')
     result = re
     Assertions().assert_in_text(result, expect["sentryPayMessage"])
Exemplo n.º 4
0
 def test_adjustCarNum(self, sentryLogin, send_data, expect):
     """在岗亭收费处在场车辆里面校正车牌"""
     re = CarInOutHandle(sentryLogin).patchRecord(send_data['carNum'],
                                                  send_data['parkName'],
                                                  send_data['adjustCarNum'])
     result = re
     Assertions().assert_text(result, "")
Exemplo n.º 5
0
 def test_sentryCheckOutAbnormal(self, sentryLogin, send_data, expect):
     """岗亭异常放行-查看车辆离场信息"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(send_data['carNum'],send_data['carOutHandleType'],send_data['carOut_jobId'])
     result = re
     Assertions().assert_in_text(result['screen'], expect['checkCarOutScreen'])
     Assertions().assert_in_text(result['voice'], expect['checkCarOutVoice'])
     Assertions().assert_in_text(result['open_gate'], expect['checkCarOutOpenGate'])
Exemplo n.º 6
0
 def test_matchCarNumByhuman(self, sentryLogin, send_data, expect):
     """人工匹配车牌"""
     re = CarInOutHandle(sentryLogin).matchCarNum(send_data['carNum'],
                                                  send_data['matchCarNum'])
     result = re
     Assertions().assert_in_text(result['leaveCarNo'],
                                 expect["matchCarNumMessage"])
Exemplo n.º 7
0
 def test_sentryPay(self, sentryLogin, send_data, expect):
     """收费放行"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carHandleType'],
         '${mytest.carOut_jobId}')
     result = re
     Assertions().assert_in_text(result, expect["sentryPayMsg"])
Exemplo n.º 8
0
 def test_sentryPay(self, sentryLogin, send_data, expect):
     """岗亭收费处收费-查看车辆离场信息"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carOutHandleType'],
         '${mytest.carOut_jobId}')
     result = re
     Assertions().assert_in_text(result['screen'], expect['sentryPayMsg'])
Exemplo n.º 9
0
 def test_checkMessageOut(self, sentryLogin, send_data, expect):
     """岗亭端登记放行"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carOutHandleType'],
         '${mytest.carOut_jobId}')
     result = re
     Assertions().assert_in_text(result, expect["checkMessageOutMsg"])
Exemplo n.º 10
0
 def test_checkCarOut(self, sentryLogin, send_data, expect):
     """岗亭端收费放出"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carOutHandleType'],
         send_data['carOut_jobId'])
     result = re
     Assertions().assert_in_text(result, expect["checkCarOutMessage"])
Exemplo n.º 11
0
 def test_sentryCheckIn(self, sentryLogin, send_data, expect):
     """车辆B登记放行"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNumB'], send_data['carInHandleType'],
         '${mytest.carIn_jobId}')
     result = re
     Assertions().assert_in_text(result['screen'],
                                 expect["sentryCheckInMsg"])
Exemplo n.º 12
0
 def test_sentryPaty(self, sentryLogin, send_data, expect):
     """岗亭端收费放行"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carOutHandleType'],
         send_data['carOut_jobId'])
     result = re
     Assertions().assert_in_text(result['screen'],
                                 expect['checkCarOutScreen'])
Exemplo n.º 13
0
 def test_recordOut(self, sentryLogin, send_data, expect):
     """在pc端查看离场记录"""
     re = CarInOutHandle(sentryLogin).getCarOutRecord(
         send_data['carNum'], send_data['parkName'])
     result = re[0]
     Assertions().assert_text(result['carCode'], expect['recordOutCarNum'])
     Assertions().assert_in_text(result['payVal'],
                                 expect['recordOutPayVal'])
Exemplo n.º 14
0
 def test_sentryCheckOutCarA(self, sentryLogin, send_data, expect):
     """岗亭端确认放行"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNumA'], send_data['carOutHandleType'],
         '${mytest.carOut_jobId}')
     result = re
     Assertions().assert_in_text(result['screen'],
                                 expect["sentryCheckCarOutHandleA"])
Exemplo n.º 15
0
 def test_adjustCarInNum(self, sentryLogin, send_data, expect):
     """校正进场车辆"""
     re = CarInOutHandle(sentryLogin).adjustCarNum(
         send_data['carNum'], send_data['adjustCarNum'],
         send_data['adjustCarType'])
     result = re
     Assertions().assert_in_text(result['carNo'], expect["adjustCarNum"])
     Assertions().assert_in_text(result['carSizeTypeInt'],
                                 expect["adjustCarType"])
Exemplo n.º 16
0
 def test_checkHandleOutHistoryMsg(self, sentryLogin, send_data, expect):
     """岗亭端查看单条记录的历史消息详情"""
     re = CarInOutHandle(sentryLogin).getHandleHistoryMsg()
     result = re[0]["content"]
     Assertions().assert_text(result["leaveCarNo"],
                              expect["handleCarOutHistoryCarNo"])
     Assertions().assert_text(result["reason"],
                              expect["handleCarOutHistoryReason"])
     Assertions().assert_text(result["abName"],
                              expect["handleCarOutHistoryAbName"])
Exemplo n.º 17
0
 def test_checkCarIn(self, sentryLogin, send_data, expect):
     """岗亭端登记放入,查看车辆进场屏显,声音,开闸信息"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['inType'], send_data['carIn_jobId'])
     result = re
     Assertions().assert_in_text(result['voice'], expect["checkCarInVoice"])
     Assertions().assert_in_text(result['open_gate'],
                                 expect["checkCarInIsOpenGate"])
     Assertions().assert_in_text(result['screen'],
                                 expect["checkCarInScreen"])
Exemplo n.º 18
0
 def test_checkCarIn(self, sentryLogin, send_data, expect):
     """岗亭端登记放行-看校正后进场车辆屏显语音开闸"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['adjustCarNum'], send_data['carInHandleType'],
         send_data['carIn_jobId'])
     result = re
     Assertions().assert_in_text(result['screen'],
                                 expect["checkCarInScreen"])
     Assertions().assert_in_text(result['voice'], expect["checkCarInVoice"])
     Assertions().assert_in_text(result['open_gate'],
                                 expect["checkCarInOpenGate"])
Exemplo n.º 19
0
 def test_checkCarOut(self, sentryLogin, send_data, expect):
     """岗亭端登记放出"""
     re = CarInOutHandle(sentryLogin).carInOutHandle(
         send_data['carNum'], send_data['carOutHandleType'],
         send_data['carOut_jobId'])
     result = re
     Assertions().assert_in_text(result['voice'],
                                 expect["checkCarOutVoice"])
     Assertions().assert_in_text(result['open_gate'],
                                 expect["checkCarOutIsOpenGate"])
     Assertions().assert_in_text(result['screen'],
                                 expect["checkCarOutScreen"])
Exemplo n.º 20
0
 def test_recordIn(self, sentryLogin, send_data, expect):
     """在pc端查看进场记录"""
     re = CarInOutHandle(sentryLogin).getCarInRecord(
         send_data['carNum'], send_data['parkName'])
     result = re
     Assertions().assert_in_text(result, expect['carNum'])
Exemplo n.º 21
0
 def test_recordIn2(self, sentryLogin, send_data, expect):
     """在岗亭收费处在场车辆里面查看校正后车牌"""
     re = CarInOutHandle(sentryLogin).getCarInRecord(
         send_data['adjustCarNum'], send_data['parkName'])
     result = re
     Assertions().assert_in_text(result, expect['adjustCarNum'])
Exemplo n.º 22
0
 def test_adjustCarOutNum(self, sentryLogin, send_data, expect):
     """校正出场车辆"""
     re = CarInOutHandle(sentryLogin).adjustCarNum(
         send_data['carNum'], send_data['adjustCarNum'])
     result = re
     Assertions().assert_in_text(result, expect["adjustCarOutNumMsg"])