rhu
3 years agoContributor
How to write logo information into a variable or table?
When searching for Testcomplete Examples i often find Examples writeing results to log file(s).
How can i write this information into a variable or a Table
E.g. a function that searches for files in a directory and writes the file name into the log:
What do i have to do to write the information into a variable or Table?
function FileFinder()
{
var foundFiles, aFile;
foundFiles = aqFileSystem.FindFiles("C:\\Users\\imyuser\\Downloads\\","response_*.json");
if (!strictEqual(foundFiles, null))
while (foundFiles.HasNext())
{
aFile = foundFiles.Next();
Log.Message(aFile.Name);
}
else
Log.Message("No files were found.");