Exemplo n.º 1
0
 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'])
Exemplo n.º 2
0
 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"])
Exemplo n.º 3
0
 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"])
Exemplo n.º 4
0
 def test_centralTicket(self, centralTollLogin, send_data, expect):
     """中央收费处-操作纸质票"""
     re = PresentCarHandle(centralTollLogin).centralTicket(
         send_data['carNum'])
     result = re
     Assertions().assert_in_text(result, '')
Exemplo n.º 5
0
 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"])
Exemplo n.º 6
0
 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"])
Exemplo n.º 7
0
 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, '')