summaryrefslogtreecommitdiff
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/xeTestCaseResult.hpp1
-rw-r--r--executor/xeTestLogWriter.cpp4
-rw-r--r--executor/xeTestResultParser.cpp5
3 files changed, 5 insertions, 5 deletions
diff --git a/executor/xeTestCaseResult.hpp b/executor/xeTestCaseResult.hpp
index 79f04650d..052127a6f 100644
--- a/executor/xeTestCaseResult.hpp
+++ b/executor/xeTestCaseResult.hpp
@@ -116,6 +116,7 @@ class TestCaseResultHeader
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.
diff --git a/executor/xeTestLogWriter.cpp b/executor/xeTestLogWriter.cpp
index c7e389a52..781b376fb 100644
--- a/executor/xeTestLogWriter.cpp
+++ b/executor/xeTestLogWriter.cpp
@@ -30,8 +30,6 @@
namespace xe
{
-static const char* TEST_LOG_VERSION = "0.3.3";
-
/* Batch result writer. */
struct ContainerValue
@@ -502,7 +500,7 @@ void writeTestResult (const TestCaseResult& result, xe::xml::Writer& xmlWriter)
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));
diff --git a/executor/xeTestResultParser.cpp b/executor/xeTestResultParser.cpp
index c21ddd54d..66dea83ee 100644
--- a/executor/xeTestResultParser.cpp
+++ b/executor/xeTestResultParser.cpp
@@ -465,8 +465,9 @@ void TestResultParser::handleElementStart (void)
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"));