Search in sources :

Example 1 with TestcaseRun

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;
}
Also used : RegularTestcaseRun(io.irontest.models.testrun.RegularTestcaseRun) TestcaseRun(io.irontest.models.testrun.TestcaseRun) RegularTestcaseRun(io.irontest.models.testrun.RegularTestcaseRun)

Aggregations

RegularTestcaseRun (io.irontest.models.testrun.RegularTestcaseRun)1 TestcaseRun (io.irontest.models.testrun.TestcaseRun)1