Say one has a structural codebase where lots of the code is in GUI control events and has no tests. So such code, to my knowledge is not suitable for unit testing Is there a tool that can test each routine automatically replacing references to code elements external to the routine (be they functions, variables or GUI controls) with appropriate mocks(?) and record the results in a database for later comparison after code changes? So the testing program would have the duty of writing, running and reporting tests with minimal intervention?
+2
A:
You didn't specify a language or development environment, so I am going to provide a few different options below. You will have to review them and see which one fits your situation and existing tools if needed.
Ivonna which requires Typemock Isolator
Microsoft Team System Web Test 2008
Visual Studio Test Profession 2010
HP QuickTest Professional (Link didn't work you will need to copy paste) 'https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-127-24^1352_4000_100__
Rodney Foley
2010-05-13 00:26:19
Most of those options are system level tools that exercise the entire webapp; they don't test the control events in isolation, as specified in the question.
gareth_bowles
2010-05-13 01:04:06
Thanks, I voted up the answer as it provides useful information but as gareth_bowles says I think these tools don't provide the type of functionality I was asking for. I think what I want is a tool that would create by itself a baseline record of an applications behaviour and then report changes to this behaviour as the application is developed. I just wonder if such a tool exists for any language/IDE. A lazy coder's tester I suppose
kjack
2010-05-13 09:05:04
@Gareth Most? So some do? So my statement about kjack having to review them to see which one fits his situation and existing tools is valid.@kjack you just changed your question with that comment. I answered your question as you presented it and I know Ivonna and Typemock Isolator combined will do what you requested in your question, I provided others that I think may do what you asked for. Wanting to record behavior and monitor it over time is profiling and not testing. There are profiling tools for every popular language. If you ask a new question about profiling you will get answers.
Rodney Foley
2010-05-14 16:47:23
Ok thanks CG (sorry can't bring myself to use your full username!)I guess you answered the question as originally framed
kjack
2010-05-19 09:12:20