Page 1 of 1

Getting the contents of a repository folder

Posted: Wed Jun 15, 2011 9:25 am
by reka
Hello,

I would like to write a test to check if all the UI controls are where they're supposed to be. I would also like to put the cleverness (structure) in the element repo instead of the code - so ideally creating a system of subfolders and looping through the contents of these folders to check that they can be instantiated

Is there any other way to do this other than using reflection to get the content of a repo folder?

Thanks a lot in advance

Re: Getting the contents of a repository folder

Posted: Wed Jun 15, 2011 12:51 pm
by Support Team
Hi,
reka wrote:Is there any other way to do this other than using reflection to get the content of a repo folder?
One way is to use reflection as you said. The other way would be to read the rxrep file. This file is a XML file and you can parse the nodes inside this file.

Regards,
Peter
Ranorex Team