use of io.irontest.models.testrun.TestcaseRun in project irontest by zheng-wang.
the class TestcaseRunMapper method map.
public TestcaseRun map(int index, ResultSet rs, StatementContext ctx) throws SQLException {
TestcaseRun testcaseRun = new RegularTestcaseRun();
testcaseRun.setId(rs.getLong("id"));
testcaseRun.setTestcaseId(rs.getLong("testcase_id"));
testcaseRun.setTestcaseName(rs.getString("testcase_name"));
testcaseRun.setTestcaseFolderPath(rs.getString("testcase_folderpath"));
testcaseRun.setStartTime(rs.getTimestamp("starttime"));
testcaseRun.setDuration(rs.getLong("duration"));
testcaseRun.setResult(TestResult.getByText(rs.getString("result")));
return testcaseRun;
}
Aggregations