Forum Discussion
AlexeyKolosov
14 years agoStaff
Hi Pavel,
How is it possible to disable a project from the script in another project?
...
But there is no such object as ProjectSuite.TestItem.I need to skip several projects on certain condition but have no idea how to do it.
We have an appropriate suggestion in our DB, and your post has increased its rating. However, I cannot tell you for sure whether and when it will be implemented. Currently, it is possible to enable\disable projects and their items using an external *.js file working with TC via COM. The Integration.TestSuite property allows managing projects (and their test items).
//Disable an item of a project suite
IntegrationObj.TestSuite("").TestItem(Index).Enabled = false;
Its possible to disable test items of the project using Project.TestItems.TestItem(i).Enabled property.
This property is read-only, you cannot modify its value.
Had just an idea to modify xml data of .pjs file from script, where information about enabled projects stored (to change "enabled" property for needed item in "test data" node.
We do not recommend working with project files manually.
Related Content
- 7 months agoLearner_Pranavi
- 4 years agoMarekC
- 5 years agoianrobinson
Recent Discussions
- 3 days agoMW_Didata