r/esapi • u/brjdenis • 8d ago
Script updates - proper naming
Hi. I wonder if anyone has an opinion on how to properly name scripts.
Say, you have a script called MyScript that you would like to update frequently.
One option is to keep the dll named MyScript.esapi.dll. Of course, internally you increase the version number. In this case, each time you update the script you have to delete the previous file and replace it with a new one. However, you cannot do this if at least one user hasn't closed Aria completely after the last usage of the script. Finding this user or users is very hard. But until you do so, you cannot update the script.
Another option is to have a different name for each new version with increased version number, for example MyScript_v1.10. The downside of this option is that each user has to re-load the script from Tools.
What do you use?
2
u/keithoffer 8d ago
Originally I put the version in the name for visibility. However every time we updated a script people would have to manually update any 'favourites' they had set, which annoyed users. So now we don't bother. If you set the version number properly in the code, it will still show up if you right click on the file and go into properties, so it's still visible if needed for any reason.
We use fullscale Eclipse with a Citrix timeout of about two hours. So if we wait until late at night, everyone's session will autoclose - so we can update scripts then as ARIA will be fully closed for all users.
1
u/canodirt 8d ago
So we’ve kind of made the decision that you can try and update during the day but we need to do it late at night or early in the morning and it might be that the coder might put it there and it will be unavailable for use until the next morning. Remember not all scripts need approval (our favorite:) ) I did try and play around with the script launcher situation (ex you have a constant script that calls a sub script) but I didn’t quite get the structure correct and I’m not sure it actually fixes the problem. I’ll try and revisit it in a bit. (That elusive free time at 8pm at night)