![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Counting the number of times a script is executed Topic Summary: Created On: 8-Aug-2008 19:44 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am not sure if this question has been answered elsewhere but I figured I should ask it anyway. I have deployed a collection of DXL scripts in a shared location for a group of users. Is there anyway I can monitor (with some type of reporting capability) the number of times these scripts have been used? Has anyone here implemented something like this. Please do let me know. Thank you.
Regards, Pranav |
|
![]() |
|
![]() |
|
Maintain the a text file in the same shared location. When the the script starts, read the text file containing a number on the executions of the script. Add one to to number and rewrite the file.
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
You could also use a configuration file in the same way.
------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
Hi Pekka,
My sincere apologies for not having acknowledged your prompt and helpful response. I was just curious, have you actually tried this before? Furthermore, have you tried a method in which a text file can contain the number of script executions for multiple scripts? Please do let me know if you have. Thank you once again. Pranav |
|
![]() |
|
![]() |
|
Hi Tony,
I was wondering if you could say a little more about the configuration file. Thanks in advance. Regards, Pranav |
|
![]() |
|
![]() |
|
I have done text-based logs which append to a text file startup information from specific scripts. These were though some non-interactive scripts started through task scheduler. The possible problem with this approach of using files is file locking, if you have many users starting scripts simultaneously then some startups might not be included in the file.
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Configuration files provide you with a mechanism to store information that persists between doors sessions. These can be user-specific or global. This is the mechanism used to store user settings such as favourites. The files exist within the doors data directory.
They are explained... well mentioned... in the help files. Here is an example. ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
Thank you very much Tony!!!!
Regards, Pranav |
|
![]() |
|
![]() |
|
Hi Tony,
I was wondering if the COUNTER CONFIG DIRECTORY can be set as registry entry. Please do let me know. Thank you. Regards, Pranav |
|
![]() |
|
![]() |
|
Hi Tony,
I tried incorporating your script to count the number of executions of my script. For some odd reason, on the confmkDir statement, it tags on my directorypath to that of the path of my data folder of the DOORS database that I am logged on to via my client. Any ideas why this might be happening? PLease do let me know. Thanks in advance. Regards, Pranav |
|
![]() |
|
![]() |
|
Configuration files are stored inside the data folder.
The directory name you provide should just be a directory name e..g "fred" and not include a full windows path. ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
Thank you once again for your response.
|
|
![]() |
|
![]() |
|
I was not aware of the configuration file method, so I wrote a simple dxl file that would write the information I wanted into a common file. It writes the username, the current date and a "logFileName" string, which in most cases is just the filename of the script. I can read this into Excel and use pivot tables to analyze which scripts are being used. In cases where a "Cancel" button was included in the GUI of the script I included a second version of the logFileName string that had "-CANCELED" at the end so that I could tell if someone started it and then canceled without letting it complete. The logFile function in attached below. The line "string useLogFileName = ..." must specify a file that all of your users have write access to or they will get errors. I included the test for my username since my job is DOORS support and I don't need to know how many times I run the scripts
![]() -------------------------------------------- Grant Cyboron L-3 Communication Systems East -------------------------------------------- ------------------------- Grant Cyboron L-3 Communication Systems East mail grant.cyboron@l-3com.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.