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

Unified Diff: tools/telemetry_auto/examples/login_test.py

Issue 11412238: Proof of concept for running extension API stack through dev tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: tools/telemetry_auto/examples/login_test.py
diff --git a/tools/telemetry_auto/examples/login_test.py b/tools/telemetry_auto/examples/login_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..0847244bef475d542975fa43e87ef73d30147c6d
--- /dev/null
+++ b/tools/telemetry_auto/examples/login_test.py
@@ -0,0 +1,31 @@
+#!/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
+import sys
+
+sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
+sys.path.append(os.path.join(os.path.dirname(__file__),
+ '..', '..', 'telemetry'))
+
+import telemetry
+import telemetry_auto
+
+def Main(args):
+ options = telemetry.BrowserOptions()
+ parser = options.CreateParser('telemetry_extension_test.py')
+ options, args = parser.parse_args(args)
+ browser_to_create = telemetry.FindBrowser(options)
+ assert browser_to_create
+ with browser_to_create.Create() as b:
+ with telemetry_auto.OobePage(b) as t:
+ t.LoginUser('test@chromium.com', 'test')
+ # Wait until OOBE page goes away, we are logged in aftet that
+ t.WaitUnitGone()
+
+ print "Done!"
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(Main(sys.argv[1:]))

Powered by Google App Engine
This is Rietveld 408576698