app.config : General Questions

app.config

Ask general questions here.

app.config

Postby chunkylover53 » Wed Oct 06, 2010 9:23 pm

Hi,
How do you implement an app.config file in ranorex?
Thanks
CL
chunkylover53
 
Posts: 23
Joined: Wed Oct 06, 2010 9:21 pm

Re: app.config

Postby Ciege » Wed Oct 06, 2010 11: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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: app.config

Postby chunkylover53 » Thu Oct 07, 2010 3: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
chunkylover53
 
Posts: 23
Joined: Wed Oct 06, 2010 9:21 pm

Re: app.config

Postby Support Team » Fri Oct 08, 2010 9: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
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: app.config

Postby chunkylover53 » Fri Oct 08, 2010 8:18 pm

Cool. thanks for the info, that was helpful.
chunkylover53
 
Posts: 23
Joined: Wed Oct 06, 2010 9:21 pm

Re: app.config

Postby atom » Mon Oct 11, 2010 2: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!
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests