Using a concatenated string to identify a repo item

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
kh123
Posts: 10
Joined: Mon Aug 20, 2012 9:39 am

Using a concatenated string to identify a repo item

Post by kh123 » Mon Aug 20, 2012 10:12 am

Hi
I have to write a script which runs through all the items in a ribbon bar validating the user's access for each one. There are 140 in all

The data is held in a csv and the heading matches the name of the icon. So what I have done is to write some code which uses the commonality as a hard coded string and then concatenate it with the variable part of the name.I've checked the output at this point and it displays as Upper and Lower case

I then try to use the concatenation as the repo item and here is where it goes wrong

The output from the concatenation is in Upper and Lower case which matches what the repo item should be but when the script fails the error shows the search is being carried out using a string which is all lower case and therefore the item is not found

What am I doing wrong?
Thank you
K

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Using a concatenated string to identify a repo item

Post by Support Team » Mon Aug 20, 2012 2:35 pm

Hi,

In order to analyze the issue we would need the specific report file and the code where you set the RxPath of the specific repo element, or do you set it via a repository variable?
Which Ranorex version are you using?
If you like, you can also send it to our support email address, [email protected].

Regards,
Markus
Ranorex Support Team
.
Image

kh123
Posts: 10
Joined: Mon Aug 20, 2012 9:39 am

Re: Using a concatenated string to identify a repo item

Post by kh123 » Mon Aug 20, 2012 4:16 pm

Thank you Markus
My problem in this case seems to have been caused by me attempting to use a concatenated repo path rather than a concatenated RxPath.
Once I changed the values to match the RxPath Ranorax could find the items

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Using a concatenated string to identify a repo item

Post by Support Team » Mon Aug 20, 2012 4:22 pm

Good to hear that you were able to solve the problem!

Regards,
Markus
Ranorex Support Team
.
Image