Impossible to edit application folder path in script

Ranorex Spy, Recorder, and Studio.
torlin
Posts: 8
Joined: Mon Feb 02, 2009 2:05 pm

Impossible to edit application folder path in script

Post by torlin » Thu Feb 05, 2009 10:05 am

I first recorded a script testing a web application running on one of our servers. I then tried to change the path of the application folders in the script in order to make the script insensitive to the name of the web server. I want to be able to run the test on another server without changing the script.

Changing the first application folder path (the web browser main window) succeeded, but changing the next, a new window opened by a javascript, did not.

The application folder had the path
/form[@title~'^http://frontwalkervpn/\ --']
and I tried to change it to
/form[@title~'^http://.*/\ --\ Webbsidedialogruta']

When I pressed Enter Ranorex Studio hanged, giving me this:

System.ArgumentException: Supplied prefix '/form[@title~'^http://.*/\ --\ Webbsidedialogruta']' is not a prefix of the path '/form[@title~'^http://frontwalkervpn/\ --']/element/container/*/cell[2]/*'. ---> Ranorex.RxPathException: Supplied prefix '/form[@title~'^http://.*/\ --\ Webbsidedialogruta']' is not a prefix of the path '/form[@title~'^http://frontwalkervpn/\ --']/element/container/*/cell[2]/*'.
vid Ranorex.Core.RxPath.RemovePrefix(RxPath path, RxPath prefix)
vid Ranorex.Core.Repository.RepositoryFolder.get_RelativeBasePath()
vid Ranorex.Controls.RepositoryEditor.RepoTreeNode.get_PathText()

I tried making other kinds of changes to the path but any change produced the same error.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Fri Feb 06, 2009 3:50 pm

Could please download the brand-new Ranorex 2.0 Release and try that issue again? We have fixed many bugs in the Repository Editor.

Regards,
Alex
Ranorex Support Team

torlin
Posts: 8
Joined: Mon Feb 02, 2009 2:05 pm

Post by torlin » Fri Feb 06, 2009 4:53 pm

Thank you!

The problem is solved!