Ejemplo n.º 1
0
        /// <summary>
        /// Gets the data driven file and set the test name.
        /// </summary>
        /// <returns>Return the data driven file and set the test name.</returns>
        public static IEnumerable CredentialsCSV()
        {
            var path = TestContext.CurrentContext.TestDirectory;

            path = string.Format(CultureInfo.CurrentCulture, "{0}{1}", path, @"\DataDriven\TestDataDrivenCsv.csv");
            return(DataDrivenHelper.ReadDataDriveFileCsv(path, new[] { "user", "password" }, "credentialCsv"));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the data driven file and set the test name.
 /// </summary>
 /// <returns>Return the data driven file and set the test name.</returns>
 public static IEnumerable LinksExcel()
 {
     return(DataDrivenHelper.ReadXlsxDataDriveFile(ProjectBaseConfiguration.DataDrivenFileXlsx, "links"));
 }