cancel
Showing results for 
Search instead for 
Did you mean: 

Log.appendfolder - is creating child folder

SOLVED
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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Hero

Re: Log.appendfolder - is creating child folder

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
[Community Expert Group]
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
Extensions available
Community Hero

Re: Log.appendfolder - is creating child folder

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

4 REPLIES 4
Community Hero

Re: Log.appendfolder - is creating child folder

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
[Community Expert Group]
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
Extensions available
Community Hero

Re: Log.appendfolder - is creating child folder

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

Frequent Contributor

Re: Log.appendfolder - is creating child folder

Thanks,, i was missing Log.PopLogFolder

Highlighted
Frequent Contributor

Re: Log.appendfolder - is creating child folder

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