Forum Discussion

mesg2anil's avatar
mesg2anil
Regular Contributor
14 years ago

Exported Log Report Not Showing Messages

Hi,



1. After exporting the log report using the below code, the log report dont have "Messages" listed. It is displaying on "Events", but I can see the "Messages" in TC Test Log. I'm attaching two screenshots "TCTestLog.jpg" and "Exportedlogreport.jpg" for more details.



Code:


Sub ExportLogReport()



'Write log file to folder



Randomize


Random = Round(Rnd() * 1000)


FileName = Project.ConfigPath &"\Log\Exported Log Report\CreateSubProject" &Random &".mht"


Log.SaveResultsAs Filename, 2


End Sub


2. Another issue I'm facing is, in TC, I can see only "Script Test Log[Unitname]" under "Log Items" of "Test Log". You can see the image "TCTestLog.jpg" for more details. I want high level information also should be displayed, like Machine name, Date, Time, Status (Pass / Fail), Username etc.



Could you please look into above mentioned two issues?
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Anil,


    1. I failed to reproduce the behavior you had described. I think, the behavior is specific to your project. So, I recommend that you send your project (along with the tested application, if any) to our Support Team so that they could find the solution faster.


    2. We'll implement this suggestion in the next major release of TestComplete (v. 9.0). Thanks for your feedback.

  • mesg2anil's avatar
    mesg2anil
    Regular Contributor
    Hi Irina,



    Thank you very much for replying.



    One more thing I wanted to know...

    TestComplete will display, 3 levels of log items it in, which even shows graph about the scripts executed. How to get that graph log items?

    I can see only 1 line(level) and on the right hand side... Errors, Warnings, Messages in the Test Log of TC.



    How to get that graph log items and Passed or Failed status of the script?
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Anil,


    To obtain the status of the needed log item, I recommend that you use information from the following article from the How To section:

    Get current Log Items


    If it's not what you need, please clarify in detail what you want to do. Do you want to export results from the Summary panel? Do you want to access results for each test item in the graphical format? Or did you mean something else?


    Thanks :)

  • mesg2anil's avatar
    mesg2anil
    Regular Contributor
    Hi Irina,



    How are you doing?

    Thank you for replying.



    You know what, actually I discovered what I was looking for... :)

    The 3 levels of log; which I was talking in my previous mails...; if we run the scripts "Project" level, we will get all the information like, how many scripts / units were run and how many passed / failed and even graph will be shown on Project level.



    The misunderstanding thought what I had is; I can even get this info even when I run single Unit / Script. For your information I'm attaching the screenshots.



    Thank you once again for all the help and support!
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    I was glad to help and it's good that the problem is solved now :)


    Fell free to ask your questions on the forums and we always will try to help you find the solution.