Iterating elements in a repository
Posted: Wed Oct 05, 2016 10:57 am
I have a collection of repository elements in my repository neatly organized into different folders and with describing names. Now i'd like to iterate over these repository items and create a dictionary from them, with each item's name as the key and its RepoItemInfo as the value.
But can you do this in Ranorex? I'd like to be able to do this because I'm reading key-value pairs from a text file and if i'd be able to create a dictionary from my repository elements, I could supply the values for each element very easily, using the values from the text file that i read into memory.
So, something like this:
foreach (RepoItem item in formButtonsRepoFolder)
{
repoItemDict.add(item.Name, item.Info);
}
But can you do this in Ranorex? I'd like to be able to do this because I'm reading key-value pairs from a text file and if i'd be able to create a dictionary from my repository elements, I could supply the values for each element very easily, using the values from the text file that i read into memory.
So, something like this:
foreach (RepoItem item in formButtonsRepoFolder)
{
repoItemDict.add(item.Name, item.Info);
}