Ranorex Settings in config file : Automation API

Ranorex Settings in config file

Class library usage, coding and language questions.

Ranorex Settings in config file

Postby atom » Thu Feb 17, 2011 2:19 pm

Hiya

The following settings:

Ranorex.Mouse.DefaultMoveTime
Ranorex.Keyboard.DefaultKeyPressTime
Ranorex.Adapter.DefaultSearchTimeout
Ranorex.Adapter.DefaultUseEnsureVisible

Is it possible to put them in a config file that will be loaded by ranorex api
Instead of supplying them with each test case

Thanks
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Ranorex Settings in config file

Postby Support Team » Thu Feb 17, 2011 2:58 pm

Hi,

there is a configuration file which can be found at:
C:\Users\<User>\AppData\Roaming\RanorexConfig2.xml

You can use following xml tags for the wanted settings:
  • Ranorex.Mouse.DefaultMoveTime: recorder.mousemovetime
  • Ranorex.Keyboard.DefaultKeyPressTime: keyboard.presssequencepredelay
  • Ranorex.Adapter.DefaultSearchTimeout : adapter.defaultsearchtimeout
  • Ranorex.Adapter.DefaultUseEnsureVisible: adapter.defaultuseensurevisible

Kind regards,
Tobias
Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Settings in config file

Postby atom » Thu Feb 17, 2011 3:18 pm

Hiya

Im using ranorex 2.2 with fixed licensing on windows XP
Don't have this path

Thanks
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Ranorex Settings in config file

Postby Support Team » Thu Feb 17, 2011 3:33 pm

The equivalent path on Windows XP is:
C:\Documents and Settings\<User>\Application Data\RanorexConfig2.xml

You can also use the %appdata% environment variable, which should work on all Windows operating systems:
%appdata%\RanorexConfig2.xml

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Settings in config file

Postby atom » Thu Feb 17, 2011 6:00 pm

Thats nice, thanks!
It means we can setup this file once, and put it on each test machine
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Ranorex Settings in config file

Postby Support Team » Fri Feb 18, 2011 12:18 pm

Hi,

Yes you can setup this once and deploy it to other machines which need the same settings.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests