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, wherein the symbol table and the syntax tree to which the source code corresponds are generated by performing semantic analysis on the source code; 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 by recording a caller, a callee and an appearance order of the widget object methods in the widget tree structure as the syntax tree is traversed, and establishing parent, child, and sibling node relationships between the widget objects in the widget tree structure; 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, and the generating further comprises: statically parsing parameters of the widget object methods; tracing message keywords in the resource files by using the parameters of the widget object methods and according to the symbol table; detecting correlation between the widget objects by using the widget tree structure; and generating the index file corresponding to the source code by using the parameters of the widget object methods, the message keywords and the correlation between the widget objects.