Page 1 of 1

app.config

Posted: Wed Oct 06, 2010 8:23 pm
by chunkylover53
Hi,
How do you implement an app.config file in ranorex?
Thanks
CL

Re: app.config

Posted: Wed Oct 06, 2010 10:39 pm
by Ciege
Care to exapand a little on what you are asking for?
What do you want to do?
What IDE are you using?

Re: app.config

Posted: Thu Oct 07, 2010 2:11 pm
by chunkylover53
Hi,
I'm looking to do a couple things with an app.config.
1) store test information such as machine names, passwords...etc
2) have a list of methods to execute at run time
Thanks

Re: app.config

Posted: Fri Oct 08, 2010 8:50 am
by Support Team
Hi,

Theoretically you can write what ever you want to the app.config file. You only have to handle it during runtime. Means you have to read the tags of the file. To add an app.config file to Ranorex Studio just add a new file or use an existing app.config file. Also take a look to following link http://geekswithblogs.net/akraus1/articles/64871.aspx . There will be explained "how to read and write" an app.config file.

Regards,
Peter
Ranorex Team

Re: app.config

Posted: Fri Oct 08, 2010 7:18 pm
by chunkylover53
Cool. thanks for the info, that was helpful.

Re: app.config

Posted: Mon Oct 11, 2010 1:28 pm
by atom
We use .config files alot in our tests
We have the idea of write test once, run many times with different settings
So we hard-code nothing!