def excelName = "AllTests-Fails"
String projectPath = context.expand( '${projectDir}' )
String filePath = projectPath+ "/TestResult/" + excelName + ".xlsx"
//删除已存在的错误报告
File testResultFile = new File(filePath)
if(testResultFile.exists()){
testResultFile.delete()
}