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"])
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'])
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"])
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, "")
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'])
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"])
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"])
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'])
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"])
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"])
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"])
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'])
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'])
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"])
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"])
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"])
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"])
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"])
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"])
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'])
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'])
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"])