1. A method for generating a test framework from a graphical user interface application (GAP) to test a target application, comprising: capturing and storing in a memory with a processor a target application (TAP) interface of a TAP, comprising: a TAP data parameter; and a TAP return value parameter; generating a user interface including an input parameter area; adding the TAP data parameter, and TAP return value parameter to the input parameter area; interacting with a GAP through an accessibility layer, during processor execution of the accessibility layer and the GAP from a memory; capturing and storing in the memory with the processor a reusable portion of the GAP useable to test the target application, and 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 and storing the GAP state definition in the memory with the processor, 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 and storing the test framework in the memory with the processor, the test framework comprising: a test case specifying an interaction with the GAP through the accessibility layer based on the structural representation of the reusable portion of the GAP useable to test the target application; and a test data element comprising an input parameter for the interaction of the test case with the GAP; and selecting the test framework through a user interface.