I have a TestComplete project with several test items, some f them are selected in the Test Items page of the project editor (especially the top item is, and some directly below).
If I right-click the project in the Project Explorer and click "run myProject [Project]", the tests run as desired.
In Visual Studio, when I add a "TestComplete 12 test" item and select the project suite containing the project (.pjs file) or the project itself (mds file), the tree structure appears as in the Test Items view, with the same items selected.
However, a test run will fail, saying that the "project cannot be run, because there are no enabled test items that can be run. ".
Strange thing is that all is perfectly fine for other projects in the same project suite.
A test item cannot be run if there is no active desktop on the machine on which it is targeted to run. Please double check to make sure that when you configure your tests to run via Visual Studio that the agent on which they are triggered to run have 1) an active logged in session with 2) an available active desktop.
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group. I love good food, good books, good friends, and good fun.