| 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:]))
|
|
|