Log.WriteLine doesn't write to log

3 posts, 1 answers
  1. Jurij
    Jurij avatar
    54 posts
    Member since:
    Sep 2013

    Posted 13 Jul 2015 Link to this post

    Coded step: 

    ' Create an HTMLFindExpression element
    Dim expr As New HTMLFindExpression("name=cat*")

    ' Return all elements matching HTMLFindExpression
    Dim allSams As IList(Of Element) = Find.AllByExpression(expr)

    For Each selectOption As Element In allSams
    Log.WriteLine("Available price cats: " + selectOption.GetType.ToString())
    Next

    Log contents:

    '13.7.2015 12:17:32' - 'Pass' : 8. CodedStep1: Select 'ByValue' option 'randomNr' on 'SelectedPriceCat'
    ------------------------------------------------------------
    '13.7.2015 12:17:32' - Overall Result: Pass

    In log I'm missing Log.WriteLine("Available price cats: " + selectOption.GetType.ToString()) text. Doesn't "Log.WriteLine" work?

    BR, Jurij

  2. Jurij
    Jurij avatar
    54 posts
    Member since:
    Sep 2013

    Posted 13 Jul 2015 in reply to Jurij Link to this post

    I even tried with executing test list with this test case and enabling logging:

    1. Go to Test List settings .
    2. Set "CreateLogFile" to True. 
    3. Customize the "LogLocation"(see screenshot).

    Log folder is after successful run of the test list still empty.

    BR, Jurij

  3. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 15 Jul 2015 Link to this post

    Hello Jurii,

    If you execute the test on a remote machine you can see the log as it is described in this video.

    Let me know if this helps.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top