protected void StoreTestResult(Test test, Result result)
{
IDbConnection dbcon = new SqliteConnection(_db_con);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string method = test.Method.Name;
int testid = GetTestId(dbcmd, method);
string sql = "INSERT INTO nat_results (iter, testid, ta_type, time, throughput) VALUES (" +
CurrentIter + ", " + testid + ", \"" + result.TAType + "\", " + result.Time + ", " +
result.Throughput + ")";
dbcmd.CommandText = sql;
dbcmd.ExecuteNonQuery();
dbcmd.Dispose();
dbcon.Close();
}