def MissingExtraStringTest(windows):
    bugs = []
    for win in windows:
        if not win.ref:
            continue

        for char in CharsToCheck:
            missing_extra = ''

            if win.WindowText().count(char) > win.ref.WindowText().count(char):
                missing_extra = u"ExtraCharacters"
            elif win.WindowText().count(char) < win.ref.WindowText().count(char):
                missing_extra = u"MissingCharacters"

            if missing_extra:
                bugs.append((
                    [win,],
                    {
                        "MissingOrExtra": missing_extra,
                        "MissingOrExtraText": char
                    },
                    testname,
                    0))

    return bugs
Return the errors from running the test
dataset/ETHPy150Open JT5D/Alfred-Popclip-Sublime/Sublime Text 2/Browser Refresh/win/pywinauto/tests/missingextrastring.py/MissingExtraStringTest