Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Ajay,
Use the modified code:
var te = new ActiveXObject ("TestComplete.TestCompleteApplication.8");
var tei = te.Integration;
te.Manager.Runmode = 1;
tei.OpenProjectSuite("C:\\Tests\\AJProjectSuite\\AJProjectSuite.pjs");
tei.RunProjectTestItem ("AJ", "Tests_v_1_5");
var teproj = tei.GetObjectByName("Project");
var AJtst = teproj.Variables;
AJtst.VariableByName("GlobalUserName") = "AjUser";
AJtst.VariableByName("GlobalPassword") = "AjPassword";
while (tei.IsRunning())
{
WScript.Sleep(100);
}
te.Quit();
The variables' values will be set before "Tests_v_1_5" is executed.
Related Content
- 2 years ago
- 4 years ago