--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
There are three types to associating the shared repository.
But we are using the method is
repositoriescollection.add "path of the .tsr file"
this code is running only in execution time.
Regards,
Uday
On 3/5/12, Chethana KP <chethu...@gmail.com> wrote:
> Hello,
>
> You can try the following methods according to your necessary
>
> RepPath =
> "\\Mercury\SORS\MySharedObjectRepository.tsr<file://mercury/SORS/MySharedObjectRepository.tsr>"
All,
Thanks for the solution you have provided.To put my requirement in other words:
1) I need to delete the object repository programmatically ie once the script is loaded i need to delete the object repository programmatically so that the scripts no longer recognise the objects and the script should refer to the HTML DOM for execution.
For Eg:
Window("Microsoft Word").WinObject("Microsoft Word Document").Click : this line of code should be executed successfully without referring to the object repository but by referring to HTML DOM identifiers directly.So basically i would like to have a script which deletes the object repository once the script is loaded in the QTP editor,so that the HTML DOM is referenced for identifiers(for each object like Window,WinObject we write a method/function which has HTML identifiers so that the script runs thus masking object repository.)
We tried to delete the object repository(script.mtr) and then load the script,but the script doesn't load.So we are looking for a way to delete the object repository programmatically once the script is loaded in the qtp editor.Could you kindly help ?
Thanks
Santosh