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
Using a concatenated string to identify a repo item
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Using a concatenated string to identify a repo item
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
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
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Using a concatenated string to identify a repo item
Good to hear that you were able to solve the problem!
Regards,
Markus
Ranorex Support Team
Regards,
Markus
Ranorex Support Team