Exemple #1
0
        public static IEnumerable GetAPIDetailsFromXML(string filename)
        {
            string folderPath = string.Empty;
            //string env = ConfigurationManager.AppSettings["TestENV"];
            //string application = ConfigurationManager.AppSettings["APITestApp"]
            string env         = TestContext.Parameters.Get("TestENV", ConfigurationManager.AppSettings["TestENV"]);
            string application = TestContext.Parameters.Get("APITestApp", ConfigurationManager.AppSettings["APITestApp"]);

            folderPath = ProjectBaseConfiguration.APIIntegrationTestData + env + "\\" + application + "\\APIDataDriven.xml";
            return(DataDrivenHelper.ReadDataDriveFile(folderPath, filename));
        }
Exemple #2
0
 public static IEnumerable GetDetailsFromXML(string filename)
 {
     return(DataDrivenHelper.ReadDataDriveFile(ProjectBaseConfiguration.DataDrivenFile, filename));
 }