summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib
Commit message (Collapse)AuthorAgeFilesLines
* Test to verify the 'multiple downloads' infobarnirnimesh@chromium.org2010-07-291-0/+6
| | | | | | | | | | | Verifies the multiple downloads infobar. Implemented by Venkat, who figured out how to reliably trigger the multiple downloads infobar. Review URL: http://codereview.chromium.org/3066017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54163 0039d316-1c4b-4281-b951-d872f2087c98
* Enable crash reporting by default with PyAuto on Mac/Linuxnirnimesh@chromium.org2010-07-281-4/+11
| | | | | | | | | | | | It's already enabled on windows by default. This of course applies only to the branded builds. Also, make the path to imported pyauto binaries prettier by applying os.path.normpath Change to chrome_switches.cc is to put a comment at the place where it belongs Review URL: http://codereview.chromium.org/2873073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53911 0039d316-1c4b-4281-b951-d872f2087c98
* Missing argument in pyauto.py. Added in the missing argument.alyssad@chromium.org2010-07-281-1/+2
| | | | | | Review URL: http://codereview.chromium.org/3007014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53875 0039d316-1c4b-4281-b951-d872f2087c98
* New pyauto hook for the translate feature.alyssad@chromium.org2010-07-271-0/+95
| | | | | | Review URL: http://codereview.chromium.org/3026016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53791 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto hook to remove saved passwords, more info added to passwords. BUG=36179alyssad@chromium.org2010-07-261-14/+40
| | | | | | Review URL: http://codereview.chromium.org/3054004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53634 0039d316-1c4b-4281-b951-d872f2087c98
* Support test inclusions/exclusions for PyAuto tests on ChromeOSnirnimesh@chromium.org2010-07-232-2/+24
| | | | | | Review URL: http://codereview.chromium.org/3005028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53550 0039d316-1c4b-4281-b951-d872f2087c98
* Add PyAuto automation hooks to perform actions on infobarsnirnimesh@chromium.org2010-07-221-0/+28
| | | | | | | | | | Actions include: dismissing an infobar, accept/close-ing it Also, enable infobars tests. Review URL: http://codereview.chromium.org/3042012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53304 0039d316-1c4b-4281-b951-d872f2087c98
* Fetch info about infobarsnirnimesh@chromium.org2010-07-211-9/+51
| | | | | | | | | | | | | | This includes user-visible info about the following types of infobars: - ConfirmInfoBarDelegate (includes ThemeInstalledInfoBarDelegate & CrashedExtensionInfoBarDelegate) - AlertInfoBarDelegate - LinkInfoBarDelegate - TranslateInfoBarDelegate Adds a test to verify crash infobar when a (flash) plugin dies. Review URL: http://codereview.chromium.org/2305001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53161 0039d316-1c4b-4281-b951-d872f2087c98
* Set url fetch test timeout back to old values. Increase UI test command ↵thestig@chromium.org2010-07-171-3/+3
| | | | | | | | | | | timeout a bit to accommodate failng tests. BUG=none TEST=Vista perf goes green; xp test dbg 2 goes green. TBR=phajdan.jr Review URL: http://codereview.chromium.org/3044007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52824 0039d316-1c4b-4281-b951-d872f2087c98
* New PyAuto hook to get saved passwords. BUG=36179alyssad@chromium.org2010-07-161-0/+37
| | | | | | Review URL: http://codereview.chromium.org/2842047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52745 0039d316-1c4b-4281-b951-d872f2087c98
* (Reland reverted r52628 after fix)nirnimesh@chromium.org2010-07-161-61/+44
| | | | | | | | | | | | Refactor json automation interface for pyauto hooks. Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Review URL: http://codereview.chromium.org/2898001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52649 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52628 - Refactor json automation interface for pyauto hooks.tyoshino@chromium.org2010-07-161-44/+61
| | | | | | | | | | | | | | | | | | | Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Reason: since startup_test of XP Perf and Vista Perf failed around this change and this change touched automated test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52054 Review URL: http://codereview.chromium.org/2898001 TBR=nirnimesh@chromium.org Review URL: http://codereview.chromium.org/2812057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52640 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor json automation interface for pyauto hooks.nirnimesh@chromium.org2010-07-161-61/+44
| | | | | | | | | | | | | Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52054 Review URL: http://codereview.chromium.org/2898001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52628 0039d316-1c4b-4281-b951-d872f2087c98
* Expose cookie get/set to pyautoalyssad@chromium.org2010-07-153-0/+52
| | | | | | Review URL: http://codereview.chromium.org/2903008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52522 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a new PyAuto hook for importing settings.alyssad@chromium.org2010-07-151-0/+35
| | | | | | | | BUG=43231 Review URL: http://codereview.chromium.org/2923010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52508 0039d316-1c4b-4281-b951-d872f2087c98
* Clear Browsing Data hook added and some small tests. BUG=36176alyssad@chromium.org2010-07-141-0/+25
| | | | | | Review URL: http://codereview.chromium.org/2909005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52402 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52054: causing startup tests to fail on Vista and XP perf dbgvandebo@chromium.org2010-07-111-41/+49
| | | | | | | | | | | | | | | Revert 52054 - Refactor json automation interface for pyauto hooks. Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Review URL: http://codereview.chromium.org/2898001 TBR=nirnimesh@chromium.org Review URL: http://codereview.chromium.org/2977001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52067 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor json automation interface for pyauto hooks.nirnimesh@chromium.org2010-07-111-49/+41
| | | | | | | | | | | Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Review URL: http://codereview.chromium.org/2898001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52054 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto: Automation hooks to get/set themenirnimesh@chromium.org2010-07-104-1/+74
| | | | | | | | | | | | | | | | Add automation hooks to: - install a given theme - fetch info about the current theme - reset to default theme Add a test exercising the above. BUG=36215 TEST=python chrome/test/functional/themes.py Review URL: http://codereview.chromium.org/2827048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52024 0039d316-1c4b-4281-b951-d872f2087c98
* New pyauto hook to set and get autofill profilesalyssad@chromium.org2010-07-091-0/+106
| | | | | | Review URL: http://codereview.chromium.org/2836046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51984 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto: Collect branding info as a part of GetBrowserInfo()nirnimesh@chromium.org2010-06-281-1/+2
| | | | | | | | | Also, use command_line_string() from base/command_line.h which is cross-platform now. Review URL: http://codereview.chromium.org/2800029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51055 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto: minor cleanupnirnimesh@chromium.org2010-06-251-2/+0
| | | | | | | | | Remove 2 redundant lines. Review URL: http://codereview.chromium.org/2810032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50904 0039d316-1c4b-4281-b951-d872f2087c98
* Enable "get html from page" functionality for PyAuto.jrg@chromium.org2010-06-242-0/+39
| | | | | | | | | BUG=36184 TEST=Run PyAuto's content.py and make sure it passes. Review URL: http://codereview.chromium.org/2861019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50678 0039d316-1c4b-4281-b951-d872f2087c98
* Allow for a new flag (--log_file) which lets pyauto log to a file instead of ↵nirnimesh@chromium.org2010-06-231-3/+13
| | | | | | | | just stdout. Review URL: http://codereview.chromium.org/2826014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50668 0039d316-1c4b-4281-b951-d872f2087c98
* PyAuto: fix extra flags passed to chromenirnimesh@chromium.org2010-06-171-3/+9
| | | | | | | | | | | | | | 1. Fix so that extra flags passed actually get passed on to chrome 2. Make it easier (get rid of --ui-test-flags option since it was cumbersome) Now, extra options can be passed like: python mytest.py --chrome-flags="--enable-crash-reporter" Still need a way for an individual TestCase to be able to add flags, without being provided from the command line. Review URL: http://codereview.chromium.org/2833015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50170 0039d316-1c4b-4281-b951-d872f2087c98
* Fetch a bunch of info from the browsernirnimesh@chromium.org2010-05-251-10/+72
| | | | | | | | | | | | | | This includes info about the browser/renderer/extension/other PIDs, window size. Add a method to set window size. Add tests to verify window size, and verify flash loading. BUG=43234 TEST=python chrome/test/functional/browser.py Review URL: http://codereview.chromium.org/2133013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48192 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for test exclusions for pyauto tests.nirnimesh@chromium.org2010-05-251-18/+73
| | | | | | | | | | | | This makes it easy to exclude tests in PYAUTO_TESTS by prefixing '-'. This can be done in any platform-specific section as well to exclude a test on that platform. Update PYAUTO_TESTS accordingly. Review URL: http://codereview.chromium.org/2161006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48175 0039d316-1c4b-4281-b951-d872f2087c98
* Add new omnibox functional testsnirnimesh@chromium.org2010-05-181-0/+15
| | | | | | | | TEST=python chrome/test/functional/omnibox.py Review URL: http://codereview.chromium.org/2091011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47573 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a pref test -- Win/Linux don't have browser.show_page_options_buttons prefnirnimesh@chromium.org2010-05-181-0/+20
| | | | | | | | TEST=python chrome/test/functional/prefs.py prefs.PrefsTest.testToolbarButtonsPref Review URL: http://codereview.chromium.org/2117009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47481 0039d316-1c4b-4281-b951-d872f2087c98
* Omnibox automation should wait for page load after selecting a popup item.nirnimesh@chromium.org2010-05-171-0/+1
| | | | | | | | TEST=python chrome/test/functional/omnibox.py omnibox.OmniboxTest.testSelect Review URL: http://codereview.chromium.org/2136010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47470 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for fetching info about omniboxnirnimesh@chromium.org2010-05-142-0/+234
| | | | | | | | | | | | 1. Make the use of browser explicit for each json handler so that handlers that need access to Browser* can have it. Omnibox needs it. 2. Add a simple test TEST=python chrome/test/functional/omnibox.py Review URL: http://codereview.chromium.org/2015010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47311 0039d316-1c4b-4281-b951-d872f2087c98
* Add hooks for fetching basic info from the browser.nirnimesh@chromium.org2010-05-131-0/+30
| | | | | | | | This includes info like version string, executable name, path, and so on. Review URL: http://codereview.chromium.org/2009013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47159 0039d316-1c4b-4281-b951-d872f2087c98
* pyautolib: exposing TabProxy::WaitForTabToBeRestoredace@chromium.org2010-05-101-0/+6
| | | | | | Review URL: http://codereview.chromium.org/2016004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46844 0039d316-1c4b-4281-b951-d872f2087c98
* Add an AddHistoryItem() API to PyAuto with example use.jrg@chromium.org2010-05-071-0/+26
| | | | | | | | | | | Change GetHistory time value from int to float to keep precision. BUG=none TEST=run pyautolib Review URL: http://codereview.chromium.org/2036004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46704 0039d316-1c4b-4281-b951-d872f2087c98
* Add hooks to fetch about:plugins info for PyAuto.nirnimesh@chromium.org2010-05-062-0/+159
| | | | | | | | | Also, hooks for to enable/disable a plugin. Add a test which excercises them. Review URL: http://codereview.chromium.org/1935003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46553 0039d316-1c4b-4281-b951-d872f2087c98
* Add pyauto tests for Navigation.nirnimesh@chromium.org2010-05-053-0/+13
| | | | | | Review URL: http://codereview.chromium.org/1948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46471 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Fix GetFileURLForPath for windows. GetFileURLForPath() should not quote() ↵nirnimesh@chromium.org2010-05-031-2/+10
| | | | | | | | | | | | ':' in the drive letter on windows. 2. Fix testCrazyFilenames test for win. Expand crazy_filenames.txt to contain i18n filenames as ascii strings. 3. Disable bookmark_bar.testBookmarkBarVisible on win 4. Get rid of using hashlib module in dowload tests. Since we have the files, it doesn't make sense to compute checksum to verify if 2 files are the same -- direct comparison will do. Review URL: http://codereview.chromium.org/1780013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46258 0039d316-1c4b-4281-b951-d872f2087c98
* Add 2 tests for history.nirnimesh@chromium.org2010-04-292-0/+22
| | | | | | | | | | | | | testDownloadNoHistory,testRedirectHistory -- from Deepak. Also, move _DownloadAndWaitForStart (re-used by the new tests) to a common location. TEST=python chrome/test/funtional/history.py Review URL: http://codereview.chromium.org/1702010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45987 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for setting/gettting preferences.nirnimesh@chromium.org2010-04-293-14/+147
| | | | | | | | | | | | | | | | Add a test which excercises this, update old test. Also, - Remove some old prefs hooks. They were not easy to use and required the user to know what a preference type was, with no way of listing them out. - replace if-else statements for json handlers with a map. - Fix json error strings. json prefers " over ' (automation_provider.cc) BUG=42701 TEST=python chrome/test/functional/prefs.py Review URL: http://codereview.chromium.org/1712019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45956 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for history.nirnimesh@chromium.org2010-04-262-0/+21
| | | | | | | | | | | | | | | Tests various scenarios with chromium history. testHistoryPersists, testInvalidURLNoHistory -- by Srikanth. testNewTabNoHistory, testIncognitoNoHistory, testStarredBookmarkInHistory, testHistorySearchSnippet -- by Ismail. testNavigateMultiTimes, testMultiTabsWindowsHistory -- by Rohit. TEST=python chrome/test/functional/history.py Review URL: http://codereview.chromium.org/1745012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45597 0039d316-1c4b-4281-b951-d872f2087c98
* Add --repeat flag to PyAuto tests. This is useful for firing off the testsnirnimesh@chromium.org2010-04-231-0/+5
| | | | | | | | many times to determine flakiness. Review URL: http://codereview.chromium.org/1759004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45426 0039d316-1c4b-4281-b951-d872f2087c98
* Add a download test for crazy filenames.nirnimesh@chromium.org2010-04-201-0/+10
| | | | | | | | | | crazy filenames = long/short filenames, special chars, i18n chars. Test written by rohitbm Review URL: http://codereview.chromium.org/1717001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45090 0039d316-1c4b-4281-b951-d872f2087c98
* Add info about starred history items.nirnimesh@chromium.org2010-04-201-3/+5
| | | | | | | | | | | This is the last bit of info we needed from the chrome://history/ page ( the one I forgot to add in the last CL). With this, we can write tests combining history and bookmarks! Review URL: http://codereview.chromium.org/1618032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45086 0039d316-1c4b-4281-b951-d872f2087c98
* Close previous theme info bars when resetting to default themebulach@chromium.org2010-04-203-4/+4
| | | | | | | | | | | | Select and close previous theme info bars when resetting to default theme via the options dialog. As a nice side effect if one tab is showing a theme info bar and the user switches to a different theme in another tab, this change closes the previous theme info bars as well. (landing for satish@chromium.org / http://codereview.chromium.org/1622017/show) BUG=35607 TEST=Install a theme, and with the theme info bar visible open Preferences dialog and click 'reset to default theme' and check the info bar. (full steps given in the above bug entry) Review URL: http://codereview.chromium.org/1650016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45034 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks for fetching history.nirnimesh@chromium.org2010-04-192-0/+103
| | | | | | | | | | | Adding a test which exercises the GetHistoryInfo() hooks. BUG=39275 TEST=python chrome/test/functional/history.py Review URL: http://codereview.chromium.org/1648015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44964 0039d316-1c4b-4281-b951-d872f2087c98
* testFileRenaming: Test file renaming when downloading a already-existing filenirnimesh@chromium.org2010-04-192-0/+50
| | | | | | | | Also, fix download problem when downloading a file. Since we use NavigateToURL() to trigger a download, it might take a while for it to actually start downloading and doing WaitForAllDownloadsToComplete() won't work until downloads actually start. Used WaitUntil for this. (WaitUntil has been reviewed earlier in http://codereview.chromium.org/1541009). Review URL: http://codereview.chromium.org/1575043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44924 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 44885 - Select and close previous theme info bars when resetting to ↵jorlow@chromium.org2010-04-183-4/+4
| | | | | | | | | | | | | | | | | default theme via the options dialog. As a nice side effect if one tab is showing a theme info bar and the user switches to a different theme in another tab, this change closes the previous theme info bars as well. BUG=35607 TEST=Install a theme, and with the theme info bar visible open Preferences dialog and click 'reset to default theme' and check the info bar. (full steps given in the above bug entry) Landing http://codereview.chromium.org/1622017/show for Satish. Review URL: http://codereview.chromium.org/1600030 TBR=jorlow@chromium.org Review URL: http://codereview.chromium.org/1599038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44886 0039d316-1c4b-4281-b951-d872f2087c98
* Select and close previous theme info bars when resetting to default theme ↵jorlow@chromium.org2010-04-183-4/+4
| | | | | | | | | | | | | | via the options dialog. As a nice side effect if one tab is showing a theme info bar and the user switches to a different theme in another tab, this change closes the previous theme info bars as well. BUG=35607 TEST=Install a theme, and with the theme info bar visible open Preferences dialog and click 'reset to default theme' and check the info bar. (full steps given in the above bug entry) Landing http://codereview.chromium.org/1622017/show for Satish. Review URL: http://codereview.chromium.org/1600030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44885 0039d316-1c4b-4281-b951-d872f2087c98
* Add automation hooks to get info about downloads.nirnimesh@chromium.org2010-04-153-1/+105
| | | | | | | | | | | | Makes info about downloads available to pyauto. Also add JSONInterfaceError to represent an error in the json ipc interace. TEST=None BUG=None Review URL: http://codereview.chromium.org/1637008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44664 0039d316-1c4b-4281-b951-d872f2087c98