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

Unified Diff: chrome/test/functional/test_utils.py

Issue 10834239: Configuration file for Chrome perf and endure tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with original/master Created 8 years, 4 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: chrome/test/functional/test_utils.py
diff --git a/chrome/test/functional/test_utils.py b/chrome/test/functional/test_utils.py
index 71c6798ac4380ce4c8831bffac4706310b7113cc..6cee67b97346ed3125d7efe34596f415430f530e 100644
--- a/chrome/test/functional/test_utils.py
+++ b/chrome/test/functional/test_utils.py
@@ -75,7 +75,8 @@ def RemoveDownloadedTestFile(test, file_name):
pyauto_utils.RemovePath(downloaded_pkg + '.crdownload')
-def GoogleAccountsLogin(test, username, password, tab_index=0, windex=0):
+def GoogleAccountsLogin(test, username, password,
+ tab_index=0, windex=0, url=None):
"""Log into Google Accounts.
Attempts to login to Google by entering the username/password into the google
@@ -87,8 +88,10 @@ def GoogleAccountsLogin(test, username, password, tab_index=0, windex=0):
password: users login password input.
tab_index: The tab index, default is 0.
windex: The window index, default is 0.
+ url: an alternative url for login page, if None, original one will be used.
"""
- test.NavigateToURL('https://accounts.google.com/', windex, tab_index)
+ url = url or 'https://accounts.google.com/'
+ test.NavigateToURL(url, windex, tab_index)
email_id = 'document.getElementById("Email").value = "%s"; ' \
'window.domAutomationController.send("done")' % username
password = 'document.getElementById("Passwd").value = "%s"; ' \
« chrome/test/functional/perf_endure.py ('K') | « chrome/test/functional/perf_endure.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698