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

Unified Diff: client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py

Issue 1534001: switch to autox.py and robustify login/logout code (Closed)
Patch Set: merge with head Created 10 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 side-by-side diff with in-line comments
Download patch
Index: client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
diff --git a/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py b/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
index 594c206ec449e3fcc9e28850e9f3b419638d200c..ce4b2f3d737a4fe97657ed1dfdc2b79f6613d43d 100644
--- a/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
+++ b/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
@@ -3,28 +3,19 @@
# found in the LICENSE file.
import os, time
-from autotest_lib.client.bin import site_login, test
+from autotest_lib.client.bin import site_ui_test, site_login
from autotest_lib.client.common_lib import error
-class desktopui_FailedLogin(test.test):
+class desktopui_FailedLogin(site_ui_test.UITest):
version = 1
- def setup(self):
- site_login.setup_autox(self)
+ auto_login = False
- def run_once(self, script):
- # Can't test login while logged in, so logout.
- if site_login.logged_in():
- site_login.attempt_logout()
-
- # Test account information embedded into json file.
+ def run_once(self):
# TODO(cmasone): find better way to determine login has failed.
try:
- site_login.attempt_login(self, script)
+ self.login('bogus@bogus.gmail.com', 'bogus')
except site_login.TimeoutError:
pass
else:
raise error.TestFail('Should not have logged in')
-
- # Re-set to a good state
- site_login.nuke_login_manager()

Powered by Google App Engine
This is Rietveld 408576698