Customize Log file while execute a test.

4 posts, 0 answers
  1. Swarnambar
    Swarnambar avatar
    4 posts
    Member since:
    Sep 2012

    Posted 16 Dec 2011 Link to this post

    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?
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 16 Dec 2011 Link to this post

    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
  3. Swarnambar
    Swarnambar avatar
    4 posts
    Member since:
    Sep 2012

    Posted 16 Dec 2011 Link to this post


    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",?

  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 16 Dec 2011 Link to this post

    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
Back to Top