1. A method for generating a test framework from a graphical user interface application (GAP) to test a target application, comprising: interacting with a GAP through an accessibility layer; capturing a structural representation of a GAP graphical user interface (GUI) screen including a GUI element, and a GAP state of the GAP; establishing a GAP state definition that defines the GAP state, comprising: a function type for the GUI element; an element property for the GUI element; and an element value for the GUI element; establishing a test framework comprising: a test case specifying an interaction with the GAP through the accessibility layer based on the structural representation; and a test data element comprising an input parameter for the interaction of the test case with the GAP.