app.config

Ask general questions here.
chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

app.config

Post by chunkylover53 » Wed Oct 06, 2010 8:23 pm

Hi,
How do you implement an app.config file in ranorex?
Thanks
CL

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: app.config

Post by Ciege » Wed Oct 06, 2010 10:39 pm

Care to exapand a little on what you are asking for?
What do you want to do?
What IDE are you using?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

Re: app.config

Post by chunkylover53 » Thu Oct 07, 2010 2:11 pm

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

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

Re: app.config

Post by Support Team » Fri Oct 08, 2010 8:50 am

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
.
Image

chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

Re: app.config

Post by chunkylover53 » Fri Oct 08, 2010 7:18 pm

Cool. thanks for the info, that was helpful.

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: app.config

Post by atom » Mon Oct 11, 2010 1:28 pm

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!