How to read config file from test project [Resolved]

Posted by Hmanjarawala under QA (Testing) on 12/15/2011 | Points: 10 | Views : 2365 | Status : [Member] | Replies : 2
Hi,
I need a sample example which demonstrate to read configurationSection from config files in unit test module.

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/



Responses

Posted by: Hmanjarawala on: 12/15/2011 [Member] Bronze | Points: 25

Up
0
Down

Resolved
Hi take this
 Download source file

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sarooptrivedi on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
Hello Himanshu

I think Pex and Moles framework for unit test is more proper way to read the App.config and Custom.config.

Please read this link :
http://social.msdn.microsoft.com/Forums/en/pex/thread/9b4b9ec5-582c-41e8-8b9c-1bb9457ba3f6

Solution i will update later on.

Thank you.
Saroop

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response