|
@@ -211,6 +211,14 @@ namespace SATHTTP{
|
|
std::string strMonkeyPctNav;
|
|
std::string strMonkeyPctNav;
|
|
}STJob, *pSTJob;
|
|
}STJob, *pSTJob;
|
|
|
|
|
|
|
|
+ typedef struct __ST_SOMKING_CYCLE__
|
|
|
|
+ {
|
|
|
|
+ int nType; // 0:立即执行, 1:每天, 2:每周, 3:每月x日;
|
|
|
|
+ int nWeek; // 星期:0~6
|
|
|
|
+ int nDay; // 日:1~31
|
|
|
|
+ std::string strTime; // 时间,格式:"时:分"
|
|
|
|
+ }STSomkingCycle, *pSTSomkingCycle;
|
|
|
|
+
|
|
typedef struct __ST_TASKINFO__
|
|
typedef struct __ST_TASKINFO__
|
|
{
|
|
{
|
|
// 任务Case用例是否支持并发;
|
|
// 任务Case用例是否支持并发;
|
|
@@ -240,6 +248,11 @@ namespace SATHTTP{
|
|
//std::string strTaskId;
|
|
//std::string strTaskId;
|
|
// 任务日志;
|
|
// 任务日志;
|
|
std::string _strTaskLog;
|
|
std::string _strTaskLog;
|
|
|
|
+ // 服务器名称;
|
|
|
|
+ std::string strBuildServerName;
|
|
|
|
+ // 冒烟任务执行周期json;
|
|
|
|
+ //std::string strSomkingCycle;
|
|
|
|
+ STSomkingCycle stSomkingCycle;
|
|
__ST_TASKINFO__() {
|
|
__ST_TASKINFO__() {
|
|
_bConcurrent = false;
|
|
_bConcurrent = false;
|
|
// 0表示未执行;1表示执行中;2表示执行完毕;
|
|
// 0表示未执行;1表示执行中;2表示执行完毕;
|
|
@@ -249,6 +262,15 @@ namespace SATHTTP{
|
|
}
|
|
}
|
|
}STTaskInfo, *pSTTaskInfo;
|
|
}STTaskInfo, *pSTTaskInfo;
|
|
|
|
|
|
|
|
+ //////////////////////////////////////////////////////////////////////////
|
|
|
|
+ // 升级包信息;
|
|
|
|
+ typedef struct __ST_UPGRADE_IMG_INFO__{
|
|
|
|
+ std::string strSoftwareName;
|
|
|
|
+ std::string strSoftwareNumber;
|
|
|
|
+ std::string strSoftwareVersion;
|
|
|
|
+ std::string strProjectId;
|
|
|
|
+ }STUpgradeImgInfo, *pSTUpgradeImgInfo;
|
|
|
|
+
|
|
typedef struct __ST_TASK__
|
|
typedef struct __ST_TASK__
|
|
{
|
|
{
|
|
int _curRound;
|
|
int _curRound;
|
|
@@ -257,6 +279,7 @@ namespace SATHTTP{
|
|
int _roundCount; // 有多少轮;
|
|
int _roundCount; // 有多少轮;
|
|
STTaskInfo taskInfo;
|
|
STTaskInfo taskInfo;
|
|
STJob Job;
|
|
STJob Job;
|
|
|
|
+ STUpgradeImgInfo SoftwareInfo; // 软件信息;
|
|
std::vector<STCase> vtCases;
|
|
std::vector<STCase> vtCases;
|
|
__ST_TASK__(){
|
|
__ST_TASK__(){
|
|
_curRound = 1;
|
|
_curRound = 1;
|
|
@@ -427,6 +450,18 @@ namespace SATHTTP{
|
|
{
|
|
{
|
|
std::string strData;
|
|
std::string strData;
|
|
}STSaveImgResp, *pSTSaveImgResp;
|
|
}STSaveImgResp, *pSTSaveImgResp;
|
|
|
|
+
|
|
|
|
+ //////////////////////////////////////////////////////////////////////////
|
|
|
|
+ // 10、编译服务器信息
|
|
|
|
+ typedef struct __ST_BUILD_SERVER_INFO__
|
|
|
|
+ {
|
|
|
|
+ std::string strBuildServerName; // 编译服务器名;
|
|
|
|
+ std::string strBuildServerAddress; // 服务器地址;
|
|
|
|
+ int nBuildServerPort; // 服务器ssh端口号;
|
|
|
|
+ std::string strBuildServerUser; // 服务器用户名(sftp);
|
|
|
|
+ std::string strBuildServerPwd; // 服务器用户密码;
|
|
|
|
+ std::string strBuildServerImgPath; // 服务器升级包路径;
|
|
|
|
+ }STBuildServerInfo, *pSTBuildServerInfo;
|
|
}
|
|
}
|
|
|
|
|
|
extern SATHTTP_API int nSATHTTP;
|
|
extern SATHTTP_API int nSATHTTP;
|