I have created a SOR and populated it with many web controls out of a web application I am testing. The issue I am having is that the SOR seems really inconsistent when I am using it.
Every dynamic description property is regex out and working correctly.
I select a control in my SOR like a WebButton and hit the “Highlight in application” option. The object does indeed highlight. I select the “Locate in Reporitory” option and select the same web button and it inform me that it is not present. I do not know what I am doing wrong. &#61516;
I then select add to repository and select the same WebButton and it creates a new Page under the same Browser with the button. Yet the SOR Page description properties are exactly the same as the LOR description properties minus the RegEx.
Title: Olib Web (Beta 2) Search
What am I doing wrong? I would like to start writing my QTP scripts but it does not always use the SOR in my scripts. Any Ideas??
Is it just the "Locate in Repository" option that isn't working for you? Or is the script failing because of unfound objects? I too have seen where a perfectly described object in a shared repository isn't found by the Locate function, but the object it works fine in Run mode, so I don't worry about it.
Think I have got things working now after playing about with it for a while. It recorded OK on my pc but then you went to another instance of QTP and it would not record correctly. By exporting the environment variables and importing them on the other machine fix the problem.
When you manually change properties of the object there are chance of this to happen. The problem could be with the algorithm QTP uses to locate the object back in OR. Since the algo is not made public it is difficult to say why this happens. You should open a ticket with HP to cofirm the root cause behind this issue