Patent ID: 7958422

Claim:
A method for generating scenario programming code, in a high level language, for a device under test (DUT), the method comprising: a. receiving a command selection including a device command b. retrieving a device library for the received device command, wherein the device library includes a command syntax for an execution of the device command by the DUT, wherein the command syntax conforms to the high level language; c. retrieving response template parameters for the device command, the response template parameters being retrieved from a response template of the device command, the response template includes definitions of fields in a command response, a plurality of command responses and verification rules associated with one or more fields; and d. generating the scenario programming code to execute the device command, wherein the scenario programming code being generated using the command syntax defined in the device library, the generated scenario programming code includes programming instructions to verify the command response using the verification rules and one or more of the plurality of command responses, at runtime, wherein the response template further includes a location of a pattern of parameters within a plurality of parameters in the command response, the pattern of parameters includes information defining dimensions of the pattern of parameters.