Use QXmlStreamReader to parse test run output

Using the QXmlStreamReader will be easier to extend current
functionality and should be more robust than parsing on our own.

Change-Id: I9e1df7083a1af7681987f3971550e19a35b29df9
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-09-23 07:47:12 +02:00
committed by David Schulz
parent 17fbe92100
commit 23bdcf77b6
4 changed files with 176 additions and 175 deletions

View File

@@ -23,18 +23,20 @@ namespace Autotest {
namespace Internal {
FaultyTestResult::FaultyTestResult(Result::Type result, const QString &description)
: TestResult(QString(), QString(), QString(), result, description)
{
setResult(result);
setDescription(description);
}
TestResult::TestResult()
: TestResult(QString())
{
}
TestResult::TestResult(const QString &className, const QString &testCase, const QString &dataTag,
Result::Type result, const QString &description)
: m_class(className),
m_case(testCase),
m_dataTag(dataTag),
m_result(result),
m_description(description),
m_line(0)
TestResult::TestResult(const QString &className)
: m_class(className)
, m_result(Result::INVALID)
, m_line(0)
{
}