--- a/stifui/qt/inc/stfqtuicontroller.h Tue Jun 01 14:40:54 2010 +0300
+++ b/stifui/qt/inc/stfqtuicontroller.h Fri Jun 11 17:49:08 2010 +0300
@@ -35,6 +35,7 @@
QList<QString> GetCaseListByModule(const QString& moduleName);
CSTFCase GetCase(const QString& moduleName, const int index);
void RunCases(const QList<CSTFCase>& caseList, const TSTFCaseRunningType& type);
+ void RepeatRunCases(const QList<CSTFCase>& aCaseList, const bool aIsLoopInfinitely, const int aLoopTimes = 1);
bool AddCaseToSet(const QList<CSTFCase>& aCase, const QString& setName);
//for set
@@ -58,6 +59,10 @@
//listener
void AddStfEventListener(IStfEventListener* listener);
void RemoveStfEventListener(IStfEventListener* listener);
+
+ //for repeat execution setting
+ void InitRepeatSetting(const bool aIsLoopInfinitely, const int aLoopTimes);
+ void ResetRepeatSetting();
public://implement IStifCaseUpdateListener
void OnGetCaseUpdated(CStartedTestCase* aCase, CSTFCase& stfcase, int flags);
@@ -68,8 +73,11 @@
void FireOnSetListChanged();
void FireOnCaseOutputChanged(IStfEventListener::CaseOutputCommand cmd, int index, QString msg);
-private://help methods
+private:
+ // help methods
CSTFModule GetModuleByName(const QString& moduleName);
+ // Repeat execution cases
+ void Execution();
private:
CStifExecutor* executor;
@@ -77,8 +85,16 @@
QList<IStfEventListener*> listenerList;
bool isShowOutput;
+ // repeat run case related member
+ // repeat execution case list
+ QList<CSTFCase> repeatRunCaseList;
+ // current position of the case list
+ int iCurrentRunPos;
+ // is loop infinitely
+ bool isLoopInfinitely;
+ // loop times
+ int loopTimes;
-
};