|
@@ -105,12 +105,28 @@ namespace SATParameters{
|
|
|
}STHeartbeatReq, *pSTHeartbeatReq;
|
|
|
|
|
|
typedef struct __ST_CASE__
|
|
|
- {
|
|
|
+ {
|
|
|
std::string strIndex;
|
|
|
std::string strCaseName;
|
|
|
std::string strMainFilePath;
|
|
|
std::string strId;
|
|
|
std::string strCaseType;
|
|
|
+ // 执行器对象;
|
|
|
+ void *_pExcutor;
|
|
|
+ // 执行状态;
|
|
|
+ int _nExecutionState;
|
|
|
+ // 脚本保存路径;
|
|
|
+ std::string _strFileDir;
|
|
|
+ std::string _strFileName; // 脚本文件名;
|
|
|
+ std::string _strScriptPath;
|
|
|
+ // 执行开始时间;
|
|
|
+ ULONGLONG _ulStartTickCount;
|
|
|
+ __ST_CASE__()
|
|
|
+ {
|
|
|
+ _pExcutor = NULL;
|
|
|
+ // 0表示未执行;1表示执行中;2表示执行完毕;3表示超时中断;
|
|
|
+ _nExecutionState = 0;
|
|
|
+ }
|
|
|
}STCase, *pSTCase;
|
|
|
|
|
|
typedef struct __ST_JOB__
|
|
@@ -158,6 +174,8 @@ namespace SATParameters{
|
|
|
|
|
|
typedef struct __ST_TASK__
|
|
|
{
|
|
|
+ // 任务Case用例是否支持并发;
|
|
|
+ bool _bConcurrent;
|
|
|
std::string strInstanceName;
|
|
|
std::string strExecutionStatus;
|
|
|
std::string strInstanceType;
|
|
@@ -170,6 +188,8 @@ namespace SATParameters{
|
|
|
std::string strTaskType;
|
|
|
int nInstanceId;
|
|
|
std::string strProgress;
|
|
|
+ // 任务执行状态;
|
|
|
+ int _nExecutionState;
|
|
|
std::string strStartTime;
|
|
|
std::string strStopTime;
|
|
|
std::string strTaskName;
|
|
@@ -177,6 +197,12 @@ namespace SATParameters{
|
|
|
int fd;
|
|
|
int nTaskId;
|
|
|
STJob Job;
|
|
|
+ __ST_TASK__()
|
|
|
+ {
|
|
|
+ _bConcurrent = false;
|
|
|
+ // 0表示未执行;1表示执行中;2表示执行完毕;
|
|
|
+ _nExecutionState = 0;
|
|
|
+ }
|
|
|
}STTask, *pSTTask;
|
|
|
|
|
|
// SAT心跳返回结果;
|
|
@@ -258,7 +284,9 @@ namespace SATParameters{
|
|
|
std::string strMessage;
|
|
|
std::string strProjectId;
|
|
|
// 脚本保存路径;
|
|
|
- std::string strScripFile;
|
|
|
+ std::string _strFileDir; // 脚本子目录;
|
|
|
+ std::string _strFileName; // 脚本文件名;
|
|
|
+ std::string _strScripFile; // 完成的本地脚本保存目录;
|
|
|
}STScriptUrlResp,*pSTScriptUrlResp;
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|