|  | @@ -128,6 +128,14 @@ SATHTTP::STCase* CSATExecutor::ExecuteFreeCaseScript(SATHTTP::STTask* pTask)
 | 
	
		
			
				|  |  |  	// 获取未执行的脚本;
 | 
	
		
			
				|  |  |  	SATHTTP::STCase* pCase = GetFreeCaseScript(pTask->Job.vtCases);
 | 
	
		
			
				|  |  |  	if (pCase) {		
 | 
	
		
			
				|  |  | +#if 1 // 额外追加代码:清除之前的xml文件;
 | 
	
		
			
				|  |  | +		std::string xmlpath = GLOBAL::g_stSATConfig.szCaseResultDir;
 | 
	
		
			
				|  |  | +		xmlpath.append("detail\\");
 | 
	
		
			
				|  |  | +		xmlpath.append(pCase->_strFileName);
 | 
	
		
			
				|  |  | +		xmlpath.append("_result.xml");
 | 
	
		
			
				|  |  | +		// 删除文件;
 | 
	
		
			
				|  |  | +		DeleteFile(xmlpath.c_str());
 | 
	
		
			
				|  |  | +#endif
 | 
	
		
			
				|  |  |  		if ( !pCase->_pExcutor ) {
 | 
	
		
			
				|  |  |  			CPythonExecutor *pExcutor = new CPythonExecutor(); 
 | 
	
		
			
				|  |  |  			if ( pExcutor ) {
 |