Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/test/functional/chromoting/it2me_basic.py

Issue 10821015: Initial checkin of the me2me pyauto automation: (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7
8 # Add chrome/test/functional to sys.path for importing pyauto_functional
9 os.sys.path.insert(
10 0,
11 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
12
13 import pyauto_functional # Must come before chromoting and pyauto.
14 import chromoting
15 import pyauto
16
17 import chromoting_base
18
19
20 class IT2MeBasic(chromoting_base.ChromotingBase):
21 """Basic tests for Chromoting it2me."""
22
23 def setUp(self):
24 """Set up for it2me basic test."""
25 super(IT2MeBasic, self).setUp()
26
27 self._app = self.InstallExtension(self.GetWebappPath())
28 self.LaunchApp(self._app)
29 self.Authenticate()
30
31 def testIT2MeBasic(self):
32 """Verify that we can start and disconnect a Chromoting it2me session."""
33 access_code = self.host.Share()
34 self.assertTrue(access_code,
35 msg='Host attempted to share, but it failed. '
36 'No access code was found.')
37
38 if self.client_local:
39 self.client.LaunchApp(self._app)
40
41 self.client.Connect(access_code, self.client_tab_index)
42
43 self.host.CancelShare()
44 self.client.Disconnect(self.client_tab_index)
45
46 if __name__ == '__main__':
47 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698