How can I organize test logs in a tree grouped by added steps of the keyword test?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2018
07:26 AM
06-28-2018
07:26 AM
How can I organize test logs in a tree grouped by added steps of the keyword test?
I want to group test logs like it shown on that video: https://www.youtube.com/watch?v=FuhWmeJ4_SI&feature=youtu.be&t=375
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2018
07:59 AM
06-28-2018
07:59 AM
Ha, that's from my webinar!
What you're looking for is the CreateFolder, PopFolder and PushFolder methods of the log object:
I actually created wrapper functions for this that provides a default styling and a single place to update / expand based on needs.
function indentLog(sDescription) { let oAttr = Log.CreateNewAttributes(); oAttr.Bold = true; let step = Log.CreateFolder(sDescription, "", pmNormal, oAttr); Log.PushLogFolder(step); } function outdentLog(sExpected) { sExpected = sExpected ? sExpected : "Finished"; Log.Message(sExpected); Log.PopLogFolder(); }
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2018
08:09 AM
06-28-2018
08:09 AM
Thank you! I'll gladly watch your webinar. It seems like your way to script tests is very like to the way I want to follow.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2018
08:11 AM
06-28-2018
08:11 AM
Feel free to send me a PM if you have any specific questions or want tips and tricks sir!
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
