Ask a Question

Log.appendfolder - is creating child folder

SOLVED
salley
Frequent Contributor

Log.appendfolder - is creating child folder

Hello,

my script is creating a child folder when i'm using Log.Appendfolder. not sure where i'm doing wrong in my script, script and logs attached, 

thanks

4 REPLIES 4
tristaanogre
Esteemed Contributor

That's what appendfolder does... it creates a sub folder within the log folder that you are currently in.

What are you trying to do with appendfolder that is not working as expected?

 

https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/appendfolder....

 

I quote:

The AppendFolder method creates a new folder in the test log and activates it. Once activated, TestComplete can send all posted messages to this folder. The folder can hold messages of different types (they are posted by the Log.ErrorLog.WarningLog.MessageLog.EventLog.PictureLog.File and Log.Link methods) as well as other folders.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

If you want a new folder but not on the child level, take a look at this:

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/logging/pop-folder.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
salley
Frequent Contributor

Thanks,, i was missing Log.PopLogFolder

salley
Frequent Contributor

Thanks a lot,  i wasn't looking for a child folder. Log.PopLogFolder was missing in my code

cancel
Showing results for 
Search instead for 
Did you mean: