public PropertiesTests() { Properties prop = new Properties("connection.properties"); String fetchStr = prop.get("fetchProperties"); fetchProperties = !fetchStr.Equals("All")?Int32.Parse(fetchStr):-1; }
public BaseTest() { Properties prop = new Properties("connection.properties"); int max = 11; int count = 1; String connStr; while (count < max) { String key = "connStr" + count++; connStr = prop.get(key); if (!String.IsNullOrEmpty(connStr)) connectionsStr.Add(key, connStr); } }
public QueryTest() { Properties prop = new Properties("connection.properties"); foreach(DictionaryEntry entry in connectionsStr) { List<String> queriesList = new List<string>(); bool exit = false; int count = 1; String query; while (!exit) { query = prop.get((String)(entry.Key) + ".queryString" + count); if (!String.IsNullOrEmpty(query)) queriesList.Add(query); else exit = true; count++; } queries.Add((String)(entry.Key), queriesList); } }