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
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#Script_Looping.