source: trunk/MFCtooling/replay/LogParser.h @ 111

Last change on this file since 111 was 105, checked in by sherbold, 13 years ago

+ added test verdict pass/fail, including error message and the number of the message in the session at which the verdict was set
+ added result file; location is a parameter when calling the application
+ added test arbiter: if the target of a message cannot be determined correctly, the session fails

File size: 1.4 KB
RevLine 
[32]1#pragma once
2
3#include "SAXContentHandlerImpl.h"
4#include <string>
5
6#include "WindowData.h"
[105]7#include "TestResults.h"
[32]8
9class LogParser : public SAXContentHandlerImpl
10{
11private:
12        static const int defaultMsgDelay = 2000;
13        WindowData * currentWindow;
14        WindowData * currentParent;
15
16        int msgType;
17        LPARAM lParam;
18        WPARAM wParam;
19
[104]20        boolean useDefaultDelay;
[32]21        int delay;
22
23        void sendMessage(HWND hwnd);
24
[104]25        _TCHAR * runCommand;
26        unsigned int startupTime;
27        HANDLE hProcess;
28
[105]29        std::wstring sessionId;
30        RESULT result;
31        unsigned int currentMessage;
32
33        TestResults * results;
34
[32]35public:
[105]36        LogParser(_TCHAR * runCommand, unsigned int startupChar, TestResults * results, bool useDefaultDelay = false);
[32]37        ~LogParser(void);
38
39        virtual HRESULT STDMETHODCALLTYPE startElement(
40                        wchar_t __RPC_FAR *pwchNamespaceUri,
41                        int cchNamespaceUri,
42                        wchar_t __RPC_FAR *pwchLocalName,
43                        int cchLocalName,
44                        wchar_t __RPC_FAR *pwchRawName,
45                        int cchRawName,
46                        MSXML2::ISAXAttributes __RPC_FAR *pAttributes);
47
48        virtual HRESULT STDMETHODCALLTYPE endElement(
49                        wchar_t __RPC_FAR *pwchNamespaceUri,
50                        int cchNamespaceUri,
51                        wchar_t __RPC_FAR *pwchLocalName,
52                        int cchLocalName,
53                        wchar_t __RPC_FAR *pwchRawName,
54                        int cchRawName);
55
56        std::wstring GetAttributeValue(MSXML2::ISAXAttributes __RPC_FAR *pAttributes,
57                                                           std::wstring name, std::wstring defvalue);
58
59
60        int getDefaultMsgDelay();
61};
Note: See TracBrowser for help on using the repository browser.