Beispiel #1
0
 def test_addCendutySeat(self, userLogin, send_data, expect):
     """新增远程值班帐户"""
     re = CendutySeat(userLogin).addCendutySeat(send_data['userId'], send_data['userName'], send_data['pwd'])
     self.save_data('userId',send_data['userId'])
     self.save_data('pwd',send_data['pwd'])
     result = re['status']
     Assertions().assert_text(result, expect['addCendutySeatMsg'])
Beispiel #2
0
 def test_checkDeleteCendutySeatList(self, userLogin, send_data, expect):
     """查看远程值班帐户"""
     re = CendutySeat(userLogin).cendutySeatList(send_data['editUserName'])
     result = re
     Assertions().assert_not_in_text(result, expect['checkDeleteCendutySeatMsg'])
Beispiel #3
0
 def test_deleteCendutySeat(self, userLogin, send_data, expect):
     """删除远程值班帐户"""
     re = CendutySeat(userLogin).deleteCendutySeat(send_data['userId'])
     result = re['status']
     Assertions().assert_text(result, expect['deleteCendutySeatMsg'])
Beispiel #4
0
 def test_updateCendutySeat(self, userLogin, send_data, expect):
     """修改远程值班帐户"""
     re = CendutySeat(userLogin).updateCendutySeat(send_data['userId'], send_data['editUserName'])
     result = re['status']
     Assertions().assert_text(result, expect['updateCendutySeatMsg'])