Forum Discussion
From the help for Log.File
Remarks
-
The method renames the file when copying it to the test results folder. The new name has the format
File<index>.originalExtension. This approach helps TestComplete avoid naming conflicts when posting files. Below is a typical example of the code that might cause conflicts:Log.File("C:\MyFile.txt");
ChangeFileInSomeWay("C:\MyFile.txt");
Log.File("C:\MyFile.txt");If TestComplete does not rename the file when posting it to the log, the second call to the
Log.Filemethod would cause a naming conflict.
Thanks for the updates .
But here how it is working.
For e.g. Script 1 and Script 2 need to run on Window 10 and on Firefox 66 then Log.File will generate individual MHT report for Script 1 and Script 2.
Goal is to generate MHT report after Script 1 and Script 2 finished running. We have almost 150 CBT tests as the script are running on different OS/browsers .
We want to have Single MHT report after 150 CBT tests finished running.
Thanks
Nishchal
- tristaanogre7 years agoEsteemed Contributor
Unfortunately, that's not going to be possible due to how the test are run against the CBT environments. Think of each CBT environment run as being another machine running another copy of your project. So, you'll have 150 different MHT files that you will pull back and store.