Recording object method calls to generate automated test.
Posted
by
Constantin
on Stack Overflow
See other posts from Stack Overflow
or by Constantin
Published on 2011-01-13T19:51:44Z
Indexed on
2011/01/13
19:53 UTC
Read the original article
Hit count: 307
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.
© Stack Overflow or respective owner