修改邮件模板以及POM文件

This commit is contained in:
seagull 2019-05-05 11:29:55 +08:00
parent 1f46e1d245
commit 5c78df75f8
3 changed files with 10 additions and 64 deletions

58
pom.xml
View File

@ -61,7 +61,6 @@
<exclude>**/TestDriven/*</exclude> <exclude>**/TestDriven/*</exclude>
<exclude>appium_config.properties</exclude> <exclude>appium_config.properties</exclude>
<exclude>sys_config.properties</exclude> <exclude>sys_config.properties</exclude>
<exclude>testlinkjavaapi.properties</exclude>
</excludes> </excludes>
<archive> <archive>
<manifest> <manifest>
@ -251,16 +250,6 @@
<version>1.3.8.RELEASE</version> <version>1.3.8.RELEASE</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.xmlrpc</groupId>
<artifactId>xmlrpc-client</artifactId>
<version>3.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.xmlrpc</groupId>
<artifactId>xmlrpc-common</artifactId>
<version>3.1.3</version>
</dependency>
<dependency> <dependency>
<groupId>org.seleniumhq.selenium</groupId> <groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId> <artifactId>selenium-java</artifactId>
@ -272,17 +261,7 @@
<dependency> <dependency>
<groupId>xml-apis</groupId> <groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId> <artifactId>xml-apis</artifactId>
</dependency> </dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency> <dependency>
<groupId>io.appium</groupId> <groupId>io.appium</groupId>
<artifactId>java-client</artifactId> <artifactId>java-client</artifactId>
@ -291,30 +270,7 @@
<dependency> <dependency>
<groupId>org.freemarker</groupId> <groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId> <artifactId>freemarker</artifactId>
</dependency> </dependency>
<dependency>
<groupId>br.eti.kinoshita</groupId>
<artifactId>testlink-java-api</artifactId>
<version>1.9.16-0</version>
<exclusions>
<exclusion>
<artifactId>log4j-api</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
<exclusion>
<artifactId>commons-configuration2</artifactId>
<groupId>org.apache.commons</groupId>
</exclusion>
<exclusion>
<artifactId>log4j-core</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
<exclusion>
<artifactId>commons-httpclient</artifactId>
<groupId>commons-httpclient</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>org.apache.httpcomponents</groupId> <groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId> <artifactId>httpmime</artifactId>
@ -334,15 +290,5 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency> -->
</dependencies> </dependencies>
</project> </project>

View File

@ -24,7 +24,7 @@ a {
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0"> <table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> <tr>
<td height="92" style="background-color:rgba(51,204,255,0.6);"> <td height="92" style="background-color:rgba(51,204,255,0.6);">
<a href="http://www.luckyframe.cn" title="LuckyFrame" target="_blank"><img src="http://${webip}:${webport}/pic/maillogo.png" alt="LuckyFrame" width="300" height="92" border="0" /></a></td> <a href="http://www.luckyframe.cn" title="LuckyFrame" target="_blank"><img src="http://${webip}:${webport}/img/maillogo.png" alt="LuckyFrame" width="300" height="92" border="0" /></a></td>
</tr> </tr>
<tr> <tr>
<td height="1" colspan="2"><hr style="border-bottom:5px solid #f1f1f1; display:block;" /></td> <td height="1" colspan="2"><hr style="border-bottom:5px solid #f1f1f1; display:block;" /></td>
@ -44,12 +44,9 @@ a {
<p><b>用例执行失败: </b> 【<font color='#FF0000'>${casefail}</font>】</p> <p><b>用例执行失败: </b> 【<font color='#FF0000'>${casefail}</font>】</p>
<p><b>用例有可能由于脚本原因未成功解析被锁定:</b> 【<font color='#AE57A4'>${caselock}</font>】</p> <p><b>用例有可能由于脚本原因未成功解析被锁定:</b> 【<font color='#AE57A4'>${caselock}</font>】</p>
<p><b>用例由于长时间未收到接口Response未执行完成</b> 【<font color='#FFAD86'>${caseunex}</font>】</p> <p><b>用例由于长时间未收到接口Response未执行完成</b> 【<font color='#FFAD86'>${caseunex}</font>】</p>
<br>
<p><b>具体详情请点击: </b><a href='http://${webip}:${webport}/caseDetail/load.do?taskId=${taskid}' target='任务查询'>查询本次自动化任务执行结果明细</a></p>
<p><b>查看全部项目请点击: </b><a href='http://${webip}:${webport}/autoTestChar/chart.do'>查看全部项目执行情况</a></p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p> 此为自动化平台LuckyFrame的系统邮件请勿回复</p> <p> 此为自动化平台LuckyFrame的系统邮件请勿回复</p>
<p> 请及时前往平台查看您的任务执行的更多细节</p> <p> 请及时前往<a href='http://${webip}:${webport}'>LuckyFrame平台</a>查看您的任务执行的更多细节</p>
<p> <p>
</div> </div>
</td> </td>

View File

@ -2,6 +2,7 @@ package luckyclient.publicclass;
import java.io.File; import java.io.File;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile; import java.util.jar.JarFile;
/** /**
@ -43,8 +44,8 @@ public class JarClassFind {
} else { } else {
if (filelist[i].endsWith("jar")) { if (filelist[i].endsWith("jar")) {
try { try {
JarFile jarfile = new java.util.jar.JarFile(path + filelist[i]); JarFile jarfile = new java.util.jar.JarFile(path + filelist[i]);
for (Enumeration e = jarfile.entries(); e.hasMoreElements();) { for (Enumeration<JarEntry> e = jarfile.entries(); e.hasMoreElements();) {
String name = e.nextElement().toString(); String name = e.nextElement().toString();
if (name.equals(classname) || name.indexOf(classname) > -1) { if (name.equals(classname) || name.indexOf(classname) > -1) {
count++; count++;
@ -52,7 +53,9 @@ public class JarClassFind {
System.out.println(""+path + filelist[i]+"】查找到第"+count+"个JAR包存在指定类"); System.out.println(""+path + filelist[i]+"】查找到第"+count+"个JAR包存在指定类");
} }
} }
} catch (Exception eee) { jarfile.close();
} catch (Exception e) {
} }
} }
} }