Forum Discussion
nageshp
14 years agoOccasional Contributor
Hi Helen ,
The code you have sent works absolutely fine with TestComplete version 8.
As I have been using v7.52 , I found that its COM does not have the 'RunTestByName' method at all .
To make it work in 7.52 I have first run the project but the problem is that via COM how to add Project test items for a project to run..
IntegrationObject.RunProject "ProjectName" ' How to add a test item/Unit 1 script to Project .
Set objVars = IntegrationObject.GetObjectByName("Project").Varibales.
If I manually set the Project item it works , but i want to set the project test items through COM and then run the project.
Thanks
Nagesh
The code you have sent works absolutely fine with TestComplete version 8.
As I have been using v7.52 , I found that its COM does not have the 'RunTestByName' method at all .
To make it work in 7.52 I have first run the project but the problem is that via COM how to add Project test items for a project to run..
IntegrationObject.RunProject "ProjectName" ' How to add a test item/Unit 1 script to Project .
Set objVars = IntegrationObject.GetObjectByName("Project").Varibales.
If I manually set the Project item it works , but i want to set the project test items through COM and then run the project.
Thanks
Nagesh