I am recording test for IBM Rational Rhapsody
When I Run the test it fails as it can not find an item although it exists, I checked and found out that the parent form of the element changes its ID each time, as in the attached snapshot (target item is "Tree 6131" and it is inside a the highlighted form whose id is variable)
How can I overcome this problem?
Testing Fails because
-
- Posts: 2
- Joined: Tue May 15, 2018 9:25 am
Testing Fails because
- Attachments
-
- modeltree_id_ranorex.PNG (71.67 KiB) Viewed 576 times
Re: Testing Fails because
Hi Ahmed,
If the id of the parent form doesn't remain the same, you should rather use some other attribute in the path to your element.
Maybe you can find an attribute which doesn't change.
Detailed information about adapting paths can be found here: https://www.ranorex.com/help/latest/ranorexpath
regards, qwertzu
If the id of the parent form doesn't remain the same, you should rather use some other attribute in the path to your element.
Maybe you can find an attribute which doesn't change.
Detailed information about adapting paths can be found here: https://www.ranorex.com/help/latest/ranorexpath
regards, qwertzu
Re: Testing Fails because
I try to pick something unique about a form or control which doesn't change over time, in order to identify it. For us, control IDs fluctuate for various reasons. I've lately taken to setting an unused and unseen control label so I can easily identify the control/form/table that I'm after. I know absolutely nothing about this Rational Rhapsody though.
Re: Testing Fails because
Hi,
Just an additional note. I would suggest to read below blog post, describing how to work with dynamic IDs and how to set Ranorex xpath weight, to prefer different than default attributes...
https://www.ranorex.com/blog/automated- ... namic-ids/
Just an additional note. I would suggest to read below blog post, describing how to work with dynamic IDs and how to set Ranorex xpath weight, to prefer different than default attributes...
https://www.ranorex.com/blog/automated- ... namic-ids/
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration