Last change
on this file since 1427 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:
458 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include <string>
|
---|
4 | #include <vector>
|
---|
5 | #include <fstream>
|
---|
6 |
|
---|
7 | typedef struct _RESULT {
|
---|
8 | bool sessionPass;
|
---|
9 | std::wstring errorMessage;
|
---|
10 | int msgNumber;
|
---|
11 | } RESULT;
|
---|
12 |
|
---|
13 | class TestResults
|
---|
14 | {
|
---|
15 | private:
|
---|
16 | std::vector<std::pair<std::wstring, RESULT>> results;
|
---|
17 | _TCHAR * replayFile;
|
---|
18 | public:
|
---|
19 | TestResults(_TCHAR * replayFile);
|
---|
20 | ~TestResults(void);
|
---|
21 |
|
---|
22 | void addResult(std::wstring sessionId, RESULT result);
|
---|
23 | void write(_TCHAR * resultFile);
|
---|
24 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.