I would like to monitor how much each step takes to execute, starting from clicking a button on the Visio UI/LCA to the actual update on the UI.
So in my case typically operator clicks a button, triggers a scripts, script executes a couple of functions and when the script finishes it triggers an UI update
Is there a framework available or recommended implementation so that it's possible to monitor the performance of each of these steps over.
Creating for example a LCA to visualize this.
In the documentation I found following link: Namespace Skyline.DataMiner.Net.LogHelpers | DataMiner Docs, would that be usefull in this case?
Hi Tim,
There is indeed a framework available, see the details here: https://github.com/SkylineCommunications/SLC-AS-ScriptPerformanceAnalyzer
There is a nuget available to implement in the scripts, and a package with an ad-hoc data source and Low-Code app to visualize and investigate the performance of the scripts.
Hi Tim,
If you want to monitor the script time, you could simply add a System.Diagnostics.Stopwatch and start it at the start of your script, stop it at the end of the script and log the time used. If you want a full end-to-end test, you can use a UI testing framework such as Ranorex, for which we have some courses in the learning section of the dojo. In many cases the bulk of time will be consumed by the script, so the additional work of creating an end-to-end test might not be needed as this will typically only add 1-2 seconds to the total time.
The full duration of each script is logged by default in the SLAutomation log, so if you only need the full execution time, nothing special is needed in your script.