主权项 |
1. An apparatus for generating a test script from a pre-existing test script for testing a graphical user interface (GUI), said system comprising:
a plurality of processors; a non-transitory computer-readable storage medium coupled to the plurality of processors; a first parser, stored on the computer readable storage medium and executed on the plurality of processors, a pre-existing test script to identify, using keywords and associated parameters, a first GUI action in a first line of the pre-existing test script; a second parser, stored on the computer readable storage medium and executed on the plurality of processors, that parses a model associated with the GUI to identify GUI actions and associated elements for the GUI actions in the model; a matching engine, stored on the computer readable storage medium and executed on the plurality of processors, for identifying a corresponding element for the first GUI action in a second line, following the first line, in the pre-existing test script that match a GUI action and associated element of the GUI actions and associated elements for the GUI actions in the model; and a generator, stored on the computer readable storage medium and executed on the plurality of processors, for generating a new test script by adding the first GUI action and corresponding element to the pre-existing test script. |