Changing of IDs in Ranorex (XML)

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Sushanth
Posts: 2
Joined: Thu May 07, 2015 6:38 am

Changing of IDs in Ranorex (XML)

Post by Sushanth » Tue Nov 17, 2015 12:02 pm

Once after adding the Objects to the Object Repository, I wanted to export the repository to XML format. In the XML format which I had opened, noticed that id for every particular object were generated in Random. Is there any way to edit those IDs and save it. It is not the process ID or control ID. it is just an id , below mentioned is the snippet:

<appfolder
name="ABC"
id="77f6a84d-3325-40fc-83ce-1e0e751299e8" // is there any way to change this id in the Object Repository itself to user understandable name
searchtimeout="30000ms"
capname="form"
isrooted="True"
usecache="True">

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Changing of IDs in Ranorex (XML)

Post by odklizec » Tue Nov 17, 2015 1:17 pm

Hi,

Nope, it's not possible to change this ID. It's automatically generated internal ID, which is not supposed to be changed and used outside Ranorex.
Pavel Kudrys
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

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Changing of IDs in Ranorex (XML)

Post by krstcs » Tue Nov 17, 2015 4:23 pm

As Pavel said, it should not be changed.

This id is actually a GUID, which has a specific format that it MUST follow. It is HEXIDECIMAL notation.

Do NOT change them or you will end up with errors and non-working tests.
Shortcuts usually aren't...