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

Customize Log file while execute a test.

3 Answers 237 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Swarnambar
Top achievements
Rank 1
Swarnambar asked on 16 Dec 2011, 11:00 AM
Hi,

I am able to trace the details in the log using the 'Log.WriteLine(LogType.Trace,"Testing Log");' . But if I want to print the log location using  'Console.WriteLine("Log Location " + Log.LogLocation);' , its not returning anything.

Can you please tell me how I customize the report on the Log file in Test Studio and how I configure my own path of Log creation?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 16 Dec 2011, 12:30 PM
Hi Swarnambar,

I think this article from our Code Samples section is exactly what you are looking for.

Let me know if you need any assistance on this.

All the best,
Plamen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Swarnambar
Top achievements
Rank 1
answered on 16 Dec 2011, 01:19 PM

I am aware of writing a file using core c# Framework classes (i.e System.IO). What I exactly wanted to know, there is a "Log" class with a method "WriteLine()" in the assembly "ArtOfTest.WebAii.Core", which had been developed by Telerik. Now, how I can write log file using the "WriteLine" method of "Log" class of "ArtOfTest.WebAii.Core",?

0
Plamen
Telerik team
answered on 16 Dec 2011, 02:31 PM
Hi Swarnambar,

The log file will be saved in a customizable folder only if you are running your test as part of a Test List. Perform the following steps to configure the log file creation. 

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

Now you can run your test as part of a Test List and view the result in the folder log location. Check this video to see how it works.

Kind regards,
Plamen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Swarnambar
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Swarnambar
Top achievements
Rank 1
Share this question
or