cancel
Showing results for 
Search instead for 
Did you mean: 

Log Folder Items, Set the Icon while inside the stack (or auto detect on some hiearchy)

0 Kudos

Log Folder Items, Set the Icon while inside the stack (or auto detect on some hiearchy)

I thought this should just be a feature already and I posted asking for help to get it to work.

 

https://community.smartbear.com/t5/TestComplete-General-Discussions/Log-Folder-Icon-Checkpoint-Over-...

 

The log folders are real nice for cleaning up the logs but they only change Icon's if the Folder contains an Error or a Warning.    I want LogFolders to show a green if it contains a checkpoint.  A common sense order of importance Error > Warning > Checkpoint > Message.   Instead it's showing Error > Warning > Message.

 

I think it should even auto detect based on the Log item's priority that has been set.

 

Or just a method to hit  ie,  Log.CurrentStack(iconWarning, priorityHigh);

 

 

function TestScriptLog()
{ 
  Log.AppendFolder("This folder Icon should be an Error");
  Log.Message("Informational in Folder","",pmNormal);
  Log.Checkpoint("Checkpoint in Folder","",pmNormal);
  Log.Warning("Warning in Folder","",pmNormal);
  Log.Error("Error in Folder","",pmHighest);
  Log.PopLogFolder();
  
  Log.AppendFolder("This folder Icon should be an Error");
  Log.Message("Informational in Folder");
  Log.Checkpoint("Checkpoint in Folder");
  Log.Warning("Warning in Folder");
  Log.Error("Error in Folder");
  Log.PopLogFolder();
  
  Log.AppendFolder("This folder Icon should be a Warning");
  Log.Message("Informational in Folder","",pmNormal);
  Log.Checkpoint("Checkpoint in Folder","",pmNormal);
  Log.Warning("Warning in Folder","",pmHighest);
  Log.PopLogFolder();
  
  Log.AppendFolder("This folder Icon should be a Warning");
  Log.Message("Informational in Folder");
  Log.Checkpoint("Checkpoint in Folder");
  Log.Warning("Warning in Folder");
  Log.PopLogFolder();  
  
  Log.AppendFolder("This folder Icon should be a Checkpoint");
  Log.Message("Informational in Folder","",pmNormal);
  Log.Checkpoint("Checkpoint in Folder","",pmHighest);
  Log.PopLogFolder();
  
  Log.AppendFolder("This folder Icon should be a Checkpoint");
  Log.Message("Informational in Folder");
  Log.Checkpoint("Checkpoint in Folder");
  Log.PopLogFolder();
    
  Log.AppendFolder("This folder Icon should be an Informational");
  Log.Message("Informational in Folder","",pmHighest);
  Log.PopLogFolder();
  
  Log.AppendFolder("This folder Icon should be an Informational");
  Log.Message("Informational in Folder");
  Log.PopLogFolder();
  
}

 

Announcements
Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements