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

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

Issue 386423002: Allow the test bots to easily run the password manager python tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 log_to_console, 464 log_to_console,
465 environment_log_file) 465 environment_log_file)
466 466
467 # Test which care about the save-password prompt need the prompt 467 # Test which care about the save-password prompt need the prompt
468 # to be shown. Automatic password saving results in no prompt. 468 # to be shown. Automatic password saving results in no prompt.
469 run_prompt_tests = not enable_automatic_password_saving 469 run_prompt_tests = not enable_automatic_password_saving
470 470
471 Tests(environment) 471 Tests(environment)
472 472
473 if environment_tested_websites == TypeOfTestedWebsites.ALL_TESTS: 473 if environment_tested_websites == TypeOfTestedWebsites.ALL_TESTS:
474 environment.ALL_TESTS(run_prompt_tests) 474 environment.AllTests(run_prompt_tests)
475 elif environment_tested_websites == TypeOfTestedWebsites.DISABLED_TESTS: 475 elif environment_tested_websites == TypeOfTestedWebsites.DISABLED_TESTS:
476 environment.DISABLED_TESTS(run_prompt_tests) 476 environment.DisabledTests(run_prompt_tests)
477 elif environment_tested_websites == TypeOfTestedWebsites.LIST_OF_TESTS: 477 elif environment_tested_websites == TypeOfTestedWebsites.LIST_OF_TESTS:
478 environment.Test(tests, run_prompt_tests) 478 environment.Test(tests, run_prompt_tests)
479 elif environment_tested_websites == TypeOfTestedWebsites.ENABLED_TESTS: 479 elif environment_tested_websites == TypeOfTestedWebsites.ENABLED_TESTS:
480 environment.WorkingTests(run_prompt_tests) 480 environment.WorkingTests(run_prompt_tests)
481 else: 481 else:
482 raise Exception("Error: |environment_tested_websites| has to be one of the" 482 raise Exception("Error: |environment_tested_websites| has to be one of the"
483 "TypeOfTestedWebsites values") 483 "TypeOfTestedWebsites values")
484 484
485 485
486 environment.Quit() 486 environment.Quit()
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 args.profile_path[0], 569 args.profile_path[0],
570 passwords_path, 570 passwords_path,
571 True, 571 True,
572 numeric_level, 572 numeric_level,
573 args.log_screen, 573 args.log_screen,
574 log_file, 574 log_file,
575 tested_websites, 575 tested_websites,
576 args.tests) 576 args.tests)
577 577
578 saveResults(tests_results, save_path) 578 saveResults(tests_results, save_path)
OLDNEW
« no previous file with comments | « components/test/data/password_manager/run_tests.py ('k') | components/test/data/password_manager/websitetest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698