07-09-2010, 09:45 AM
Hi Rammy,
1. If your current object property does not match with the property of the object that is in the Shared OR, then while recording it creates a new instance. In that case you can change the value of the property in shared object repository with regular expression so that it will be recognized always as per your requirement.
2. Another case when the object will be automatically copied to Local OR is, while recording if you QTP encounters a new object then it copies its parent objects to local repository and adds the new one.
Can you tell me which one is in your case? Then accordingly I can suggest you how to resolve your problem.
1. If your current object property does not match with the property of the object that is in the Shared OR, then while recording it creates a new instance. In that case you can change the value of the property in shared object repository with regular expression so that it will be recognized always as per your requirement.
2. Another case when the object will be automatically copied to Local OR is, while recording if you QTP encounters a new object then it copies its parent objects to local repository and adds the new one.
Can you tell me which one is in your case? Then accordingly I can suggest you how to resolve your problem.