13 years ago
use c# calling script addunit via com, how can I save the changes before quit.
use c# calling script addunit via com,
code is:
.....
TestComplete.ITestCompleteCOMManager TestCompleteManager = (TestComplete.ITestCompleteCOMManager)TestCompleteObject;
TestComplete.ItcIntegration IntegrationObject = TestCompleteManager.Integration;
IntegrationObject.OpenProjectSuite(sProjectSuitName);
TestComplete.ItcProjectIntegration project = IntegrationObject.get_Project(sProjectName);
project.AddUnit(scPath); // add success
but when i want to quit testComplete (i use "TestCompleteManager.quit " to quit),
the testComplete reminds me if save the changes in testComplete(see the attach picture)
but I didn't find any method to save the changes before quit.
so if i add a new scriptunit and i want to save the project,
which method should i use,before i call the "TestCompleteManager.quit "method?
or set the testComplete auto save the changes before quit?
tks
code is:
.....
TestComplete.ITestCompleteCOMManager TestCompleteManager = (TestComplete.ITestCompleteCOMManager)TestCompleteObject;
TestComplete.ItcIntegration IntegrationObject = TestCompleteManager.Integration;
IntegrationObject.OpenProjectSuite(sProjectSuitName);
TestComplete.ItcProjectIntegration project = IntegrationObject.get_Project(sProjectName);
project.AddUnit(scPath); // add success
but when i want to quit testComplete (i use "TestCompleteManager.quit " to quit),
the testComplete reminds me if save the changes in testComplete(see the attach picture)
but I didn't find any method to save the changes before quit.
so if i add a new scriptunit and i want to save the project,
which method should i use,before i call the "TestCompleteManager.quit "method?
or set the testComplete auto save the changes before quit?
tks