Reusing repository items when recording / Path Weights
Posted: Wed Nov 07, 2012 5:08 pm
Hi All,
I'm currently trying to record some scripts during a trial to demonstrate Ranorex's capabilities with our software. Unfortunately I am hitting a problem where by when I record scripts it does not use my existing repository items (set-up before recording). An example of this is below:
In my Repository I have a Folder Structure Setup up: Whenever I attempt to record, clicking on the item in the software adds another repository item: After finishing, further investigation shows that they are actually the same items (but different element settings, controlid vs windowstext/accessible text.
Q1: Is there any way I can force / get the recording to recognise the element already exists. I was thinking could perhaps change some of the Path Weightings but unsure as to whether this will adversely affect recording of non-predefined repository items.
Q2: Is there any way I can merge / multiple replace the newly added recording item with the Repository item, currently I have to delete then manually select the rows that no longer have an item found and replace each one. If I have used/taken screenshots I have to re-capture all the screenshots using the Repository Item area too - cannot move them.
One of the reasons I was trying to use names is that it seems to work well with the BCG menus, the id's sometimes change on these can cause test failure whereas direct names find the item well.
Thanks in advance for your time.
Chris
I'm currently trying to record some scripts during a trial to demonstrate Ranorex's capabilities with our software. Unfortunately I am hitting a problem where by when I record scripts it does not use my existing repository items (set-up before recording). An example of this is below:
In my Repository I have a Folder Structure Setup up: Whenever I attempt to record, clicking on the item in the software adds another repository item: After finishing, further investigation shows that they are actually the same items (but different element settings, controlid vs windowstext/accessible text.
Q1: Is there any way I can force / get the recording to recognise the element already exists. I was thinking could perhaps change some of the Path Weightings but unsure as to whether this will adversely affect recording of non-predefined repository items.
Q2: Is there any way I can merge / multiple replace the newly added recording item with the Repository item, currently I have to delete then manually select the rows that no longer have an item found and replace each one. If I have used/taken screenshots I have to re-capture all the screenshots using the Repository Item area too - cannot move them.
One of the reasons I was trying to use names is that it seems to work well with the BCG menus, the id's sometimes change on these can cause test failure whereas direct names find the item well.
Thanks in advance for your time.
Chris