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