17 * |
17 * |
18 */ |
18 */ |
19 #ifndef STIFEXECUTOR_H_ |
19 #ifndef STIFEXECUTOR_H_ |
20 #define STIFEXECUTOR_H_ |
20 #define STIFEXECUTOR_H_ |
21 |
21 |
22 //#include <TestModuleInfo.h> |
|
23 #include "cstfcase.h" |
22 #include "cstfcase.h" |
24 #include "cstfmodule.h" |
23 #include "cstfmodule.h" |
25 #include <UIStoreIf.h> |
24 #include <UIStoreIf.h> |
26 #include <UIStore.h> |
25 #include <UIStore.h> |
27 #include <UIEngine.h> |
26 #include <UIEngine.h> |
28 #include <QList> |
27 #include <QList> |
|
28 #include <StifLogger.h> |
29 |
29 |
30 class IStifCaseUpdateListener |
30 class IStifCaseUpdateListener |
31 { |
31 { |
32 public: |
32 public: |
33 virtual void OnGetCaseUpdated(CStartedTestCase* aCase,CSTFCase& stfcase, int flags) = 0; |
33 virtual void OnGetCaseUpdated(CStartedTestCase* aCase,CSTFCase& stfcase, int flags) = 0; |
47 QList<CSTFModule> GetModuleList(); |
47 QList<CSTFModule> GetModuleList(); |
48 QList<CSTFCase> GetCaseList(const QString& moduleName); |
48 QList<CSTFCase> GetCaseList(const QString& moduleName); |
49 void ExecuteSingleCase(const QString& moduleName, int caseIndex); |
49 void ExecuteSingleCase(const QString& moduleName, int caseIndex); |
50 QList<QString> GetSetList(); |
50 QList<QString> GetSetList(); |
51 QList<CSTFCase> GetCaseListFromSet(const QString& setName); |
51 QList<CSTFCase> GetCaseListFromSet(const QString& setName); |
52 void CreateSet(const QString& setName); |
52 bool CreateSet(const QString& setName); |
53 void SaveSet(QString& setName); |
53 bool SaveSet(QString& setName); |
54 void RemoveSet(const QString& setName); |
54 bool RemoveSet(const QString& setName); |
55 void AddtoSet(const QString& setName, CSTFCase& caseInfo); |
55 bool AddtoSet(const QString& setName, CSTFCase& caseInfo); |
56 void ExecuteSet(const QString& SetName, const int startIndex, const TSTFCaseRunningType type); |
56 void ExecuteSet(const QString& SetName, const int startIndex, const TSTFCaseRunningType type); |
57 |
57 |
58 public://implement CUIStoreIf |
58 public://implement CUIStoreIf |
59 void Update( CStartedTestCase* aTestCase, |
59 void Update( CStartedTestCase* aTestCase, |
60 TInt aFlags); |
60 TInt aFlags); |
61 |
61 |
62 public: |
62 public: |
63 TPtrC QString2TPtrC(const QString& aString); |
63 TPtrC QString2TPtrC(const QString& aString); |
64 QString TDesC2QString(const TDesC& des); |
64 QString TDesC2QString(const TDesC& des); |
65 //CTestInfo* GetTestInfo(CSTFCase aCase); |
65 //CTestInfo* GetTestInfo(CSTFCase aCase); |
|
66 |
|
67 private: |
|
68 bool LogResult(const TInt result,const QString str); |
66 private: |
69 private: |
67 QList<IStifCaseUpdateListener*> *listenerList; |
70 QList<IStifCaseUpdateListener*> *listenerList; |
68 HBufC* iBuffer; |
71 HBufC* iBuffer; |
|
72 // Pointer to logger |
|
73 CStifLogger * iLog; |
69 }; |
74 }; |
70 |
75 |
71 |
76 |
72 |
77 |
73 #endif /* STIFEXECUTOR_H_ */ |
78 #endif /* STIFEXECUTOR_H_ */ |