Run the test hold by a TestItem
Since I am too limited by the way tests are run in the View>Organize Tests panel, I was happy to find I can code my own run logic by accessing TestItems by scripting ( https://support.smartbear.com/testcomplete/docs/reference/project-objects/project/testitem/index.html ). Unfortunately, this interface seems to be for display only because there is no way to run the KeywordTest or script held in the test item.
I found a bit strange there exists a property TestItem.ElementToBeRun but no method to actually run it !
The workaround is to parse the caption string, but this is ugly and vary if it's a script or keyword test. Finally, there is no way to access arguments specified in the Organize Test panel
In brief: add a .run method to TestItem or TestItemElement which call the associated KeywordTest or script function
Bonus: add a new property which point to the KeywordTest object (or script)
Bonus 2: add a way to access arguments given to this TestItem