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

Issue 6246147: Test Autofill's ability to merge duplicate profiles and... (Closed)

Created:
9 years, 10 months ago by dyu1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, anantha, Paweł Hajdan Jr., Ilya Sherman, dennis_jeffrey
Visibility:
Public.

Description

Test Autofill's ability to merge duplicate profiles and 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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75344

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 21

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 36

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 104

Patch Set 10 : '' #

Total comments: 39

Patch Set 11 : '' #

Total comments: 24

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+577 lines, -12 lines) Patch
A chrome/test/data/autofill/dataset.txt View 1 2 3 4 5 6 7 8 9 1 chunk +250 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/duplicate_profiles_test.html View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/functional/autofill.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +103 lines, -11 lines 0 comments Download
A chrome/test/functional/autofill_dataset_converter.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +176 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dyu1
Autofill test to test profile merge. Includes the anonymized dataset input file and converted output ...
9 years, 10 months ago (2011-02-07 20:51:11 UTC) #1
dyu1
dataset-converter.py fixed a small bug dealing with line separator in windows.
9 years, 10 months ago (2011-02-07 21:39:02 UTC) #2
Ilya Sherman
At a high level, keep in mind that we're adding a C++ analog[1] to this ...
9 years, 10 months ago (2011-02-07 21:39:04 UTC) #3
Nirnimesh
http://codereview.chromium.org/6246147/diff/1008/chrome/test/data/autofill/dup-profiles-test.html File chrome/test/data/autofill/dup-profiles-test.html (right): http://codereview.chromium.org/6246147/diff/1008/chrome/test/data/autofill/dup-profiles-test.html#newcode7 chrome/test/data/autofill/dup-profiles-test.html:7: <form id="merge_dup" action="dup-profiles-test.html" method="post"> remove "action" key. It's redundant ...
9 years, 10 months ago (2011-02-07 22:20:02 UTC) #4
dyu1
http://codereview.chromium.org/6246147/diff/1/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6246147/diff/1/chrome/test/functional/autofill.py#newcode98 chrome/test/functional/autofill.py:98: Require a loop of 1000 submits as the toolbar ...
9 years, 10 months ago (2011-02-07 23:06:58 UTC) #5
Nirnimesh
http://codereview.chromium.org/6246147/diff/1008/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6246147/diff/1008/chrome/test/functional/autofill.py#newcode139 chrome/test/functional/autofill.py:139: for i in range(len(self.GetAutoFillProfile()['profiles'])): On 2011/02/07 23:06:59, dyu1 wrote: ...
9 years, 10 months ago (2011-02-07 23:26:19 UTC) #6
dyu1
I made some changes in the latest revision: 1. I added two functional tests in ...
9 years, 10 months ago (2011-02-09 19:44:56 UTC) #7
dhollowa
Since we're renaming files how about: duplicate_profiles_test.html On 2011/02/09 19:44:56, dyu1 wrote: > I made ...
9 years, 10 months ago (2011-02-09 20:44:59 UTC) #8
dennisjeffrey
I'm still new to looking at Chrome test code, but as requested, I took a ...
9 years, 10 months ago (2011-02-11 00:53:17 UTC) #9
Nirnimesh
http://codereview.chromium.org/6246147/diff/20001/chrome/test/data/autofill/dataset.txt File chrome/test/data/autofill/dataset.txt (right): http://codereview.chromium.org/6246147/diff/20001/chrome/test/data/autofill/dataset.txt#newcode1 chrome/test/data/autofill/dataset.txt:1: This dataset file can be parsed with dataset-converter.py dataset_converter.py ...
9 years, 10 months ago (2011-02-11 19:39:54 UTC) #10
dyu1
http://codereview.chromium.org/6246147/diff/20001/chrome/test/data/autofill/dataset.txt File chrome/test/data/autofill/dataset.txt (right): http://codereview.chromium.org/6246147/diff/20001/chrome/test/data/autofill/dataset.txt#newcode1 chrome/test/data/autofill/dataset.txt:1: This dataset file can be parsed with dataset-converter.py On ...
9 years, 10 months ago (2011-02-16 03:17:30 UTC) #11
dennis_jeffrey
Thanks a lot for making those python changes! I have some more comments below. I ...
9 years, 10 months ago (2011-02-16 19:43:29 UTC) #12
dennis_jeffrey
One more thing I just remembered: the file "dataset_converter.py" right now is used for autofill ...
9 years, 10 months ago (2011-02-16 20:02:28 UTC) #13
dhollowa
http://codereview.chromium.org/6246147/diff/25001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6246147/diff/25001/chrome/test/functional/autofill.py#newcode159 chrome/test/functional/autofill.py:159: # Autofill server captures 2.5% of the data posted. ...
9 years, 10 months ago (2011-02-16 20:34:14 UTC) #14
dyu1
Got rid of the _Convert() function and added StreamHandler to specify logging_level in __init__ http://codereview.chromium.org/6246147/diff/25001/chrome/test/functional/autofill.py ...
9 years, 10 months ago (2011-02-17 20:38:06 UTC) #15
dennis_jeffrey
A few more comments. It's looking good! http://codereview.chromium.org/6246147/diff/25001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6246147/diff/25001/chrome/test/functional/autofill.py#newcode159 chrome/test/functional/autofill.py:159: # Autofill ...
9 years, 10 months ago (2011-02-17 22:58:34 UTC) #16
dyu1
http://codereview.chromium.org/6246147/diff/25002/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6246147/diff/25002/chrome/test/functional/autofill.py#newcode195 chrome/test/functional/autofill.py:195: logging_level = logging.INFO) # Set verbosity to INFO, WARNING, ...
9 years, 10 months ago (2011-02-18 00:31:47 UTC) #17
dennis_jeffrey
LGTM Thanks for addressing all of my comments!
9 years, 10 months ago (2011-02-18 00:53:27 UTC) #18
Nirnimesh
9 years, 10 months ago (2011-02-18 19:01:26 UTC) #19
This has caused the following error on Mac bots

Traceback (most recent call last):
  File "../src/chrome/test/functional/pyauto_functional.py", line 51, in
<module>
    Main()
  File "../src/chrome/test/functional/pyauto_functional.py", line 44, in
__init__
    pyauto.Main.__init__(self)
  File "../src/chrome/test/functional/../pyautolib/pyauto.py", line 2152, in
__init__
    self._Run()
  File "../src/chrome/test/functional/../pyautolib/pyauto.py", line 2402, in
_Run
    test_names = self._ExpandTestNames(self._args)
  File "../src/chrome/test/functional/../pyautolib/pyauto.py", line 2334, in
_ExpandTestNames
    self._options.suite)
  File "../src/chrome/test/functional/../pyautolib/pyauto.py", line 2376, in
_ExpandTestNamesFrom
    args.extend(self._ImportTestsFromName(name))
  File "../src/chrome/test/functional/../pyautolib/pyauto.py", line 2252, in
_ImportTestsFromName
    module = __import__('.'.join(parts_copy))
  File
"/b/build/slave/chrome-mac-10_5-qa/build/src/chrome/test/functional/autofill.py",
line 10, in <module>
    import autofill_dataset_converter
  File
"/b/build/slave/chrome-mac-10_5-qa/build/src/chrome/test/functional/autofill_dataset_converter.py",
line 128
    with open(self._input_filename) as input_file:



This is because the 'with open..' construct does not exist in python2.5 used on
Mac.

Also, looks like you renamed to autofill_dataset_converter but did not change it
where it's used in autofill.py

Powered by Google App Engine
This is Rietveld 408576698