Ask a Question

Is there any way to separate the logs when I do Browser Loop on a single Test Case?

jcatayong
Contributor

Is there any way to separate the logs when I do Browser Loop on a single Test Case?

Is there any way to separate the logs when I do Browser Loop on a single Test Case?
For Example 
One test log for chrome, one for firefox etc. for a single test.

3 REPLIES 3
AlexKaras
Champion Level 2

Hi,

 

Log.AppendFolder() on loop start with the complimentary Log.PopLogFolder() on loop end.

Regards,
  /Alex [Community Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================

Hi,

 

Can you give me a sample script on how to use this?

 

thanks,

For example, check the <Users>\Public\Documents\TestComplete 12 Samples\Web\Orders\Web\ sample project, Main function.
E.g.:

Sub Main
  Dim i, BrowserName
  Call Log.Message("Found " + aqConvert.IntToStr(Browsers.Count) + " browsers:") 
  For i = 0 To Browsers.Count - 1
    Call Log.AppendFolder(Browsers.Item(i).Description)
    Call Browsers.Item(i).Run("http://support.smartbear.com/samples/testcomplete12/WebOrders/")
    Call Test()
    Call Log.PopLogFolder()
  Next
End Sub
Regards,
  /Alex [Community Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: