Exemplo n.º 1
0
 def testUploadTest(self):
     client = AppurifyClient(access_token="authenticated", test_src=__file__, test_type="uiautomation", test_src_type='raw')
     test_id = client.uploadTest('test_app_id')
     self.assertEqual(test_id, "test_test_id", "Should properly fetch web robot for app id")
Exemplo n.º 2
0
 def testUploadTestNoSourceError(self):
     client = AppurifyClient(access_token="authenticated", test_type='uiautomation')
     with self.assertRaises(AppurifyClientError):
         app_id = client.uploadTest('test_app_id')
Exemplo n.º 3
0
 def testUploadTestNoSource(self):
     client = AppurifyClient(access_token="authenticated", test_type='ios_webrobot')
     app_id = client.uploadTest('test_app_id')
     self.assertEqual(app_id, "test_test_id", "Should properly fetch web robot for app id")