Forum Discussion
AlexeyKolosov
15 years agoStaff
Hi Patricio,
I suggest that you use a *.js file that would launch your "main" project suite and copy the generated file.
//test.js
var fso = new ActiveXObject("Scripting.FileSystemObject");
// The line below will remove all of the .mht files, so, after running the test.js file, you will always get the tcResults1.mht file.
fso.DeleteFile("C:\\Users\\UserName\\AppData\\Local\\Temp\\tcResults*") // specify your temp folder here
var te = new ActiveXObject("TestExecute.TestExecuteApplication");
var IObject = te.Integration;
IObject.OpenProjectSuite("C:\\ProjectSuite14\\ProjectSuite14.pjs"); // here should be the path to your "main" project suite file
IObject.RunProjectSuite();
while(IObject.isRunning())
{
WScript.Sleep(100);
}
IObject.CloseProjectSuite();
WScript.Sleep(1000);
fso.CopyFile ("C:\\Users\\UserName\\AppData\\Local\\Temp\\tcResults1.mht", "c:\\results.mht"); // as the first parameter, specify your temp folder here
Run TestExecute and execute this file. The .mht file you need will be located in the "C:\" folder.
Related Content
- 2 years ago
- 12 years ago
Recent Discussions
- 8 hours ago
- 7 days ago
- 10 days ago