Disclosed is a method and system for optimizing generation of test cases. The method comprises receiving of one or more parameters by the processor 202 to be used for establishing an interaction with a target application. Further identifying of one or more interactive elements is done by the processor 202 associated...