Пример #1
0
 def test_checkVemsEditMonthBillInfo(self, openYDTLogin, send_data, expect):
     """查看修改后月票订单的信息"""
     re = OpenYDTReq(openYDTLogin).getMonthCard(send_data['parkCode'],
                                                send_data['carNum'])
     result = re[0]
     self.save_data("vemsTicketName", result['monthCardName'])
     Assertions().assert_in_text(result,
                                 expect["checkVemsEditMonthBillInfo"])
Пример #2
0
 def test_payYdto(self, openYDTLogin, send_data, expect):
     """通过开放平台缴费"""
     re = OpenYDTReq(openYDTLogin).payParkFee(send_data["parkCode"],
                                              send_data['carNum'])
     result = re
     Assertions().assert_in_text(result, expect["payYdtoMsg"])
Пример #3
0
 def test_mockCarInB(self, openYDTLogin, send_data, expect):
     """模拟车辆B进场"""
     re = OpenYDTReq(openYDTLogin).carInOut(send_data["parkCode"],
                                            send_data["carNumB"], 0)
     result = re
     Assertions().assert_in_text(result, expect["mockCarInMessage"])
Пример #4
0
 def test_mockCarOut(self, openYDTLogin, send_data, expect):
     """模拟车辆出场"""
     re = OpenYDTReq(openYDTLogin).carInOut(send_data["parkCode"],
                                            send_data["carNum"], 1)
     result = re['message']
     Assertions().assert_text(result, expect["mockCarOutMessage"])
Пример #5
0
 def test_payParkFee(self, openYDTLogin, send_data, expect):
     """离场缴费"""
     re = OpenYDTReq(openYDTLogin).payParkFee(send_data['parkCode'],
                                              send_data["carNum"])
     result = re
     Assertions().assert_in_text(result, expect["payParkFeeMsg"])
Пример #6
0
 def test_mockCarIn(self, openYDTLogin, send_data, expect):
     """模拟车辆进场"""
     re = OpenYDTReq(openYDTLogin).carInOut(send_data['parkCode'],
                                            send_data["carNum"], 0)
     result = re
     Assertions().assert_text(result['message'], expect["mockCarInMsg"])
Пример #7
0
 def test_checkVemsTicketType(self, openYDTLogin, send_data, expect):
     """查看Vems同步后月票类型"""
     re = OpenYDTReq(openYDTLogin).getVipType(send_data['parkCode'],
                                              send_data['customVipName'])
     result = re[0]
     Assertions().assert_in_text(result, expect["checkVemsTicketType"])