summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib
Commit message (Collapse)AuthorAgeFilesLines
* Be lenient with exclusions in PYAUTO_TESTS filenirnimesh@chromium.org2010-12-171-1/+4
| | | | | | | | | | | If you try to exclude a test that hasn't been included, pyauto will complain and it won't run anything. Sometimes it's harder to add exclusions per platform, and it'd be easier to ignore tests that need to be excluded but haven't been included. Review URL: http://codereview.chromium.org/5913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69494 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto flakiness by waiting for notification that the renderer process'kkania@chromium.org2010-12-141-1/+22
| | | | | | | | | | | termination has been noticed by the browser before reloading the associated tab. BUG=64708 TEST=none Review URL: http://codereview.chromium.org/5755003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69154 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto tests for the New Tab page.kkania@chromium.org2010-12-043-0/+15
| | | | | | | | | BUG=63816 TEST=none Review URL: http://codereview.chromium.org/5255005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68268 0039d316-1c4b-4281-b951-d872f2087c98
* Change in fetching the builds for linuxnirnimesh@chromium.org2010-12-031-3/+6
| | | | | | | | | | | This change accommodates fetching 32bit and 64bit binaries for linux. BUG=none TEST=none Review URL: http://codereview.chromium.org/5608002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68235 0039d316-1c4b-4281-b951-d872f2087c98
* Fix imports tests on win.nirnimesh@chromium.org2010-11-251-1/+2
| | | | | | | | Need to pass abs path to .zip file Review URL: http://codereview.chromium.org/5385001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67364 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto fetch script to fetch .pyd instead of .dll on winnirnimesh@chromium.org2010-11-241-2/+2
| | | | | | Review URL: http://codereview.chromium.org/5342005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67193 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto hook for getting and manipulating the data underneath the NTP.kkania@chromium.org2010-11-192-0/+190
| | | | | | | | | BUG=49113 TEST=none Review URL: http://codereview.chromium.org/5088001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66709 0039d316-1c4b-4281-b951-d872f2087c98
* Add pid to HTML5 notification information in pyauto hook.kkania@chromium.org2010-11-181-3/+8
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/4985006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66575 0039d316-1c4b-4281-b951-d872f2087c98
* Workaround for some pyauto test flakiness on linux. Tests that use the omniboxace@chromium.org2010-11-131-0/+16
| | | | | | | | | | | | | immediately after creating a new window need to wait for it to be "ready" on linux. **remake of issue4838001 (nuked client, long story) BUG=62783,44203 Review URL: http://codereview.chromium.org/4931001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66024 0039d316-1c4b-4281-b951-d872f2087c98
* Fix path for private data dir used in sync pyauto testsnirnimesh@chromium.org2010-11-121-1/+1
| | | | | | | | I was asked to rename "private" to "pyauto_private" Review URL: http://codereview.chromium.org/4815002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65908 0039d316-1c4b-4281-b951-d872f2087c98
* Part 2 of reapplying r64637.erg@google.com2010-11-101-2/+3
| | | | | | | | | | | | | Move the automation message files from chrome/test/automation to chrome/common/. This requires a temporary override to chrome/common/DEPS until Part 3 lands. BUG=51409 TEST=compiles Review URL: http://codereview.chromium.org/4758001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65695 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a typonirnimesh@chromium.org2010-11-101-1/+1
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/4662006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65684 0039d316-1c4b-4281-b951-d872f2087c98
* Add facilities to fetch username/passwd credentials from private datanirnimesh@chromium.org2010-11-101-0/+11
| | | | | | | | | | Fetch username/passwd from private data and use in sync tests. BUG=60970 Review URL: http://codereview.chromium.org/4738004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65634 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto tests, to refer to chrome_command_ids.h.nirnimesh@chromium.org2010-11-091-1/+1
| | | | | | | | | | | It was broken in r6545. BUG= TEST= Review URL: http://codereview.chromium.org/4731001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65497 0039d316-1c4b-4281-b951-d872f2087c98
* Add a script to fetch prebuilt binaries for running PyAuto.nirnimesh@chromium.org2010-11-092-0/+178
| | | | | | | | | | | | | | | This script makes it easy to fetch chrome and pyauto binaries from the continuous build archives and setup to run pyauto. Example usage (on Mac): python fetch_prebuilt_pyauto.py -d xcodebuild/Release http://build.chromium.org/f/chromium/continuous/mac/LATEST BUG= TEST= Review URL: http://codereview.chromium.org/4583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65496 0039d316-1c4b-4281-b951-d872f2087c98
* Split out command IDs from chrome_dll_resource.h.evan@chromium.org2010-11-081-1/+1
| | | | | | | | | | | | The name of this file is a leftover from Windows. Split the command ids (which are used on all platforms) out, leaving just the Windows-specific resource IDs in the original file. TEST=compiles Review URL: http://codereview.chromium.org/4710001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65453 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto hooks for Sync in TestingAutomationProviderrsimha@chromium.org2010-11-031-0/+118
| | | | | | | | | | | | | | | | | | This patch exposes hooks for sync in TestingAutomationProvider that the chrome pyauto test suite can use. It contains the following changes: - Partial revert of an earlier change to ProfileSyncServiceHarness. Some of its methods were made pure virtual, but this ended up being unnecessary. Also ripped out unnecessary code from LiveSyncTest. - Minor refactor of ProfileSyncServiceHarness to allow for scenarios where the browser is restarted. - A bunch of new methods in TestingAutomationProvider: SignInToSync, GetSyncInfo, AwaitSyncCycleCompletion, EnableSyncForDatatypes and DisableSyncForDatatypes. - A new method in model_type.h/cc called ModelTypeFromString. Required for automation. - New APIs in pyauto.py for sync. - New test suite sync.py with sample tests. BUG=53651, 60970, 56460, 61639 TEST=run pyauto sync tests Review URL: http://codereview.chromium.org/4096004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64988 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto tests and helper files for system-level testing of Web SQL Databases.kkania@chromium.org2010-11-024-0/+49
| | | | | | | | | BUG=59379 TEST=none Review URL: http://codereview.chromium.org/4223001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64746 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Refactor automation messages." due to mysterious problems on mac.erg@google.com2010-11-011-2/+2
| | | | | | | | | | | | | This reverts commit c1c1fed998ee4d839bfe256150e5e59220ebc0ef (r64637). TBR=nirnimesh@ BUG=51409 TEST=none Review URL: http://codereview.chromium.org/4194007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64644 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor automation messages.erg@google.com2010-11-011-2/+2
| | | | | | | | | | | | | | | | | automation_messages used to live in chrome/test/automation, when it's needed by browser and chrome_frame. When I started lifting code out of headers and into implementation files, I was getting link errors and temporarily solved the problem by compiling the cc files manually into libbrowser.a. Now this is part of chrome/common/ which is included by all targets needed. While doing this, discover that automation IPC redefines the ContextMenuParams struct. Rename it to MiniContextMenuParams. BUG=51409 TEST=none Review URL: http://codereview.chromium.org/4200007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64637 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto hook for HTML5 notifications, tests, and helpers.kkania@chromium.org2010-10-261-0/+63
| | | | | | | | | BUG=55125 TEST=none Review URL: http://codereview.chromium.org/3822001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63935 0039d316-1c4b-4281-b951-d872f2087c98
* Add an additional build dir to look for pyauto libs on winnirnimesh@chromium.org2010-10-251-1/+3
| | | | | | | | | | | | The upcoming chromium pyauto bots build in src/build/Release. Add it to the list of locations where pyauto looks for binaries. BUG= TEST= Review URL: http://codereview.chromium.org/3963009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63785 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_nsdisable_screen_update from base to app/macbrettw@chromium.org2010-10-181-2/+2
| | | | | | | | | | | Move scoped_aedesc from base to base/mac Use namespace and proper Google-style class naming. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3828009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62904 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto automation support for blocked popupsnirnimesh@chromium.org2010-10-131-0/+31
| | | | | | | | | | | | Add PyAuto automation hooks for fetching info about blocked popups in a tab, and launching a blocked popup. BUG=55889 TEST=popups.py Review URL: http://codereview.chromium.org/3688004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62435 0039d316-1c4b-4281-b951-d872f2087c98
* Make WaitForInfobarCount() robustnirnimesh@chromium.org2010-10-121-14/+24
| | | | | | | | | | | | Make WaitForInfobarCount() robust to failures in the case of missing tabs or windows. BUG= TEST= Review URL: http://codereview.chromium.org/3529016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62307 0039d316-1c4b-4281-b951-d872f2087c98
* Adding automation hooks for editing search engines.ace@chromium.org2010-10-121-15/+86
| | | | | | | | | | Refactored automation hook for getting search engine info. BUG=52009 Review URL: http://codereview.chromium.org/3581003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62248 0039d316-1c4b-4281-b951-d872f2087c98
* Automation support for Find on a given page and return the search countnirnimesh@chromium.org2010-10-081-0/+36
| | | | | | | | | | | | (Committing on behalf of amolk. Originally reviewed and LGTM-ed at http://codereview.chromium.org/3402021/show) BUG=36177 TEST=find_in_page.py Review URL: http://codereview.chromium.org/3590026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61898 0039d316-1c4b-4281-b951-d872f2087c98
* Use CHROME_HEADLESS to enable crash reporter in pyauto on linux/macnirnimesh@chromium.org2010-09-291-6/+2
| | | | | | | | | | | Enable the disabled pyauto test. BUG=57189 TEST=crash_reporter.py on official build Review URL: http://codereview.chromium.org/3530003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60971 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PyAuto tests to account for dynamic autofill labels.nirnimesh@chromium.org2010-09-281-15/+4
| | | | | | | | | | | Also, match full phone number. BUG=56844 TEST=python chrome/test/functional/autofill.py Review URL: http://codereview.chromium.org/3437025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60843 0039d316-1c4b-4281-b951-d872f2087c98
* Fix dom automation using pyauto on windows.nirnimesh@chromium.org2010-09-252-4/+7
| | | | | | | | | | | | | | | | The command line arguments (argv) passed to the TestSuite are ignored in windows. It tries to fetch the command line args by itself, for the current process. Due to this, --dom-automation was not getting passed on win. Fix this. Also, enable execute_javascript.py BUG= TEST=python chrome/test/functional/execute_javascript.py Review URL: http://codereview.chromium.org/3404022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60573 0039d316-1c4b-4281-b951-d872f2087c98
* Adding automation hook GetSearchEngineInfo, accessible through json ↵ace@chromium.org2010-09-171-0/+26
| | | | | | | | | | automation proxy interface. BUG=52009 Review URL: http://codereview.chromium.org/3389016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59847 0039d316-1c4b-4281-b951-d872f2087c98
* Fix import tests when intermediate dir might not be presentnirnimesh@chromium.org2010-09-101-0/+3
| | | | | | | | | | | | | | PyAuto import tests copy over saved firefox profiles from data dir to the location where firefox stores it profile. If intermediate dirs are missing (when firefox has never been launched on the target machine), the test crashes. This fixes it by creating intermediate dirs. BUG= TEST= Review URL: http://codereview.chromium.org/3348018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59135 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Work around download system breakpage by using WaitUntil on pyauto ↵nirnimesh@chromium.org2010-09-021-11/+2
| | | | | | | | | | | side." BUG= TEST= Review URL: http://codereview.chromium.org/3341008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58386 0039d316-1c4b-4281-b951-d872f2087c98
* Work around download system breakpage by using WaitUntil on pyauto side.nirnimesh@chromium.org2010-09-021-2/+11
| | | | | | Review URL: http://codereview.chromium.org/3367001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58297 0039d316-1c4b-4281-b951-d872f2087c98
* Fetch info about the state of navigation in a tabnirnimesh@chromium.org2010-08-311-0/+34
| | | | | | | | | | | | | This includes info about: - ssl status: allows for automation of ssl tests - page type - favicon TEST=ssl.py Review URL: http://codereview.chromium.org/3266012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58015 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto wait until hooks to use client-side WaitUntil BUG=53647alyssad@google.com2010-08-301-18/+12
| | | | | | | | Some hooks have small chances of race conditions that can cause hangs and test failures. Fix this by using the client-side WaitUntil for now. Review URL: http://codereview.chromium.org/3222002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57865 0039d316-1c4b-4281-b951-d872f2087c98
* New pyauto hook (wait until extension has been installed) and test.alyssad@google.com2010-08-271-0/+16
| | | | | | | | The hook waits until a downloaded .crx file has been installed. The test is for downloading a theme. Review URL: http://codereview.chromium.org/3152045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57731 0039d316-1c4b-4281-b951-d872f2087c98
* Fix references to pyauto doc urlsnirnimesh@chromium.org2010-08-271-1/+1
| | | | | | | | dev.chromium.org was restructured recently. Review URL: http://codereview.chromium.org/3229001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57714 0039d316-1c4b-4281-b951-d872f2087c98
* (reland)nirnimesh@chromium.org2010-08-251-1/+55
| | | | | | | | | | | | | | Produce gtest style output with pyauto. This makes it easy to digest pass/fail status for individual tests ("OK" is more discoverable than '.' in the output log). And makes it easier to associate LOG messages from chrome with the individual tests triggering them. BUG=42148 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56951 Review URL: http://codereview.chromium.org/3191014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57396 0039d316-1c4b-4281-b951-d872f2087c98
* Deal with transient files better when removing a path in tests.nirnimesh@chromium.org2010-08-251-1/+4
| | | | | | | | Helps prevent problems when a temporary file suddenly gets deleted by Chrome, in download tests. Review URL: http://codereview.chromium.org/3192019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57352 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup in downloads testsnirnimesh@chromium.org2010-08-241-0/+9
| | | | | | | | Cleanup all files the tests might have created in the download dir. Review URL: http://codereview.chromium.org/3141039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57227 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 56951 - Produce gtest style output with pyauto.nirnimesh@chromium.org2010-08-211-52/+1
| | | | | | | | | | | | | | | (Breaks on py2.4 on win) This makes it easy to digest pass/fail status for individual tests ("OK" is more discoverable than '.' in the output log). And makes it easier to associate LOG messages from chrome with the individual tests triggering them. BUG=42148 Review URL: http://codereview.chromium.org/3191014 TBR=nirnimesh@chromium.org Review URL: http://codereview.chromium.org/3126027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56990 0039d316-1c4b-4281-b951-d872f2087c98
* Produce gtest style output with pyauto.nirnimesh@chromium.org2010-08-211-1/+52
| | | | | | | | | | This makes it easy to digest pass/fail status for individual tests ("OK" is more discoverable than '.' in the output log). And makes it easier to associate LOG messages from chrome with the individual tests triggering them. BUG=42148 Review URL: http://codereview.chromium.org/3191014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56951 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto test for renderer crash reportingnirnimesh@chromium.org2010-08-203-1/+167
| | | | | | | | | | - Add a helper class (ExistingPathReplacer) to temporarily back up a path while pyauto uses it, and then reinstate it. Used by crash reporter test - Increase PyAuto's default logging level to INFO Review URL: http://codereview.chromium.org/3083028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56906 0039d316-1c4b-4281-b951-d872f2087c98
* New downloads hooks for pyauto. BUG=35284alyssad@google.com2010-08-201-3/+83
| | | | | | | | New hooks allow the user to pause/resume/cancel/remove downloads and more. Review URL: http://codereview.chromium.org/3176016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56789 0039d316-1c4b-4281-b951-d872f2087c98
* New pyauto translate hooks: always and never translate button.alyssad@chromium.org2010-08-101-4/+15
| | | | | | | | This hooks allows testers to test that always and never translate button that shows up after a user has accepted/declined translation several times. Review URL: http://codereview.chromium.org/3061054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55590 0039d316-1c4b-4281-b951-d872f2087c98
* Add new downloads testsnirnimesh@chromium.org2010-08-072-0/+34
| | | | | | | | | | | testBigZip -- test downloads for a 1 GB file, from Sunand This required methods to temporarily increase automation timeout, since it might not be possible to download 1 GB file in the default 25 secs. testDownloadsPersistence -- verify that download history persists browser restart, from Srikanth Review URL: http://codereview.chromium.org/3046030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55341 0039d316-1c4b-4281-b951-d872f2087c98
* Add ExecuteJavascript() method to PyUITestBasedpranke@chromium.org2010-08-054-2/+72
| | | | | | | | | | | | | | This allows us to evaluate JavaScript expressions in the renderer and read values out of the DOM of the page, which is useful for testing things like the PasswordManager. R=nirimesh@chromium.org, jrg@chromium.org, alyssad@chromium.org TEST=chrome/test/functional/test_execute_javascript.py BUG=none Review URL: http://codereview.chromium.org/3012039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55013 0039d316-1c4b-4281-b951-d872f2087c98
* New translate pyauto hook: select translate target languagealyssad@chromium.org2010-08-041-0/+29
| | | | | | | | This hook allows tests to select a different "to" language from the drop-down. Review URL: http://codereview.chromium.org/3078026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55000 0039d316-1c4b-4281-b951-d872f2087c98
* New PyAuto hooks for extensions.alyssad@chromium.org2010-08-031-0/+40
| | | | | | | | Added two new hooks for extensions: GetExtensionsInfo returns information about all installed extensions and UninstallExtensionById uninstalls a given extension based on its id. Review URL: http://codereview.chromium.org/3053034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54761 0039d316-1c4b-4281-b951-d872f2087c98