Page 1 of 1

i cannot re-use my test cases

Posted: Tue Feb 09, 2016 3:14 pm
by lakiphala
i am a beginner in ranorex but not automation, i am testing a web application and every-time i open the webpage the object id keeps on changing so ranorex cannot identify it because the id during the time of recording is different from the id when playing the recorded test case.

Re: i cannot re-use my test cases

Posted: Wed Feb 10, 2016 11:19 am
by odklizec
Hi lakiphala and welcome here,

There is a nice Ranorex blog post regarding your problem...
http://www.ranorex.com/blog/automated-t ... ynamic-ids

Re: i cannot re-use my test cases

Posted: Wed Feb 10, 2016 3:00 pm
by lakiphala
Hi odklizec thanks for the link.i tried that but not sure if the weight changed.

Re: i cannot re-use my test cases

Posted: Wed Feb 10, 2016 3:21 pm
by odklizec
Hi,

To see if the xpath weight rule is saved correctly, go to Spy and try to track the element again. It should now prefer atag over div. Which means you also need to re-record your existing repository elements with new weight. I'm afraid, changed weight will not update existing repo items.