Recording object method calls to generate automated test.
- by Constantin
I have an object with large interface and I would like to record all its method calls done during a user session. Ideally this sequence of calls would be available as source code:
myobj.MethodA(42);
myobj.MethodB("spam", false);
...
I would then convert this code to a test case to have a kind of automated smoke/load test.
WCF Load Test can do this for WCF services and CodedUI test recorder can do this for UIs. What are my options for a POCO class? I am in position to edit application code and replace the object in question with some recording/forwarding proxy.