String name = attributes.getValue("", "name");
if (name == null) {
return null;
}
Testcase result = testSuite.addTestcase(name);
String className = attributes.getValue("", "classname");
if (className != null) {
result.setClassName(className);
}
long time = tryReadTimeMillis(attributes.getValue("", "time"), 0);
result.setTimeMillis(time);
return result;
}