How to Set Project Variables using COM
Hi All ,
I am unable to set the Project varibles through a program script using TestCompletes COM objects.
I launch instance of TestComplete using code
Set objTC = CreateObject("TestComplete.TestCompleteApplication")
Set objIntegration = objTC.Integration
objIntegration.OpenProjectSuite "C:\Test.pjs"
...... and so on....
From here on after I open the project suite , I want to get TestComplete Project Object to set the Project varibales .
Like ... Project.Variables.AddVariable "VarName" , "String"
Project.Variables.VarName = "MyValue"
But I dont think even after I get the Project Object i will be able to set the Project variables coz there seems to be no methods supported via COM via Project Object to handle Project Variables
However I found a class in TestCompletes COM model named something like 'ItcVariablesRunTime...' . Sorry I dont remember the exact class name. Anyways this class shows all the methods relevant to Project Varibales like Add Variables , Remove Varibale etc.
Let me know if anyone has implemented this. OR how to set Project Variables via TestCompletes COM.
Note : I have been using TestComplete v7.52
Thanks
Nagesh