|
@@ -612,6 +612,7 @@ bool CSATExecutor::ReportCaseResult(SATHTTP::STTask* pTask, SATHTTP::STCase *pCa
|
|
|
pCase->_nExecutionResult = SATHTTP::ABNORMAL;
|
|
|
// 同时标记任务失败;
|
|
|
pTask->_nExecutionResult = SATHTTP::FAIL;
|
|
|
+ GLOBAL::WriteTextLog(_T("测试项空,用例名:%s"), pCase->strCaseName.c_str());
|
|
|
}
|
|
|
|
|
|
int nIndex = 1;
|
|
@@ -837,6 +838,7 @@ bool CSATExecutor::GetCaseXMLResult(std::string xmlpath, std::vector<STCaseItem>
|
|
|
// 解析xml;
|
|
|
tinyxml2::XMLDocument doc;
|
|
|
if (tinyxml2::XML_SUCCESS != doc.LoadFile(xmlpath.c_str()) ) {
|
|
|
+ GLOBAL::WriteTextLog("没有测试项对应的xml文件:%s", xmlpath.c_str());
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -847,6 +849,7 @@ bool CSATExecutor::GetCaseXMLResult(std::string xmlpath, std::vector<STCaseItem>
|
|
|
if (_tcsicmp(pXmlRoot->Value(), "results") != 0)
|
|
|
return false;
|
|
|
|
|
|
+ GLOBAL::WriteTextLog("开始获取测试项内容:%s", xmlpath.c_str());
|
|
|
tinyxml2::XMLElement *pXmlElent = pXmlRoot->FirstChildElement();
|
|
|
while (pXmlElent) {
|
|
|
if (_tcsicmp(pXmlElent->Value(), _T("item")) == 0) {
|