hlalumiere
14 years agoRegular Contributor
Is it possible to modify a Project.Variables before running a test via COM?
As the title says, I need to modify a project variable before running a test through TestExecute's COM access. I run individual test units through the .RunProjectTestItem of the Integration object. As I understand it, GetObjectByName throws an exception if a test is not running at the time of its calling (which really makes no sense at all to me; why would you want to modify a variable while a test is running??). How should I go around that? Start the test, pause it, change the variable, then continue? How do I pause a test without stopping execution?
Is there a more complete documentation that describes the datatypes and interfaces available through COM in detail?
Also I saw the other similar post where it is suggested to use IntegrationObject.GetObjectByName("ProjectSuite").Variables, but GetObjectByName returns an Object, what type should I cast it to to be able to access the .Variables property?
Is there a more complete documentation that describes the datatypes and interfaces available through COM in detail?
Also I saw the other similar post where it is suggested to use IntegrationObject.GetObjectByName("ProjectSuite").Variables, but GetObjectByName returns an Object, what type should I cast it to to be able to access the .Variables property?