1. A method implemented by a computer system comprising: capturing a first admin-console context, wherein the first admin-console context includes a first set of state attribute values corresponding to a first plurality of elements included in a first context hierarchy of a console software application being executed by a processor included in the computer system; recording a plurality of events that occur at the admin-console in a memory accessible to the processor; and storing, in a nonvolatile data storage area accessible by the processor, a Reusable User Interaction (RUI) Script that includes the captured admin-console context and a sequence of the recorded plurality events.