summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup /home/chronos before every pyauto tests on chromeosnirnimesh@chromium.org2011-03-081-1/+5
| | | | | | | | | | | Cleanup files in /home/chronos not just /home/chronos/user BUG= TEST= Review URL: http://codereview.chromium.org/6625073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77231 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hooks to get/set the thumbnail/menu modes for NTP sections.nirnimesh@chromium.org2011-03-031-0/+104
| | | | | | | | | | | | A few sample PyAuto tests are included that exerise these new hooks. Contributed by dennisjeffrey@chromium.org. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6610021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76787 0039d316-1c4b-4281-b951-d872f2087c98
* Deal with browser restart scenarios in pyauto scripts on ChromeOSnirnimesh@chromium.org2011-02-261-0/+14
| | | | | | | | | TEST=chromeos_basic.ChromeosBasic.testRestart BUG=chromium-os:12523 Review URL: http://codereview.chromium.org/6591020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76133 0039d316-1c4b-4281-b951-d872f2087c98
* CRX files now specified with absolute paths in PyAuto NTP Apps tests.nirnimesh@chromium.org2011-02-232-9/+11
| | | | | | | | | | | | | Documentation for a few associated functions has also been revised to explicitly state that app/theme/extension files must be specified with absolute paths. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6580012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75813 0039d316-1c4b-4281-b951-d872f2087c98
* Use named automation interface to control the primary chrome to run ↵nirnimesh@chromium.org2011-02-236-10/+214
| | | | | | | | | | | | | | | | | | | | | | | | pyauto-based chrome tests on ChromeOS. This CL includes: - enable_testing.py -- sends dbus call to session_manager to enable testing interface - pyauto.py -- integration of named automation interface with PyAuto - desktopui_PyAutoFunctionalTests.py -- setup to use named automation interface. Uses a suid-root binary (as discussed with cmasone) to dbus mesg to session_manager - PYAUTO_TESTS -- a new suite called "PRIMARY_CHROME" which currently consists of a basic hello world test that controls the primary chrome - chromeos_basic.py -- a basic test All plumbing necessary to integrate the named automation interface with autotest and pyauto is included. It's designed such that it's easy to work directly on a chromeos device while adding/editing a pyauto test, without having to run via autotest every time. Also, the existing pyauto tests (about 200 of them) will begin controlling the primary chrome. Can be run with run_remote_tests.sh as: $ ./run_remote_tests.sh --remote <IP> desktopui_PyAutoFunctionalTests BUG= TEST= Review URL: http://codereview.chromium.org/6410134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75797 0039d316-1c4b-4281-b951-d872f2087c98
* New automation hook to get information about apps on the new tab page.nirnimesh@chromium.org2011-02-231-12/+65
| | | | | | | | | | | | Several pyauto tests are included that exercise the new automation hook. Contributed by dennisjeffrey@chromium.org. BUG=64271 TEST=None Review URL: http://codereview.chromium.org/6532067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75783 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 74118 - Remove wstring from RVH's run Javascript command.avi@chromium.org2011-02-083-42/+37
| | | | | | | | | | | | BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6312154 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/6459002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74158 0039d316-1c4b-4281-b951-d872f2087c98
* Remove wstring from RVH's run Javascript command.avi@chromium.org2011-02-083-37/+42
| | | | | | | | | BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6312154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74118 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 73850 - Disable testserver with pyautonirnimesh@chromium.org2011-02-061-1/+1
| | | | | | | | | | | | | | | | | Missing pyproto dir makes pyauto not able to launch the testserver for google chrome builders. I have a solution under review. Disable testserver meanwhile. BUG=71976 TEST= Review URL: http://codereview.chromium.org/6250165 TBR=nirnimesh@chromium.org Review URL: http://codereview.chromium.org/6312181 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73962 0039d316-1c4b-4281-b951-d872f2087c98
* Disable testserver with pyautonirnimesh@chromium.org2011-02-041-1/+1
| | | | | | | | | | | | | | Missing pyproto dir makes pyauto not able to launch the testserver for google chrome builders. I have a solution under review. Disable testserver meanwhile. BUG=71976 TEST= Review URL: http://codereview.chromium.org/6250165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73850 0039d316-1c4b-4281-b951-d872f2087c98
* Add testserver support for PyAutonirnimesh@chromium.org2011-02-034-0/+90
| | | | | | | | | | | | Runs a local http server which serves data files over http:// for use in tests. Uses TestServer. BUG=50981 TEST=test_basic.SimpleTest.testHTTP Review URL: http://codereview.chromium.org/6312036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73674 0039d316-1c4b-4281-b951-d872f2087c98
* Add owners file in chrome/test/{functional,pyautolib}nirnimesh@chromium.org2011-01-271-0/+1
| | | | | | | | | | | | These are pyauto directories. Add myself to owners. BUG= TEST= Review URL: http://codereview.chromium.org/6370018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72890 0039d316-1c4b-4281-b951-d872f2087c98
* Remove command_execution_timeout_ms and fix all the callers.tfarina@chromium.org2011-01-201-0/+4
| | | | | | | | | | | (This was a TODO for phajdan.jr). BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6277013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71945 0039d316-1c4b-4281-b951-d872f2087c98
* Remove action_max_timeout_ms and fix all the callers.tfarina@chromium.org2011-01-191-1/+6
| | | | | | | | | | | (This was a TODO for phajdan.jr). BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6354005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71861 0039d316-1c4b-4281-b951-d872f2087c98
* Modifying some downloads hooks to act per-window (so that incognito windows ↵ace@chromium.org2011-01-194-9/+25
| | | | | | | | | | can be correctly targetted) and updating some surrounding test cases. BUG=59259 Review URL: http://codereview.chromium.org/6159001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71856 0039d316-1c4b-4281-b951-d872f2087c98
* Adding automation proxy hook for accessing information related to omnibox ↵ace@chromium.org2010-12-231-0/+19
| | | | | | | | | | instant feature. BUG=66135 Review URL: http://codereview.chromium.org/6044004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70018 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for separating tests into suites.nirnimesh@chromium.org2010-12-222-29/+77
| | | | | | | | | | | | | | | Motivation: There are a category of tests which we do not want to run continuously (ex: translate, which ends up DOSing the translate servers thereby getting blacklisted). Add support for dividing tests into suites. A suite is just a collection of tests. The "FULL" suite includes "CONTINUOUS" suite and the translate tests. BUG=61256 Review URL: http://codereview.chromium.org/6056004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69996 0039d316-1c4b-4281-b951-d872f2087c98
* 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