Forum Discussion

PaddyMc's avatar
PaddyMc
Frequent Visitor
9 years ago

Log Items Organisation

Using Jscript is there any way to mimic the Log Item folder structure as shown below?  Using creat folder options will allow me to organise the test log.  But what i am trying to achieve is a Log items list derrived from a data driven test, that will show each row as an log item/scenario to get a better visual picture of the state of the test run.

 

12-17-2015 2-30-34 PM.png

 

Could anyone advise if there is anyway to dynamically create Log Items via Jscript the way running from the project test items would?

2 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    Look at Log.PushLogFolder and Log.PopLogFolder. I think this is what you are looking for. 

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    Hi,

    maybe this : Log.SaveResultsAs() ?

    in particular the "scope" parameter.

    if you set it in the "item" range you could call the SaveResultsAs method in each item end...