Chromium Code Reviews| Index: chrome/test/functional/chromoting/it2me_basic.py |
| =================================================================== |
| --- chrome/test/functional/chromoting/it2me_basic.py (revision 0) |
| +++ chrome/test/functional/chromoting/it2me_basic.py (revision 0) |
| @@ -0,0 +1,43 @@ |
| +#!/usr/bin/env python |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import os |
| + |
| +os.sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
|
simonmorris
2012/07/30 22:44:24
Add a comment explaining this line.
yihongg1
2012/08/03 00:40:06
Done.
|
| + |
| +import pyauto_functional # Must come before chromoting and pyauto. |
| +import chromoting |
| +import pyauto |
| + |
| +import chromoting_base |
| + |
| +class IT2MeBasic(chromoting_base.ChromotingBase): |
| + """Basic tests for Chromoting it2me.""" |
| + |
| + def setUp(self): |
| + """Set up for it2me basic test.""" |
| + super(IT2MeBasic, self).setUp() |
| + |
| + self._app = self.InstallExtension(self.GetWebappPath()) |
| + self.LaunchApp(self._app) |
| + self.Authenticate() |
| + |
| + def testIT2MeBasic(self): |
| + """Verify that we can start and disconnect from a Chromoting it2me session.""" |
| + access_code = self.host.Share() |
| + self.assertTrue(access_code, |
| + msg='Host attempted to share, but it failed. ' |
| + 'No access code was found.') |
| + |
| + if self.client_local: |
| + self.client.LaunchApp(self._app) |
| + |
| + self.client.Connect(access_code, self.client_tab_index) |
| + |
| + self.host.CancelShare() |
| + self.client.Disconnect(self.client_tab_index) |
| + |
| +if __name__ == '__main__': |
| + pyauto_functional.Main() |
| Property changes on: chrome/test/functional/chromoting/it2me_basic.py |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |