I use the test name as my main description but I also wrap tests within Log.AppendFolder("My Description") and Log.PopLogFolder(). I am not sure why the 'Description' field in the Execution Plan does not provide this feature. SmartBear?
let WWPointOfSale_File = require("WWPointOfSale_File");
let Attributes_File = require("Attributes_File");
let WWString = require("WWString");
// Script Fragment
function TC7590_VerifyRefNumberAndPaymentType()
{
try
{
let attr = new Attributes_File.attributes_File();
Log.AppendFolder("TC7590_VerifyRefNumberAndPaymentType")
let btnCancel = undefined;
Log.AppendFolder("1. Login to Point Of Sale application.","",pmNormal,attr.stepFolder());
let Application = new WWPointOfSale_File.WWPointOfSale_App();
Application.Open_App();
let frmMain = Application.frmMain();
frmSale = Application.frmSale();
frmSaleCurrentObject = frmSale.CurrentObject;
if(typeof frmSaleCurrentObject == "object"){
if (frmSaleCurrentObject.Exists == true){
btnCancel = frmSale.btnCancel().CurrentObject;
btnCancel.Click();
}
}
Log.PopLogFolder();
I don't see documentation for the description field in the Execution Plan docs. If I add the column and put text there it removes the text when I save, run the project or run the focused item. What is it for?
I just found this but not why I can't set the description property in the Execution Plan for the project. Maybe I am just misunderstanding the purpose of the field and it's intended use. I know this field does not show up in the test log or run summary.
To address such need, I personally utilized a combination of actions to reflect and make execution log readable: 1-Project Name 2-Introduce test case specific log entry by using "Log Message" 3-Introduce log foldering by using "Append Log Folder" with "Pop Log Folder", and "Log Attributes"
I use a meanigfull test name plus we have a convention to add a log message at the start and end of all tests and support procs. It would be nice if the description was added the calling side as well in the comments, or even if the comments were included in the log.