public:
TestCaseResultHeader (void) : caseType(TESTCASETYPE_LAST), statusCode(TESTSTATUSCODE_LAST) {}
+ std::string caseVersion; //!< Test case version.
std::string casePath; //!< Full test case path.
TestCaseType caseType; //!< Test case type.
TestStatusCode statusCode; //!< Test status code.
namespace xe
{
-static const char* TEST_LOG_VERSION = "0.3.3";
-
/* Batch result writer. */
struct ContainerValue
using xml::Writer;
xmlWriter << Writer::BeginElement("TestCaseResult")
- << Writer::Attribute("Version", TEST_LOG_VERSION)
+ << Writer::Attribute("Version", result.caseVersion)
<< Writer::Attribute("CasePath", result.casePath)
<< Writer::Attribute("CaseType", getTestCaseTypeName(result.caseType));
m_logVersion = getTestLogVersion(version);
// \note Currently assumed that all known log versions are supported.
- m_result->casePath = getAttribute("CasePath");
- m_result->caseType = TESTCASETYPE_SELF_VALIDATE;
+ m_result->caseVersion = version;
+ m_result->casePath = getAttribute("CasePath");
+ m_result->caseType = TESTCASETYPE_SELF_VALIDATE;
if (m_xmlParser.hasAttribute("CaseType"))
m_result->caseType = getTestCaseType(m_xmlParser.getAttribute("CaseType"));