Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Small feature request


#1

Handling of events would be nice. One could have an “events” panel (dockable of course) where you could send
an event with let’s say: siMain.LogEvent(‘onClick’);
An event panel is a list of events, when an event happens, or happens again it could make a small animation. (Yes CodeSite has something like this called scratchpad or so).
A count of an event would also be very handy.
Like “OnClick (3x)”.

Keep up the great work,
Attila


#2

Hello Attila,

You can use the Watches toolbox for this. It does almost exactly what you are suggesting with the Events toolbox. A watch has a name and a value and basically represents an item in your application code which changes over time. The item is typically a variable (think database connection count e.g.), but could also include other things like the count of fired events.

There are currently methods in the libraries for sending watches of type String, DateTime, Integer, Float, Boolean and more (see the documentation of the TSiSession.Watch method for details). The mentioned Watches toolbox displays these watches in a key/value list and signals changes (new or updated watch) with a red icon. To simulate the requested behavior, you could use the WatchInteger method. The first parameter of this method would be the name of the event and the second parameter specifies the event count.

Because of your posting, we plan to add a method called something like WatchCounter which takes a single string parameter and automatically increments the count for a particular watch. Thanks for the nice idea.


#3

You got that right, I have even used the watch box once myself.

Thanks! :slight_smile: