diff -r 822c625f7adc -r 65b472535a0d stifui/qt/inc/stfqtuicontroller.h --- a/stifui/qt/inc/stfqtuicontroller.h Wed Jun 09 09:42:37 2010 +0300 +++ b/stifui/qt/inc/stfqtuicontroller.h Mon Jun 21 15:41:16 2010 +0300 @@ -35,6 +35,7 @@ QList GetCaseListByModule(const QString& moduleName); CSTFCase GetCase(const QString& moduleName, const int index); void RunCases(const QList& caseList, const TSTFCaseRunningType& type); + void RepeatRunCases(const QList& aCaseList, const bool aIsLoopInfinitely, const int aLoopTimes = 1); bool AddCaseToSet(const QList& 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 listenerList; bool isShowOutput; + // repeat run case related member + // repeat execution case list + QList repeatRunCaseList; + // current position of the case list + int iCurrentRunPos; + // is loop infinitely + bool isLoopInfinitely; + // loop times + int loopTimes; - };