1. A method for testing a target application (TAP) based on a graphical user interface application (GAP), comprising: determining a TAP data parameter and a TAP return value parameter; generating a test user interface comprising the TAP data parameter and the TAP return value parameter; retrieving from memory a GAP state definition for the GAP captured through an accessibility layer and comprising a graphical user interface (GUI) element of a GAP screen; and establishing in memory a test framework for testing the TAP through the test user interface, the test framework comprising a test case comprising: a test data element associated with the GUI element for sending test data to the TAP data parameter; and a test return value responsive to the TAP return value parameter and application of the test data element to the TAP.