Hi All,
Can we create a log (Project .log) through script? I have different test cases running through same function, so need to create a log (new log file )through code for each test cases?
Solved! Go to Solution.
Hi,
> Is it possible to export just the logs in particular folder through script.
Not sure that I got the question, but nevertheless: the log can be exported (manually or via Log.SaveResultsAs() ) as a whole only.
To get a part of the log, you can export the whole log and parse it manually then.
Hi,
No this is not possible.
Consider Log.AppendFolder() or aqTestCase object.
Hello.
Yes, you can export your logs to a specific path via
Log.SaveResultsAs(FileName, LogFormat, ExportVisualizerImages, LogScope)
FileName would be the path to your file destination e.g. C:\Users\Public\Documents\mylog.mht
But remember that you can not simply export certain rows if you use a encrypted mht file, therefore you should probaly use the HTML format.
lsHTML | 1 | HTML format – a web page with accompanying images, stylesheets and other data files. The FileName parameter specifies the folder to save the files. The web page name is index.htm. |
Greetings Leon
Hi,
> Is it possible to export just the logs in particular folder through script.
Not sure that I got the question, but nevertheless: the log can be exported (manually or via Log.SaveResultsAs() ) as a whole only.
To get a part of the log, you can export the whole log and parse it manually then.
Thank you Community!
@hrshilpashree did the community members answer your question? Please mark the best answer as a Solution. This will really help people searching for answers here in the future. Thank you!
Subject | Author | Latest Post |
---|---|---|