Page 1 of 1

Application Folder in Repository

Posted: Mon Jul 20, 2009 12:15 pm
by atom
Question: Why is this mandatory?

Basically for each window in the AUT we're going to have a seperate repository
But at the moment we need an Application folder in each repository... not very maintainable as the AUT main form title can change, meaning ALL repositories need to be updated

Re: Application Folder in Repository

Posted: Mon Jul 20, 2009 2:57 pm
by Support Team
The application folder is necessary for caching. So if the form title changes during the automation flow, the form will be found anyway. If your main form title changes already on test initialization you can play with the form RxPath and RegEx.

Regards,
Christian
Support Team

Re: Application Folder in Repository

Posted: Mon Jul 20, 2009 7:27 pm
by atom
hmm.... ok

The way we do things is to start the AUT we launch a process, get the Process object, and from there get the MainWindowTitle, from this we then get the Ranorex.Form (e.g. /form[@title=....])
We do this as the AUT window title changes depending what child window (its an MDI app) has focus

So really we dont want to hang the repository items off an Application folder, as we never really quite know what its title is. What instead we'd like to do is hang the repository items of the Ranorex.Form object we got when starting the application

Re: Application Folder in Repository

Posted: Tue Jul 21, 2009 8:28 am
by Support Team
In most cases you can identify a form which changes his title name in runtime directly with RxPath. The identification level is depending on the application structure.

Please could you attach a Ranorex Snapshot of your MDI-App.

Regards,
Christian
Ranorex Support Team