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

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

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 8 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
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 """Basic tests for Chromoting it2me."""
7
8 import chromoting_base
9 import pyauto
10
11
12 class IT2MeBasic(chromoting_base.ChromotingBase):
13 """Drives it2me basic test cases."""
14
15 def setUp(self):
16 """Set up for it2me basic test."""
17 # Disable test on vista and xp until the failure is figured
18 if self.IsWinVista() or self.IsWinXP():
19 return
20
21 pyauto.PyUITest.setUp(self)
22
23 webapp = self.InstallExtension(self.GetWebappPath())
24 self.LaunchApp(webapp)
25 self.Authenticate()
26
27 if self.client_local:
28 self.client.LaunchApp(webapp)
29
30 def testIT2MeBasic(self):
31 """Verify that we can start and disconnect a Chromoting it2me session."""
32 # Disable test on vista and xp until the failure is figured
33 if self.IsWinVista() or self.IsWinXP():
34 return
35
36 access_code = self.host.Share()
37 self.assertTrue(access_code,
38 msg='Host attempted to share, but it failed. '
39 'No access code was found.')
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
47 if __name__ == '__main__':
48 chromoting_base.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/chromoting/chromoting_base.py ('k') | chrome/test/functional/chromoting/me2me_connect.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698