Setting a Test Item's Count via script
- 7 years ago
The limitations of the Test Items method of running test cases is exactly that... that basically all aspects of configuring Test Items are hard coded prior to execution and cannot be altered at runtime. If you desire runtime control of what gets executed, when, how many times, and in configurable dependancies, the way to do so is to run tests as functions/tests called within others. Most frameworks that I have designed and worked with in TestComplete work in this fashion. Understandably, this means you can't get the "pretty" reports and graphs out of TestComplete as to how many "tests" passed/failed... but again, using code, external files, etc., you can construct your own reporting which is what we do by writing to an SQL table after each test what the test status is.