Ejemplo n.º 1
0
 def test_openMonthTicketBill(self, userLogin, send_data, expect):
     """用自定义月票类型开通月票"""
     re = MonthTicketBill(userLogin).openMonthTicketBill(
         send_data['carNum'], send_data['ticketTypeName'],
         send_data['timeperiodListStr'])
     result = re
     Assertions().assert_in_text(result, expect["openMonthTicketBillMsg"])
Ejemplo n.º 2
0
 def test_ticketBillResync(self, userLogin, send_data, expect):
     """月票订单重新同步"""
     re = MonthTicketBill(userLogin).resyncMonthTicketBill(
         send_data['parkName'], send_data['carNum'])
     result = re
     Assertions().assert_text(result['status'],
                              expect["ticketBillResyncMsg"])
Ejemplo n.º 3
0
 def test_renewMonthTicketBill(self, userLogin, send_data, expect):
     """月票续约"""
     re = MonthTicketBill(userLogin).renewMonthTicketBill(
         send_data['parkName'], send_data['carNum'], send_data['status'],
         send_data['startData'])
     result = re
     Assertions().assert_in_text(result, expect["renewMonthTicketBillMsg"])
Ejemplo n.º 4
0
 def test_batchOpenMonthTicketBill(self, userLogin, send_data, expect):
     """批量开通月票"""
     re = MonthTicketBill(userLogin).batchOpenMonthTicketBill(
         send_data['parkName'], send_data['ticketTypeName'],
         send_data['carNum'])
     result = re['success']
     Assertions().assert_in_text(result,
                                 expect["batchOpenMonthTicketBillMsg"])
Ejemplo n.º 5
0
 def test_checkMonthTicketBillList(self, userLogin, send_data, expect):
     """查看到导入的月票"""
     re = MonthTicketBill(userLogin).getMonthTicketBillList(
         send_data['parkName'],
         send_data['carNum'],
         combinedStatus=send_data['combinedStatus'])
     result = re
     Assertions().assert_in_text(result,
                                 expect["checkMonthTicketBillListMsg"])
Ejemplo n.º 6
0
 def test_checkTicketBillUpdateRecord(self, userLogin, send_data, expect):
     """查看月票操作日志是否修改"""
     re = MonthTicketBill(userLogin).getListBillUpdateRecord(send_data['parkName'], send_data['carNum'])
     result = re
     Assertions().assert_in_text(result, expect["checkTicketBillUpdateRecordMsg"])
Ejemplo n.º 7
0
 def test_editMonthTicketBill(self, userLogin, send_data, expect):
     """编辑月票订单"""
     re = MonthTicketBill(userLogin).editOpenMonthTicketBill(send_data['parkName'], send_data['carNum'], send_data['editUser'])
     result = re['status']
     Assertions().assert_text(result, expect["editMonthTicketBillMsg"])
Ejemplo n.º 8
0
 def test_openMonthTicketBill(self, userLogin, send_data, expect):
     """用自定义月票类型开通月票,不能查到该月票进行开通"""
     re = MonthTicketBill(userLogin).getValidCofigList()
     result = re
     Assertions().assert_not_in_text(result, expect["openMonthTicketBillMsg"])
Ejemplo n.º 9
0
 def test_refundMonthTicket(self,userLogin,send_data,expect):
     re = MonthTicketBill(userLogin).refundMonthTicketBill(send_data["parkName"], send_data["carNum"], send_data['refundValue'])
     result = re
     Assertions().assert_in_text(result,expect["refundMonthTicketMsg"])