how to pass multiple test configurations in a single test

Jun 10, 2012 at 3:00 PM
following code, I am using multiple deployment files based on test environments. How to specify them in my code to run them in multiple environment
Currently in below test method specified the "LocalTestConfig.xml". How the config file gets passed to all my test methods for each environment?
[CodedUITest]
[DeploymentItem(@"Sample_CUITeTestProject\LocalTestConfig.xml")]
[DeploymentItem(@"Sample_CUITeTestProject\StagingTestCofig.xml")]


 [TestMethod]
        public void SampleTest()
        {
            Hashtable ht = CUITe.CUITe_DataManager.GetDataRow(Type.GetType("Portal.Test.Int.SubmitServiceOrderTests"), "LocalhostTestConfig.xml", "Test");
            HomePage pgHomePage = CUITe_BrowserWindow.Launch(ht["siteurl"].ToString());
 
appreciate your help.
 
Thanks,
Sailaja

 

Coordinator
Jun 10, 2012 at 10:55 PM

Hi Sailaja,

Your question does not seem to be specific to the functionality of CUITe.

You are better off asking your question in the Visual Studio Unit Testing forum here:

http://social.msdn.microsoft.com/Forums/en-US/vsunittest/threads

Thank you.