Record method calls including parameters such that they can be executed after program has executed
<p>I am creating an automated test framework.  At present in order to best find any issues I have introduced randomness into the tests, such that a test will generate random data and try multiple paths.  However this has lead to a problem, I am no longer able to easily re-execute failed tests.</p>

<p>In order to proceed I need to implement a way to store the actions of the test, including their parameters.  With the way I have implemented the framework all of the "work" is handled by one class, thus if I was able to record the methods invoked with parameters in this class then I would have a full record of actions executed in the script.</p>

<p>From this list of methods though I need an easy way to re-execute these method calls, preferably with as little manual work as possible.</p>

<p>Sorry if this has been asked before but I wasn't able to find anything to help.</p>
