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

Side by Side Diff: components/test/data/password_manager/automated_tests/tests.py

Issue 991283002: [Password manager tests automation] Tests for liveinternet.ru (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Automated tests for many websites""" 6 """Automated tests for many websites"""
7 7
8 import argparse 8 import argparse
9 import logging 9 import logging
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 class Google(WebsiteTest): 49 class Google(WebsiteTest):
50 50
51 def Login(self): 51 def Login(self):
52 self.GoTo("https://accounts.google.com/ServiceLogin?sacu=1&continue=") 52 self.GoTo("https://accounts.google.com/ServiceLogin?sacu=1&continue=")
53 self.FillUsernameInto("#Email") 53 self.FillUsernameInto("#Email")
54 self.FillPasswordInto("#Passwd") 54 self.FillPasswordInto("#Passwd")
55 self.Submit("#Passwd") 55 self.Submit("#Passwd")
56 56
57 57
58 class Liveinternet(WebsiteTest):
59
60 def Login(self):
61 self.GoTo("http://liveinternet.ru/journals.php?s=&action1=login")
62 self.FillUsernameInto("[name='username']")
63 self.FillPasswordInto("[name='password']")
64 self.Submit("[name='password']")
65
66
58 class Linkedin(WebsiteTest): 67 class Linkedin(WebsiteTest):
59 68
60 def Login(self): 69 def Login(self):
61 self.GoTo("https://www.linkedin.com") 70 self.GoTo("https://www.linkedin.com")
62 self.FillUsernameInto("#session_key-login") 71 self.FillUsernameInto("#session_key-login")
63 self.FillPasswordInto("#session_password-login") 72 self.FillPasswordInto("#session_password-login")
64 self.Submit("#session_password-login") 73 self.Submit("#session_password-login")
65 74
66 75
67 class Mailru(WebsiteTest): 76 class Mailru(WebsiteTest):
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 self.ClickIfClickable("[ng-click='login()']") 282 self.ClickIfClickable("[ng-click='login()']")
274 self.Wait(1) 283 self.Wait(1)
275 284
276 285
277 def Tests(environment, tests_to_run=None): 286 def Tests(environment, tests_to_run=None):
278 287
279 working_tests = { 288 working_tests = {
280 "alexa": Alexa("alexa"), 289 "alexa": Alexa("alexa"),
281 "facebook": Facebook("facebook"), 290 "facebook": Facebook("facebook"),
282 "google": Google("google"), 291 "google": Google("google"),
292 "liveinternet": Liveinternet("liveinternet"),
283 "linkedin": Linkedin("linkedin"), 293 "linkedin": Linkedin("linkedin"),
284 "mailru": Mailru("mailru"), 294 "mailru": Mailru("mailru"),
285 "nytimes": Nytimes("nytimes"), 295 "nytimes": Nytimes("nytimes"),
286 "odnoklassniki": Odnoklassniki("odnoklassniki"), 296 "odnoklassniki": Odnoklassniki("odnoklassniki"),
287 "pinterest": Pinterest("pinterest"), 297 "pinterest": Pinterest("pinterest"),
288 "reddit": Reddit("reddit", username_not_auto=True), 298 "reddit": Reddit("reddit", username_not_auto=True),
289 "tumblr": Tumblr("tumblr", username_not_auto=True), 299 "tumblr": Tumblr("tumblr", username_not_auto=True),
290 "twitter": Twitter("twitter"), 300 "twitter": Twitter("twitter"),
291 "wikipedia": Wikipedia("wikipedia", username_not_auto=True), 301 "wikipedia": Wikipedia("wikipedia", username_not_auto=True),
292 "yahoo": Yahoo("yahoo", username_not_auto=True), 302 "yahoo": Yahoo("yahoo", username_not_auto=True),
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 args.profile_path[0], 495 args.profile_path[0],
486 passwords_path, 496 passwords_path,
487 True, 497 True,
488 numeric_level, 498 numeric_level,
489 args.log_screen, 499 args.log_screen,
490 log_file, 500 log_file,
491 tested_websites, 501 tested_websites,
492 args.tests) 502 args.tests)
493 503
494 saveResults(tests_results, save_path) 504 saveResults(tests_results, save_path)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698