Loading...
Searching...
No Matches
ResultEvent.h
Go to the documentation of this file.
/*
* Robot Testing Framework
*
* Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
#define ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
#include <robottestingframework/Test.h>
#include <robottestingframework/TestMessage.h>
namespace robottestingframework {
class ResultEvent
{
public:
ResultEvent() :
test(nullptr)
{
}
virtual ~ResultEvent() = default;
ResultEvent(const Test* test, TestMessage msg)
{
ResultEvent::test = test;
ResultEvent::message = msg;
}
const Test* getTest()
{
return test;
}
TestMessage& getMessage()
{
return message;
}
private:
const Test* test;
TestMessage message;
};
class ResultEventReport : public ResultEvent
{
public:
ResultEventReport(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventError : public ResultEvent
{
public:
ResultEventError(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventFailure : public ResultEvent
{
public:
ResultEventFailure(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventStartTest : public ResultEvent
{
public:
ResultEventStartTest(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventEndTest : public ResultEvent
{
public:
ResultEventEndTest(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventStartSuite : public ResultEvent
{
public:
ResultEventStartSuite(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
class ResultEventEndSuite : public ResultEvent
{
public:
ResultEventEndSuite(const Test* test, TestMessage msg) :
ResultEvent(test, msg)
{
}
};
} // namespace robottestingframework
#endif // ROBOTTESTINGFRAMEWORK_TESTRESUTEVENT_H
TestMessage.h
Test.h
robottestingframework::ResultEventEndSuite
The ResultEventEndSuite class keeps a test suite ending event.
Definition ResultEvent.h:164
robottestingframework::ResultEventEndSuite::ResultEventEndSuite
ResultEventEndSuite(const Test *test, TestMessage msg)
Definition ResultEvent.h:166
robottestingframework::ResultEventEndTest
The ResultEventEndTest class keeps a test ending event.
Definition ResultEvent.h:139
robottestingframework::ResultEventEndTest::ResultEventEndTest
ResultEventEndTest(const Test *test, TestMessage msg)
Definition ResultEvent.h:141
robottestingframework::ResultEventError
The ResultEventError class keeps a test error event.
Definition ResultEvent.h:103
robottestingframework::ResultEventError::ResultEventError
ResultEventError(const Test *test, TestMessage msg)
Definition ResultEvent.h:105
robottestingframework::ResultEventFailure
The ResultEventFailure class keeps a failure event.
Definition ResultEvent.h:115
robottestingframework::ResultEventFailure::ResultEventFailure
ResultEventFailure(const Test *test, TestMessage msg)
Definition ResultEvent.h:117
robottestingframework::ResultEventReport
The ResultEventReport class keeps a test report event.
Definition ResultEvent.h:90
robottestingframework::ResultEventReport::ResultEventReport
ResultEventReport(const Test *test, TestMessage msg)
Definition ResultEvent.h:92
robottestingframework::ResultEventStartSuite
The ResultEventStartSuite class keeps a test suite starting event.
Definition ResultEvent.h:151
robottestingframework::ResultEventStartSuite::ResultEventStartSuite
ResultEventStartSuite(const Test *test, TestMessage msg)
Definition ResultEvent.h:153
robottestingframework::ResultEventStartTest
The ResultEventStartTest class keeps a test starting event.
Definition ResultEvent.h:127
robottestingframework::ResultEventStartTest::ResultEventStartTest
ResultEventStartTest(const Test *test, TestMessage msg)
Definition ResultEvent.h:129
robottestingframework::ResultEvent
The ResultEvent class is used by a test collector to collect the result of the tests and the correspo...
Definition ResultEvent.h:36
robottestingframework::ResultEvent::getMessage
TestMessage & getMessage()
getMessage get the corresponding message
Definition ResultEvent.h:75
robottestingframework::ResultEvent::ResultEvent
ResultEvent()
ResultEvent constructor.
Definition ResultEvent.h:41
robottestingframework::ResultEvent::~ResultEvent
virtual ~ResultEvent()=default
~ResultEvent Destructor
robottestingframework::ResultEvent::getTest
const Test * getTest()
getTest get the test
Definition ResultEvent.h:66
robottestingframework::ResultEvent::ResultEvent
ResultEvent(const Test *test, TestMessage msg)
ResultEvent constructor.
Definition ResultEvent.h:56
robottestingframework::ResultEvent::message
TestMessage message
Definition ResultEvent.h:82
robottestingframework::ResultEvent::test
const Test * test
Definition ResultEvent.h:81
robottestingframework::TestMessage
A formated message with details.
Definition TestMessage.h:33
robottestingframework::Test
The simplest form of a test unit.
Definition Test.h:35
robottestingframework
Definition Arguments.h:25