Forum Discussion

JBO's avatar
JBO
New Contributor
7 years ago

command line: exportLog option without visualizer Images?

Hi,

I am lookig for a command line Option to export the log without the visualizer Images.

The only Option from the command line I find is this which exports the images as well:
TestComplete.exe "C:\My Projects\MySuite.pjs" /run /p:MyProj /exportLog:"C:\TestLogs\Log.html"

Or is the only way to do this to write a script at the end of the test suite that uses this command?

Log.SaveResultsAs(FileName, LogFormat, ExportVisualizerImages, LogScope)
FileName     [in]        Required        String        
LogFormat     [in]        Optional        Integer     Default value: 0 (XML format)   
ExportVisualizerImages     [in]        Optional        Boolean     Default value: True   
LogScope     [in]        Optional        Integer     Default value: 0 (full test log)   
Result     Boolean

Regards,
JBO


1 Reply

  • shankar_r's avatar
    shankar_r
    Community Hero

    There is no option in command line i guess.

     

    We can disable the Visualiser using below line of codes

     

    Options.Visualizer.CollectMode = vcmOff;    // Disable Test Visualizer
    Options.Visualizer.CollectMode = vcmImgObj; // Enable Test Visualizer, save both images 

    At start of your project you can set the above option to instruct how the log should get saved.