Forum Discussion

joe_2's avatar
joe_2
Contributor
12 years ago

Disabling a push notification, and changing log entries

Certain keyword operations have associated push notifications... particularly ones that wait for something, such as the delay timer.



I am using push notifications to tell the user what aspect of the program is being tested at any given moment, and I don't need to tell them that I'm waiting for an event.



Is there a way to disable those "I'm waiting for such and such" notifications so they won't cover up my desireable push notifications?  



I don't want to turn off all notifications, but most of the timer ones are useless information to me.



Also, is there a way to change the log statements of things like onscreen click actions?

Having every single click say "The window was clicked" is not very informative.  I'd like to name the actual control that was clicked if possible, without adding an extra log statement.  That would make the logs much more readable for me.

4 Replies

  • I did in fact find the article on making the logs more readable to be very nice, and have implemented the suggestions there... but I still haven't found a way to tell things like the timer that they shouldn't do a push notification.






  • Hi Joseph,


     


    You can prevent some messages from being posted to the Test Log. For this, you need to create the corresponding event handler (for example, OnLogEvent Event) and set the LogParams.Locked property to True. Refer to this article - it contains a sample that will give you some clue.


     

  • Well...

    A few weeks later and today I just found... you guessed it: existing functionality that does what I was asking about.



    The timer operation has a built in string variable named Str.



    You can put the text you want to display in Str and it will replace the default message which is something like 'delays the test execution for xxx miliseconds'



    It isn't actually a suppression of the push notification, but at least now I can decide what it will say while it's waiting.



    I just hadn't noticed it before.