Patent ID: 9141521
Filing Date: 2015-09-22
Classification: G06F

Abstract:
1. A method for automatically generating a test script for a graphical user interface, the method comprising: defining information of each at least one component in a tested graphical user interface, wherein an attribute of each component and a mutual constraint relationship for the at least one component is defined; writing a test case file, wherein values to be written into the at least one component in the tested graphical user interface and test check point information are stored in the said file; generating a file of combined values of the at least one component, wherein values of the component in the test case file are combined to obtain several files, each file containing one possible combination; adding an operation type to each component in each file of combined values, wherein an operation type of each component value in the file of combined values is determined according to the attribute of the component; determining a sequence of operations in each of the files of combined values, wherein the sequence of operations in the files of combined values are rearranged according to the mutual constraint relationship for the components; and generating the test script, wherein the test check point information is added to the end of each file of combined values to obtain the test script file.