#include <wxGuiTest/Common.h>
#include <wxGuiTest/WxGuiTestApp.h>
#include <wxGuiTest/CRLogInterface.h>
#include <wxGuiTest/CREventCaptureManager.h>
#include <wxGuiTest/CRCppEmitter.h>
#include <wxGuiTest/CRCaptureControl.h>
Go to the source code of this file.
Namespaces | |
namespace | wxTst |
Classes | |
class | wxTst::CRCapture |
Provides a way of capturing GUI interaction for future test cases. More... | |
Defines | |
#define | CAPTURE |
Macro allowing bootstrap of capture & replay. |
Doxygen documentation only needed for define CAPTURE.
Definition in file CRCapture.h.
#define CAPTURE |
Value:
{ \ wxApp *app = wxTheApp; \ wxASSERT (app != NULL); \ wxTst::WxGuiTestApp *guiTestApp = dynamic_cast< wxTst::WxGuiTestApp * >(app); \ wxASSERT (guiTestApp != NULL); \ guiTestApp->SetEventFilter (wxTst::CREventCaptureManager::GetInstance ()); \ \ std::string excMsg; \ wxTst::CRCapture *capture = new wxTst::CRCapture (); \ try { \ capture->Capture (__FILE__, __LINE__); \ } catch (std::exception &e) { \ excMsg = e.what (); \ } catch (...) { \ excMsg = "Unexpected capturing exception"; \ } \ guiTestApp->SetEventFilter (NULL); \ delete capture; \ wxTst::CRCppEmitter::Destroy (); \ if (!excMsg.empty ()) { \ CPPUNIT_FAIL (excMsg.c_str ()); \ } \ }
Using "{...}" notation several capturings can be used in one single method.
Definition at line 59 of file CRCapture.h.