Forum Discussion

kbhaskar's avatar
kbhaskar
Occasional Contributor
8 years ago

how to disable the run result for test complete?

for example i have few lines of code which i know that it will run fine and i don't want result also just to get application to that position i am doing that.

 

thanks

bhaskar

2 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    If you set Log.Enabled = false then there will not be any posted into the Test log.

     

    Once you set the Log.Enabled = true then all logs will posted in the Test log.

     

    Example:

     

    Log.Enabled = false
    
    if(Object.Exists) 
    {
          Object.Keys("Test");
    }
    
    Log.Enabled = true
    
    Log.Message("Passed")

    For more details on this you can refer here