I have a script that another department needs to run. They need to be able to add data to the datatable, but I do not want to give the ability to change any of the logic in the script.
I am sure they would not do it on purpose, but any ideas on how to protect the logic portion of the script?
QTP does not provide any kind of password protections and i dont think making all the files inside the scripts read-only in the script folder would be of much help.
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Have you considered providing them a copy of the script or changing the script so that the data can be changed outside of QTP?
I have not failed. I've just found 10,000 ways that won't work" --Thomas Edison
Gee not very caring and sharing:
Keep a backup of the script and when they are done copy your backup over the file.
You can buy my Art from: "Post Cards now available" Ian Fraser Landscape Photography
World Wide Shipping. http://mowogman.wordpress.com/
Acutally they dont even need to put the data into the datatable, the script imports an external excel sheet from the network.
Thanks for your help.
Use Subversion to version control, then give them an export copy of the latest version. They can do as many amendments as they want but it won't be on your version.
A "cheap & cheerful" (assuming you are using an SOR) way would be for you to open the script 1st then when they open it it will be read-only.
My linkedIn Profile
Hi FMRock !
If you are using TestDirector/Quality Centre, you can make the script readonly.
Regarding the Datatable part, you may have to create an external excel input file which you can import in your script , its a minimal change which may be needed.
Hope that helps !