This is a migrated thread and some comments may be shown as answers.

Log.WriteLine doesn't write to log

2 Answers 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jurij
Top achievements
Rank 2
Jurij asked on 13 Jul 2015, 10:22 AM

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 Answers, 1 is accepted

Sort by
0
Jurij
Top achievements
Rank 2
answered on 13 Jul 2015, 10:25 AM

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

0
Accepted
Boyan Boev
Telerik team
answered on 15 Jul 2015, 02:13 PM
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!
Tags
General Discussions
Asked by
Jurij
Top achievements
Rank 2
Answers by
Jurij
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or