summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/autofill.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix python scripts in src/chrome/test/functional/maruel@chromium.org2011-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. Minor python style fixes. R=nirnimesh@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8676019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111657 0039d316-1c4b-4281-b951-d872f2087c98
* Do not import selenium on chromeosnirnimesh@chromium.org2011-10-111-2/+2
| | | | | | | | | | R=kkania@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8221025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104883 0039d316-1c4b-4281-b951-d872f2087c98
* Fix testNoDuplicatePhoneNumsInPrefs. Create classes for some webui entities.kkania@chromium.org2011-10-051-29/+20
| | | | | | | | | BUG=97369 TEST=none Review URL: http://codereview.chromium.org/8052027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104176 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor pyauto tests to use pprint() and pformat() from pyauto.py.dennisjeffrey@chromium.org2011-09-261-4/+1
| | | | | | | | | | | Also added a Debug() function to process_count.py. BUG=97663 TEST=None Review URL: http://codereview.chromium.org/8037007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102747 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill: Remove fax number completely.jhawkins@chromium.org2011-09-171-4/+3
| | | | | | | | | | | BUG=81846 TEST=* R=isherman@chromium.org Review URL: http://codereview.chromium.org/7892048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101602 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed failing pyAuto test for testCharsStrippedForAggregatedPhoneNumbers.dyu@chromium.org2011-09-151-4/+4
| | | | | | | | TEST=none BUG=88210 Review URL: http://codereview.chromium.org/7890057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101203 0039d316-1c4b-4281-b951-d872f2087c98
* Reland small fix to chrome driver test for ↵dyu@chromium.org2011-09-081-19/+6
| | | | | | | | | | testPostalCodeAndStateLabelsBasedOnCountry. BUG=none TEST=none Review URL: http://codereview.chromium.org/7860019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100299 0039d316-1c4b-4281-b951-d872f2087c98
* Reland chromedriver tests with small fix for r100253.dyu@chromium.org2011-09-081-1/+97
| | | | | | | | | | | - testPostalCodeAndStateLabelsBasedOnCountry - testDisplayLineItemForEntriesWithNoCCNum - testNoDuplicatePhoneNumsInPrefs BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100284 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100253 - Add Autofill tests written in chrome driver.dyu@chromium.org2011-09-081-97/+1
| | | | | | | | | | | | | | - testPostalCodeAndStateLabelsBasedOnCountry - testDisplayLineItemForEntiresWithNoCCNum - testNoDuplicatePhoneNumsInPrefs BUG=none TEST=none Review URL: http://codereview.chromium.org/7761013 TBR=dyu@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100266 0039d316-1c4b-4281-b951-d872f2087c98
* Add Autofill tests written in chrome driver.dyu@chromium.org2011-09-081-1/+97
| | | | | | | | | | | | - testPostalCodeAndStateLabelsBasedOnCountry - testDisplayLineItemForEntiresWithNoCCNum - testNoDuplicatePhoneNumsInPrefs BUG=none TEST=none Review URL: http://codereview.chromium.org/7761013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100253 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto autofill flakiness when submitting profile info via webpage forms.dennisjeffrey@chromium.org2011-08-241-105/+85
| | | | | | | | | | | | | | | | | | | | | | | | There are 2 sources of flakiness addressed in this CL: 1) There was previously no synchronization between submitting a webpage form and having the autofill data updated internally within Chrome. This has been fixed by encapsulating the form submission and the observer waiting within a single automation hook. 2) NavigateToURL() may return before all fields in a webpage form are ready to be accessed and filled in. I work around this issue for now by waiting in the pyauto test until all form fields are accessible, before proceeding to fill in and submit the form. I've enabled the relevant pyauto tests that were previously disabled due to this flakiness. BUG=90232,89784 TEST=None Review URL: http://codereview.chromium.org/7706025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98060 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed spelling error. dyu@chromium.org2011-07-271-1/+2
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/7492058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94389 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed testAppendCountryCodeForAggregatedPhones to take into account for new ↵dyu@chromium.org2011-07-271-9/+12
| | | | | | | | | | standardized phone format. TEST=none BUG=90256 Review URL: http://codereview.chromium.org/7492056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94381 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 94361 - Fixed testAppendCountryCodeForAggregatedPhones to take into ↵dyu@chromium.org2011-07-271-23/+9
| | | | | | | | | | | | | account for new standardized phone format. TEST=none BUG=90256 Review URL: http://codereview.chromium.org/7514001 TBR=dyu@chromium.org Review URL: http://codereview.chromium.org/7523016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94371 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed testAppendCountryCodeForAggregatedPhones to take into account for new ↵dyu@chromium.org2011-07-271-9/+23
| | | | | | | | | | standardized phone format. TEST=none BUG=90256 Review URL: http://codereview.chromium.org/7514001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94361 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed testAppendCountryCodeForAggregatedPhones to take into accoun for new ↵dyu@chromium.org2011-07-231-9/+9
| | | | | | | | | | | | | | formated change with aggregated phone numbers. Removed the brackets around some dictionary values as those values are injected into web forms and use js to insert the profile versus directly filling into prefs. The brackets were inserted as part of the string. TEST=none BUG=90256 Review URL: http://codereview.chromium.org/7491028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93788 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill automation hooks now support multiple values in profiles.dennisjeffrey@chromium.org2011-07-211-76/+86
| | | | | | | | | | | | | The pyauto autofill tests and associated data files have also been revised to take these changes into account. All pyauto autofill tests should still pass in the same way they did before this change. BUG=83957 TEST=None Review URL: http://codereview.chromium.org/7458002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93410 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable pyauto autofill tests that are now passing.dennisjeffrey@chromium.org2011-07-191-1/+0
| | | | | | | | | | | | | | Each of these tests consistently passed for me on my linux machine with an up-to-date debug build of chrome, with --repeat=20. I also removed an unnecessary raw_input() from one of the autofill tests. BUG=81271,88074,86456 TEST=None Review URL: http://codereview.chromium.org/7422001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92943 0039d316-1c4b-4281-b951-d872f2087c98
* Add an Autofill test in pyAuto.dyu@chromium.org2011-06-241-0/+23
| | | | | | | | | | - testAppendCountryCodeForAggregatedPhones TEST=none BUG=none Review URL: http://codereview.chromium.org/7241017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90415 0039d316-1c4b-4281-b951-d872f2087c98
* Adding additional Autofill tests to pyAuto.dyu@chromium.org2011-06-231-0/+76
| | | | | | | | | | | | -testSameAddressProfilesAddInPrefsDontMerge -testProfileSavedWithValidCountryPhone -testCharsStrippedForAggregatedPhoneNumbers TEST=none BUG=none Review URL: http://codereview.chromium.org/7190028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90241 0039d316-1c4b-4281-b951-d872f2087c98
* Enable and remove PyAuto tests for Autofill.dyu@chromium.org2011-06-071-36/+3
| | | | | | | | | | | | | - Enable testProfileWithEmailINOtherFieldNotSaved - Remove testSegmentNumbersNotSupportedInDOMUI - inserting and retrieving segmented phone/fax numbers in prefs no longer supported. - Changed testMergeAggregatedProfilesWithSameAddress - account for strict profile merging. - Changed phone_pinput_autofill.txt - removed keys/values no longer supported for FillAutofillProfile. TEST=none BUG=80629, 83686 Review URL: http://codereview.chromium.org/7111017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88090 0039d316-1c4b-4281-b951-d872f2087c98
* Updated and Added Autofill tests.dyu@chromium.org2011-05-251-0/+33
| | | | | | | | | | | | | Autofill no longer supports segmented key/value pairs when entering data through the DOM UI. - testFillProfileCrazyCharacters - fixed data file by removing all segmented phone/fax key/value pairs. - testSegmentNumbersNotSupportedInDOMUI - verifies that segmented data no longer supported through DOM UI. TEST=none BUG=83686 Review URL: http://codereview.chromium.org/6992049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86709 0039d316-1c4b-4281-b951-d872f2087c98
* Update autofill test to take into account for new valdation change with ↵dyu@chromium.org2011-05-241-5/+10
| | | | | | | | | | | | | | | phone/fax numbers. - testAUtofillInvalid Phone/Fax information entered into the prefs UI is no longer validated or rejected. Update existing automation test. TEST=none BUG=83677 Review URL: http://codereview.chromium.org/7067011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86399 0039d316-1c4b-4281-b951-d872f2087c98
* Changing Autofill phone numbers in test to valid US numbers.dyu@chromium.org2011-05-201-7/+7
| | | | | | | | | | | Taking into account for strict number checking based on country selected during aggregation. First 3 phone digits '123' is not considered valid for US numbers. TEST=none BUG=none Review URL: http://codereview.chromium.org/6961037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86173 0039d316-1c4b-4281-b951-d872f2087c98
* Added a test case for Autofill and created a private function for filling in ↵dyu@chromium.org2011-05-121-99/+76
| | | | | | | | | | | | | | | and submitting a form as the same set of code were used in multiple tests. - testAggregatesMinValidProfile - _FillFormAndSubmit TEST=none BUG=none Review URL: http://codereview.chromium.org/6959001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85157 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for pyauto autofill flakiness when sending key events to populate a form.dennisjeffrey@chromium.org2011-05-101-23/+14
| | | | | | | | | | | | This change should eliminate flakiness in a few pyauto autofill tests, which are now re-enabled. BUG=80190,80336 TEST=None Review URL: http://codereview.chromium.org/6929052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84791 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for pyauto autofill test: testFillProfileCrazyCharactersdennisjeffrey@chromium.org2011-05-091-2/+5
| | | | | | | | | | | | | Recent changes to Autofill required some modifications to the input data files for this pyauto test. The test should now pass, and is being re-enabled. BUG=77969 TEST=None Review URL: http://codereview.chromium.org/6952002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84629 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed IOError for autofill tests failing on the win XP qa bots.dyu@chromium.org2011-05-061-1/+2
| | | | | | | | | | | - testMergeAggregatedProfilesWithSameAddress - testProfilesNotMergedWhenNoMinAddressData TEST=none BUG=81271 Review URL: http://codereview.chromium.org/6927062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84397 0039d316-1c4b-4281-b951-d872f2087c98
* Added Autofill tests for Multi-Value feature.dyu@chromium.org2011-04-291-13/+43
| | | | | | | | | | | | - MergeAggregatedDuplicatedProfiles - testMergeAggregatedProfilesWithSameAddress - testProfilesNotMergedWhenNoMinAddressData TEST=none BUG=none Review URL: http://codereview.chromium.org/6907001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83566 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Autofill test failure for testDistinguishMiddleInitialWithinNamedyu@chromium.org2011-04-211-22/+26
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/6883108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82525 0039d316-1c4b-4281-b951-d872f2087c98
* Added additional tests to Autofill.dyu@chromium.org2011-04-201-7/+139
| | | | | | | | | | | | | | | - testAbleToFillFormAfterFormReset - testDinstinguishMiddleInitialWithinName (M13 feature) - testMultipleEmailAddressFilledByOneUserGesture - testProfilesNotAggregatedWhenEmailFoundInNonEmailField (M13 feature) Changed form id name for each html file for better consistency. TEST=none BUG=none Review URL: http://codereview.chromium.org/6882071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82399 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed autofill test for testWhitespacesAndSeparatorCharsStrippedForValidCCNumsdyu@chromium.org2011-04-181-3/+3
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/6882018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81971 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a few Autofill automation failures and added new tests.dyu@chromium.org2011-04-161-11/+138
| | | | | | | | | | | | | | | | | - Deprecated testFilterMalformedEmailAddresses as the logic changed. - Add testProfilesNotAggregatedWithInvalidEmail - Add testInvalidCreditCardIsNotAggregated - Add testWhiteSpacesStrippedForValidCCNums - Add testCharSeparatorsStrippedForValidCCNums - Fixed testAutofillInvalid - Fixed testComparePhoneNumbers - Fixed testNoAutofillForReadOnlyFields TEST=none BUG=73439, 78844, 79405, 78519 Review URL: http://codereview.chromium.org/6850007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81861 0039d316-1c4b-4281-b951-d872f2087c98
* Added a test to Verify that the fetched credentials are cleared for a new ↵dyu@chromium.org2011-04-131-23/+10
| | | | | | | | | | | | | | | | | | | username. - testClearFetchedCredForNewUserName Added the ability to send char values to the browser and refactored the original function that sends key events to the browser. - pyauto.py Changed the private function _SendKeyEventsToPopulateForm to include new function created in pyauto.py. TEST=none BUG=none Review URL: http://codereview.chromium.org/6822008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81491 0039d316-1c4b-4281-b951-d872f2087c98
* Added string values into the verification steps to print out the values ↵dyu@chromium.org2011-04-061-2/+3
| | | | | | | | | within the fields if the test fails. - AutofillTest.testNoAutofillForReadOnlyFields Review URL: http://codereview.chromium.org/6801005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80672 0039d316-1c4b-4281-b951-d872f2087c98
* Add an Autofill test to verify that Autofill does not fill in read-only fields.dyu@chromium.org2011-04-051-11/+51
| | | | | | | | | | | | | - testNoAutofillForReadOnlyField - read_only_field_test.html Fixed incorrect permissions for html file from 775 to 640. BUG=none TEST=none Review URL: http://codereview.chromium.org/6792035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80489 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80379 - Add an Autofill test to verify that Autofill does not fill in ↵dyu@chromium.org2011-04-041-51/+12
| | | | | | | | | | | | | | | | read-only fields. - testNoAutofillForReadOnlyField - read_only_field_test.html BUG=none TEST=none Review URL: http://codereview.chromium.org/6737017 TBR=dyu@chromium.org Review URL: http://codereview.chromium.org/6720039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80389 0039d316-1c4b-4281-b951-d872f2087c98
* Add an Autofill test to verify that Autofill does not fill in read-only fields.dyu@chromium.org2011-04-041-12/+51
| | | | | | | | | | | - testNoAutofillForReadOnlyField - read_only_field_test.html BUG=none TEST=none Review URL: http://codereview.chromium.org/6737017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80379 0039d316-1c4b-4281-b951-d872f2087c98
* Add Autofill test for verifying that credit card info is not stored when ↵dyu@chromium.org2011-03-301-0/+33
| | | | | | | | | | | | | autocomplete is off for credit card field. - autofill.testCCInfoNotStoredWhenAutocompleteOff - cc_autocomplete_off_test.html TEST=none BUG=none Review URL: http://codereview.chromium.org/6777003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79919 0039d316-1c4b-4281-b951-d872f2087c98
* Two sets of Autofill tests.dyu@chromium.org2011-03-291-2/+84
| | | | | | | | | | | | | | 1. testComparePhoneNumbers - Test phone fields parses correctly from a given profile. Contains files: autofill.py, form_phones.html, phone_pinput_autofill.txt, phone_pexpected_autofill.txt, pyauto.py 2. FormFillLatencyAfterSubmit -Test latency time on form submit with lots of stored Autofill profiles. Contains files: autofill.py, autofill_dataset_generator.py, latency_after_submit_test.html, pyauto.py TEST=none BUG=none Review URL: http://codereview.chromium.org/6685077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79763 0039d316-1c4b-4281-b951-d872f2087c98
* autofill: Rename all the entries remaining with AutoFill to Autofill.tfarina@chromium.org2011-03-211-2/+2
| | | | | | | | | | R=isherman@chromium.org,dhollowa@chromium.org BUG=72758 TEST=existing unit_tests Review URL: http://codereview.chromium.org/6688053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78856 0039d316-1c4b-4281-b951-d872f2087c98
* autofill: Rename AutoFillProfile to AutofillProfile.tfarina@chromium.org2011-03-101-22/+22
| | | | | | | | | BUG=72758 TEST=existing unit_tests Review URL: http://codereview.chromium.org/6658030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77630 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed failing Autofill tests for PyAuto.dyu@chromium.org2011-03-081-1/+1
| | | | | | | | | | | -Tests were failing due to the new country drop-down list field. -The dictionary entry for ADDRESS_HOME_COUNTRY were no longer matching the country name within profiles due to casing mismatch. BUG=74843 TEST=none Review URL: http://codereview.chromium.org/6624084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77234 0039d316-1c4b-4281-b951-d872f2087c98
* Functions not intended as tests should not begin with 'test'nirnimesh@chromium.org2011-03-031-2/+2
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6597028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76766 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed pyauto tests broken on Mac by r75344 for autofill.py.dyu@chromium.org2011-02-241-1/+2
| | | | | | | | | | | Mac runs on python2.5 and the 'with statement' is not supported in version 2.5. Used alternative code so the test runs and passes on Mac running python2.5. BUG=none TEST=none Review URL: http://codereview.chromium.org/6546053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75834 0039d316-1c4b-4281-b951-d872f2087c98
* Fix pyauto tests broken on Mac by r75344nirnimesh@chromium.org2011-02-181-1/+0
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6542019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75471 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed autofill.py import error.dyu@chromium.org2011-02-181-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6538043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75353 0039d316-1c4b-4281-b951-d872f2087c98
* Test Autofill's ability to merge duplicate profiles anddyu@chromium.org2011-02-181-11/+103
| | | | | | | | | | | | | | | | | throw away junk profiles. Includes a dataset converter script to convert csv file into profile dictionary list. testMergeDuplicateProfilesInAutofill Added additional tests: testFilterMalformedEmailAddresses - covers fixed bug 73654. testFilterIncompleteAddresses - covers fixed bug 71710. BUG=none TEST=none Review URL: http://codereview.chromium.org/6246147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75344 0039d316-1c4b-4281-b951-d872f2087c98
* Created test case for posting a form 1000 times to test autofill crowd ↵dyu@chromium.org2011-02-011-0/+31
| | | | | | | | | | source feature. BUG=none TEST=none Review URL: http://codereview.chromium.org/6368020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73308 0039d316-1c4b-4281-b951-d872f2087c98
* Fix autofill pyauto tests to deal with invalid credit card numbersnirnimesh@chromium.org2010-11-111-7/+9
| | | | | | | | | Autofill model has been changed to strip off non-digit chars in credit card input. Fix pyauto tests expectations. Review URL: http://codereview.chromium.org/4812001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65851 0039d316-1c4b-4281-b951-d872f2087c98