cancel
Showing results for 
Search instead for 
Did you mean: 

browser loop append log folder

SOLVED
Highlighted
Regular Contributor

browser loop append log folder

Hi! Old noobie here once again in a new role as a web test automation person. I am looking at a very basic keyword test that does the following:

 

Browser Loop with Url in properties.

  • Script to login with user and password parameters.
  • Script to close.

 

I would like to automatically append a folder IN the browser loop steo item. If I put an appebd log folder within the loop as with:

 

Browser Loop with Url in properties.

  • Append log folder
  • Script to login with user and password parameters.
  • Script to close.
  • Pop log folder.

My log looks like (example)

msg Microsoft Edge was lanched.

evnt Navigating to...

msg APPEND TEXT

  • events as determined by my login
  • events as determined by my close

I really want the log to have 1 event for the three red elements described above so the log looks like the loop that the test is...

 

Is this possible in a keyword test? Thanks

 

3 REPLIES
Community Hero

Re: browser loop append log folder

Community Hero

Re: browser loop append log folder

There is no hook to put the append log within that browser loop element.  The Browser loop operation kind of encompases the loop code and the launch code in a single operation.  

To do EXACTLY what you want, you'll need to code around it.  What you will need to do is use the Browsers object and a for loop.  You can make this work in Keyword tests.  The script analogue code can be found at https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/running.html#S...


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.


I’ll be talking about “Hidden Treasures – TestComplete Script Extensions” at #SBConnect in October! Who’s joining me? Click here for tickets
Extensions available
Regular Contributor

Re: browser loop append log folder

Thanks all. 

Share Your Stories
Read Latest News
Top Kudoed Authors