Пример #1
0
 def test_noserialno_new_session(self):
     data = {
         "EventType": "NewSession",
         "ID": "bfea3716-4e77-1b69-4712-87c2cf8403851",
         "AuditFrom": "2020-08-13",
         "AuditTo": "2021-08-13",
         "ProjectName": "Demo Project",
         "ClientID": "6",
         "SessionID": "1"
     }
     newSess = new_session()
     responseNewSess = newSess.post(data)
     self.assertEqual(responseNewSess['statusCode'], 400)
     self.assertEqual(responseNewSess['message'], "provide serialno")
     self.assertEqual(responseNewSess['replyCode'], "Fail")
Пример #2
0
 def Bug_test_success_newSession(self):
     data = {
         "EventType": "NewSession",
         "ID": "bfea3716-4e77-1b69-4712-87c2cf8403851",
         "AuditFrom": "2020-08-13",
         "AuditTo": "2021-08-13",
         "ProjectName": "Demo Project",
         "ClientID": "6",
         "SerialNo": 1,
         "SessionID": "1"
     }
     newSess = new_session()
     responseNewSess = newSess.post(data)
     # response = newSession.post(self,data)
     self.assertEqual(responseNewSess['statusCode'], 200)
     self.assertEqual(responseNewSess['message'], "Success")
     self.assertEqual(responseNewSess['replyCode'], "Success")