jhopfner
15 years agoOccasional Contributor
Running the open project from a script
We currently have the need to use an automatic scheduler and run a TestComplete project from the command line using TestExecute. Before the project's keyword tests are ran, we need to change the values of a couple project variables. This is easy to do from the command line, we simply call a routine that exists in a script in the project. Our problem is, how can we continue running the project as soon as the variables have been changed? Here's the procedure that changes the values of the variables:
procedure OrionNewDev;
begin
Project.Variables.Server := 'orion';
Project.Variables.Database := 'newdev';
end;
We're calling the routine as follows:
"C:\Program Files\Automated QA\TestExecute 7\Bin\TestExecute.exe" /run "\\VisEntTest\VisPJSuite\Visions Enterprise Testing Project Suite.pjs" /project:VisClient /unit:Run /routine:OrionNewDev /SilentMode
The support team has instructed us to use
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
KeywordTests.Test_Name.Run(); in the script after changing the variables, however this will only run one keyword test within the procedure. We need the entire project to run the way it's set up (see attachment), to the same effect as right clicking TestExecute's tray icon and selecting Run.
Is this possible to do through scripting?
procedure OrionNewDev;
begin
Project.Variables.Server := 'orion';
Project.Variables.Database := 'newdev';
end;
We're calling the routine as follows:
"C:\Program Files\Automated QA\TestExecute 7\Bin\TestExecute.exe" /run "\\VisEntTest\VisPJSuite\Visions Enterprise Testing Project Suite.pjs" /project:VisClient /unit:Run /routine:OrionNewDev /SilentMode
The support team has instructed us to use
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
KeywordTests.Test_Name.Run(); in the script after changing the variables, however this will only run one keyword test within the procedure. We need the entire project to run the way it's set up (see attachment), to the same effect as right clicking TestExecute's tray icon and selecting Run.
Is this possible to do through scripting?