Generating test scripts through application integration
AssigneeInternational Business Machines Corporation
InventorsRichard W. Pilot, Graham Richards
Life of this patent
Estimating the term…
Abstract
This claimed subject matter relates to techniques for generating a test script from a pre-existing script for testing a graphical user interface (GUI) comprising: parsing a pre-existing test script; parsing the model associated with the GUI; identifying GUI actions that are identified by keywords and associated parameters that exist in the pre-existing test script; and generating a new test script by adding the identified actions.
Claims12
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.
A computer program product for generating a test script from a pre-existing script, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code embodied therewith and the computer-readable program code configured to perform a method, the method comprising:
- parsing a pre-existing test script for a graphical user interface (GUI) to identify, using keywords and associated parameters, a first GUI action in a first line of the pre-existing test script;
- parsing a model associated with the GUI to identify GUI actions and associated elements for the GUI actions in the model;
- 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;
- identifying GUI actions in the pre-existing test script that match GUI actions in the model;
- and
- generating a new test script by adding the first GUI action and corresponding element to the pre-existing test script.
Dependencies are inferred from the claim text.