Page 1 of 1

Using a concatenated string to identify a repo item

Posted: Mon Aug 20, 2012 10:12 am
by kh123
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

Re: Using a concatenated string to identify a repo item

Posted: Mon Aug 20, 2012 2:35 pm
by Support Team
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

Re: Using a concatenated string to identify a repo item

Posted: Mon Aug 20, 2012 4:16 pm
by kh123
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

Re: Using a concatenated string to identify a repo item

Posted: Mon Aug 20, 2012 4:22 pm
by Support Team
Good to hear that you were able to solve the problem!

Regards,
Markus
Ranorex Support Team