def test_centralPresentCarType(self, centralTollLogin, send_data, expect): """中央查看在场车辆类型""" re = PresentCarHandle(centralTollLogin).centerRecords( send_data['carNum']) result = re[0] Assertions().assert_text(result['carType'], expect['presentCarTypeMsg'])
def test_centralAdditionalRecord(self, centralTollLogin, send_data, expect): """中央-补录车牌""" re = PresentCarHandle(centralTollLogin).additionalRecording( send_data['parkName'], send_data['carNum'], send_data['enterTime']) result = re['status'] Assertions().assert_in_text(result, expect["centralAdditionalRecord"])
def test_checkCentralChargeRecord(self, centralTollLogin, send_data, expect): """中央查询-缴费明细""" re = PresentCarHandle(centralTollLogin).centralChargeRecord( send_data['carNum']) result = re[0] Assertions().assert_in_text(result['realValue'], expect["centralChargeRecordMsg"])
def test_centralTicket(self, centralTollLogin, send_data, expect): """中央收费处-操作纸质票""" re = PresentCarHandle(centralTollLogin).centralTicket( send_data['carNum']) result = re Assertions().assert_in_text(result, '')
def test_checkChargeDetail(self, centralTollLogin, send_data, expect): """中央缴费后-再次查费""" re = PresentCarHandle(centralTollLogin).checkChargeDetail( send_data['carNum']) result = re['payVal'] Assertions().assert_in_text(result, expect["checkChargeMsg"])
def test_centryPay(self, centralTollLogin, send_data, expect): """中央查费-收费""" re = PresentCarHandle(centralTollLogin).centraPay(send_data['carNum']) result = re['parkFee'] Assertions().assert_in_text(result, expect["centryPayMsg"])
def test_centralAdjustCarType(self, centralTollLogin, send_data, expect): """中央-校正在场车牌""" re = PresentCarHandle(centralTollLogin).centralRecordsPath( send_data['carNum'], carType=send_data['adjustCarType']) result = re Assertions().assert_in_text(result, '')