Forum Discussion

jeetendra_mitta's avatar
jeetendra_mitta
Occasional Contributor
11 years ago

Print the information

When I use msgbox to print any information, it holds the execution until click on that. I want to print the information without any such holds aur pause. In QTP we use print for example Print "Hello". Due to this execution is not paused or hold and a new window opned and have all the information. Any way in Testcomplete to print information in such way.
  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    You can use:



    Log.Message("My message here.")




    You can then view the log when the test is finished.

    If you want to display messages about the current test during run time you can use:



    Indicator.PushText("My message here.")




    Neither method will pause execution of scripts.
  • jeetendra_mitta's avatar
    jeetendra_mitta
    Occasional Contributor
    If i use code Indicator.PushText("My message here.") more than one time. Now I want to see the all messages, where can I see.
  • Hi Jeetendra,



    As Ryan mentioned if you want to see your messages later use Log.Message("Hello, World!"). After test run you can see your them in results log.