示例#1
0
 def test_modifyToll(self, userLogin, send_data, expect):
     """修改收费员"""
     re = TollCollection(userLogin).modify_tollCollection(send_data['userId'],send_data['editUserId'],send_data['editPwd'])
     self.save_data('editUserId',send_data['editUserId'])
     self.save_data('editPwd', send_data['editPwd'])
     result = re['status']
     Assertions().assert_text(result, expect['status'])
示例#2
0
 def test_addToll(self,userLogin, send_data, expect):
     """增加收费员"""
     re = TollCollection(userLogin).add_tollCollection(send_data['userId'], send_data['pwd'], send_data['role'])
     self.save_data('userId', send_data['userId'])
     self.save_data('pwd', send_data['pwd'])
     result = re['status']
     Assertions().assert_text(result, expect['status'])
示例#3
0
 def test_unfreezeToll(self, userLogin, send_data, expect):
     """开启收费员"""
     re = TollCollection(userLogin).unfreeze_tollCollection(send_data['userId'])
     result = re['status']
     Assertions().assert_text(result, expect['status'])
示例#4
0
 def test_bindUserPark(self,userLogin, send_data, expect):
     """绑定用户停车场"""
     re = TollCollection(userLogin).bindUserPark(send_data['parkName'], send_data['userId'])
     result = re['status']
     Assertions().assert_text(result, expect['status'])
示例#5
0
 def test_checkDelToll(self, userLogin, send_data, expect):
     """查看已删除收费员是否已删除"""
     re = TollCollection(userLogin).getAllTollCollection()
     result = re
     Assertions().assert_not_in_text(result, expect['isDelToll'])
示例#6
0
 def test_delToll(self, userLogin, send_data, expect):
     """删除收费员"""
     re = TollCollection(userLogin).del_tollCollection(send_data['editUserId'])
     status = re['status']
     Assertions().assert_text(status, expect['status'])