| || |
Change Test Settings through QTP Folder
I have around 400 tests and each test contains 5 vbs files and two global repository files which are added to the test using relative path.
Currently I have to remove the association of the 5 vbs files and two global repository files and add association to other files.
Since it would take a lot of time if I open the QTP test manually and remove the association of the files from Test Settings, is there a way where I can update the path of the resources from Action 0 or Action 1 folder.
If it is possible to update the resources in Action 1 or Action 0 folder directly instead of opening the test using QTP, kindly let me know.
For Global repository you can use the RepositoriesCollection object, and then you can access different methods. like below-
RepPath = "C:\SharedObjectRepository.tsr"
To associate VBS file,you can use ExecuteFile method to associate VBS file at run time, but in this you have to call this method in your each action.like :-
I hope this is relevant for you.