Abstract:
A method and apparatus for capturing graphic user interface resource of an application, which method comprises: loading resource files in which visible text data in graphic user interfaces of the application are stored; duplicating the resource files; adding identification information to each visible text data unit in the resource files, the identification information being used to uniquely identify each visible text data unit in each of the resource files; capturing at least one panel of graphic user interface according to the graphic user interfaces of the application; and saving the duplicated resource files and the at least one captured panel as the graphic user interface resource of the application into an intermediate file. Advantageously, a linkage can be built up between the visible text data and the resource bundles by adding the unique identification information to each visible text data unit, and the application environment of the visible text data can be obtained by capturing the panels of graphic user interface of the application when the application is executed, so as to provide a basis for precise translation of the visible text data. There is also provided a method and apparatus for editing graphic user interfaces of an application.
Abstract:
A method and system for automatically generating unit test cases for a computer program that can reproduce runtime problems. The method comprises: modifying the computer program according to one or more interested target program units in the program and possibly occurring run time problems; test executing the modified program; and automatically generating unit test cases according to the interested runtime problems occurring during the execution of the interested target program units. Wherein the modifying step adds captor code and problem detective code into the program, the captor code being configured to record the execution paths and execution contexts of the interested target program units in the program; and the problem detective code being configured to detect the interested unexpected exceptions possibly raised and the interested violations of predefined behavior rules possibly produced by the execution of the program units. The present invention further provides methods and systems for debugging and for regression testing using the above method, and a computer program testing method and system.
Abstract:
A method and system for automatically generating unit test cases for a computer program that can reproduce runtime problems. The method comprises: modifying the computer program according to one or more interested target program units in the program and possibly occurring run time problems; test executing the modified program; and automatically generating unit test cases according to the interested runtime problems occurring during the execution of the interested target program units. Wherein the modifying step adds captor code and problem detective code into the program, the captor code being configured to record the execution paths and execution contexts of the interested target program units in the program; and the problem detective code being configured to detect the interested unexpected exceptions possibly raised and the interested violations of predefined behavior rules possibly produced by the execution of the program units. The present invention further provides methods and systems for debugging and for regression testing using the above method, and a computer program testing method and system.
Abstract:
The present invention provides a method and apparatus for capturing graphic user interface resource of an application, which method comprises: loading resource files in which visible text data in graphic user interfaces of the application are stored; duplicating the resource files; adding identification information to each visible text data unit in the resource files, the identification information being used to uniquely identify each visible text data unit in each of the resource files; capturing at least one panel of graphic user interface according to the graphic user interfaces of the application; and saving the duplicated resource files and the at least one captured panel as the graphic user interface resource of the application into an intermediate file. By using the present invention, a linkage can be built up between the visible text data and the resource bundles by adding the unique identification information to each visible text data unit, and the application environment of the visible text data can be obtained by capturing the panels of graphic user interface of the application when the application is executed, so as to provide a basis for precise translation of the visible text data. The present invention also provides a method and apparatus for editing graphic user interfaces of an application.