1. A method for translation verification testing, comprising: reading, by a computer system, a symbol table and a syntax tree to which source code corresponds; obtaining, by the computer system, widget objects and widget object methods in the symbol table; organizing, by the computer system, the widget objects and widget object methods into a widget structure tree according to a code calling order in the syntax tree; and generating, by the computer system, an index file corresponding to the source code by using the symbol table, the widget structure tree and resource files, wherein the index file records relationships between the widget objects.