Commit a5de86c8 by wanggang

添加批量上传接口

parent 8d370c2f
package com.mjitech.qa.service;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
......@@ -22,6 +23,7 @@ import net.sf.json.JSONObject;
import org.apache.http.Consts;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
......@@ -29,7 +31,12 @@ import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.entity.mime.HttpMultipartMode;
import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import com.mjitech.qa.util.Base64;
......@@ -651,6 +658,74 @@ public class BaseService {
return json;
}
/**
* 图片上传接口
* @param url 上传URL
* @param fileType 文件类型
* */
// public String uploadImageList(String url,String file)
// throws ClientProtocolException, IOException {
// HttpClient httpclient = HttpClientBuilder.create().build();
// HttpPost httppost = new HttpPost(url);
// HttpEntity req = MultipartEntityBuilder.create().setMode(HttpMultipartMode.BROWSER_COMPATIBLE)
// .addPart("filename", new FileBody(new File(System.getProperty("user.dir") + "\\imageLib\\card.jpg"))).build();
// // .addTextBody("files", file).build();
//
//
//
// System.out.println("executing request: " + httppost.getRequestLine());
//
// HttpResponse response = httpclient.execute(httppost);
// HttpEntity re = response.getEntity();
// System.out.println(response.getStatusLine());
// BufferedReader postresult = new BufferedReader(new InputStreamReader(re.getContent()));
// StringBuilder strB = new StringBuilder();
// String line = null;
// if ((line = postresult.readLine()) != null) {
// strB.append(line);
// }
// EntityUtils.consume(re);
//
// return strB.toString();
// }
/**
* 图片上传接口
* @param url 上传URL
* @author gangwang
* @date 2018-08-08
* */
public String uploadImageList(String url){
String status = "" ;
HttpClient client=new DefaultHttpClient();
HttpPost httpPost=new HttpPost(url);//通过post传递
/**绑定数据 这里需要注意 如果是中文 会出现中文乱码问题 但只要按设置好*/
MultipartEntity muit=new MultipartEntity();
// 上传 文本, 转换编码为utf-8 其中"text" 为字段名,
//Charset.forName(CHARSET)为参数值,可设置为UTF-8,其实就是正常的值转换成utf-8的编码格式
// 后边new StringBody(text,Charset.forName(CHARSET))
File parent = new File(System.getProperty("user.dir") + "\\imageLib\\");
File fileupload=new File(parent,"card.jpg");
FileBody fileBody=new FileBody(fileupload);
muit.addPart("files",fileBody);
httpPost.setEntity(muit);
/**发送请求*/
try {
HttpResponse response=client.execute(httpPost);
//判断是否上传成功 返回200
if (response.getStatusLine().getStatusCode()== HttpStatus.SC_OK){
// System.out.println(EntityUtils.toString(response.getEntity()));
status = EntityUtils.toString(response.getEntity());
}
} catch (ClientProtocolException e){
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return status;
}
}
......@@ -4,13 +4,11 @@ import java.io.IOException;
import org.apache.http.client.ClientProtocolException;
import org.testng.annotations.Test;
import com.mjitech.qa.service.BaseService;
import net.sf.json.JSONObject;
/**
* 删除图片接口
* 故障检查任务之一-已知故障-删除图片接口
* @author gangwang
* @date 2018-07-30
* */
......@@ -19,8 +17,8 @@ public class DeleteImageError {
JSONObject json = JSONObject.fromObject("{}");
@Test
public void delete_image_error() {
String url = "http://preprod.mjitech.com/maxbox/web/delete_image_error.action" ;
String body = "{\"storeId\":\"12\",\"employeeId\":\"20\"}";
String url = "http://preprod.mjitech.com/web/delete_image_error.action";
String body = "{\"fileId\":\"3213\",\"errorId\":\"432\",\"type\":\"KN\"}";
try {
JSONObject result = service.httpPostFlat(url, body);
System.out.println("删除图片:"+result);
......
package com.mjitech.qa.test;
import org.testng.annotations.Test;
import com.mjitech.qa.service.BaseService;
import junit.framework.Assert;
import net.sf.json.JSONObject;
/**
* 批量上传图片返回图片idList
* @author gangwang
* @date 2018-08-06
* */
public class UploadImageList {
BaseService service = new BaseService();
@Test
public void upload_image_list() {
String url = "http://preprod.mjitech.com/web/upload_image_list.action" ;
//{"meta":{"code":"200","message":"成功","success":true},"data":[3877]}
String result = service.uploadImageList(url);
JSONObject stringtoJson = JSONObject.fromObject(result);
String code = stringtoJson.getJSONObject("meta").getString("code");
Assert.assertEquals("200", code);
}
}
......@@ -57,9 +57,9 @@ function toggleAllBoxes() {
<tr>
<td>Tests passed/Failed/Skipped:</td><td>1/0/0</td>
</tr><tr>
<td>Started on:</td><td>Tue Jul 31 11:07:23 CST 2018</td>
<td>Started on:</td><td>Wed Aug 08 18:11:44 CST 2018</td>
</tr>
<tr><td>Total time:</td><td>1 seconds (1777 ms)</td>
<tr><td>Total time:</td><td>0 seconds (961 ms)</td>
</tr><tr>
<td>Included groups:</td><td></td>
</tr><tr>
......@@ -75,10 +75,10 @@ function toggleAllBoxes() {
<td><b>Instance</b></td>
</tr>
<tr>
<td title='com.mjitech.qa.test.UpdateDoorClose.update_close_door()'><b>update_close_door</b><br>Test class: com.mjitech.qa.test.UpdateDoorClose</td>
<td title='com.mjitech.qa.test.UploadImageList.upload_image_list()'><b>upload_image_list</b><br>Test class: com.mjitech.qa.test.UploadImageList</td>
<td></td>
<td>1</td>
<td>com.mjitech.qa.test.UpdateDoorClose@7a9273a8</td></tr>
<td>0</td>
<td>com.mjitech.qa.test.UploadImageList@45820e51</td></tr>
</table><p>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitXMLReporter -->
<testsuite hostname="YLMF-1711181457" name="Default test" tests="1" failures="0" timestamp="31 Jul 2018 03:07:24 GMT" time="1.777" errors="0">
<testcase name="update_close_door" time="1.759" classname="com.mjitech.qa.test.UpdateDoorClose"/>
<testsuite hostname="YLMF-1711181457" name="Default test" tests="1" failures="0" timestamp="8 Aug 2018 10:11:45 GMT" time="0.961" errors="0">
<testcase name="upload_image_list" time="0.938" classname="com.mjitech.qa.test.UploadImageList"/>
</testsuite> <!-- Default test -->
......@@ -3,11 +3,11 @@
<suite name="Failed suite [Default suite]">
<test name="Default test(failed)">
<classes>
<class name="com.mjitech.qa.test.ListFault">
<class name="com.mjitech.qa.test.GetMachineData">
<methods>
<include name="list_fault"/>
<include name="getMachineData"/>
</methods>
</class> <!-- com.mjitech.qa.test.ListFault -->
</class> <!-- com.mjitech.qa.test.GetMachineData -->
</classes>
</test> <!-- Default test(failed) -->
</suite> <!-- Failed suite [Default suite] -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TestNG Report</title><style type="text/css">table {margin-bottom:10px;border-collapse:collapse;empty-cells:show}th,td {border:1px solid #009;padding:.25em .5em}th {vertical-align:bottom}td {vertical-align:top}table a {font-weight:bold}.stripe td {background-color: #E6EBF9}.num {text-align:right}.passedodd td {background-color: #3F3}.passedeven td {background-color: #0A0}.skippedodd td {background-color: #DDD}.skippedeven td {background-color: #CCC}.failedodd td,.attn {background-color: #F33}.failedeven td,.stripe .attn {background-color: #D00}.stacktrace {white-space:pre;font-family:monospace}.totop {font-size:85%;text-align:center;border-bottom:2px solid #000}</style></head><body><table><tr><th>Test</th><th># Passed</th><th># Skipped</th><th># Failed</th><th>Time (ms)</th><th>Included Groups</th><th>Excluded Groups</th></tr><tr><th colspan="7">Suite</th></tr><tr><td><a href="#t0">平板需求相关接口</a></td><td class="num">3</td><td class="num">0</td><td class="num">0</td><td class="num">709</td><td></td><td></td></tr></table><table><thead><tr><th>Class</th><th>Method</th><th>Start</th><th>Time (ms)</th></tr></thead><tbody><tr><th colspan="4">Suite</th></tr></tbody><tbody id="t0"><tr><th colspan="4">平板需求相关接口 &#8212; passed</th></tr><tr class="passedeven"><td rowspan="1">com.mjitech.qa.test.GetMachineData</td><td><a href="#m0">getMachineData</a></td><td rowspan="1">1533007983451</td><td rowspan="1">559</td></tr><tr class="passedodd"><td rowspan="1">com.mjitech.qa.test.ListFault</td><td><a href="#m1">list_fault</a></td><td rowspan="1">1533007984014</td><td rowspan="1">76</td></tr><tr class="passedeven"><td rowspan="1">com.mjitech.qa.test.UpdateDoorClose</td><td><a href="#m2">update_close_door</a></td><td rowspan="1">1533007984092</td><td rowspan="1">57</td></tr></tbody></table><h2>平板需求相关接口</h2><h3 id="m0">com.mjitech.qa.test.GetMachineData#getMachineData</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m1">com.mjitech.qa.test.ListFault#list_fault</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m2">com.mjitech.qa.test.UpdateDoorClose#update_close_door</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p></body></html>
\ No newline at end of file
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TestNG Report</title><style type="text/css">table {margin-bottom:10px;border-collapse:collapse;empty-cells:show}th,td {border:1px solid #009;padding:.25em .5em}th {vertical-align:bottom}td {vertical-align:top}table a {font-weight:bold}.stripe td {background-color: #E6EBF9}.num {text-align:right}.passedodd td {background-color: #3F3}.passedeven td {background-color: #0A0}.skippedodd td {background-color: #DDD}.skippedeven td {background-color: #CCC}.failedodd td,.attn {background-color: #F33}.failedeven td,.stripe .attn {background-color: #D00}.stacktrace {white-space:pre;font-family:monospace}.totop {font-size:85%;text-align:center;border-bottom:2px solid #000}</style></head><body><table><tr><th>Test</th><th># Passed</th><th># Skipped</th><th># Failed</th><th>Time (ms)</th><th>Included Groups</th><th>Excluded Groups</th></tr><tr><th colspan="7">Default suite</th></tr><tr><td><a href="#t0">Default test</a></td><td class="num">1</td><td class="num">0</td><td class="num">0</td><td class="num">961</td><td></td><td></td></tr></table><table><thead><tr><th>Class</th><th>Method</th><th>Start</th><th>Time (ms)</th></tr></thead><tbody><tr><th colspan="4">Default suite</th></tr></tbody><tbody id="t0"><tr><th colspan="4">Default test &#8212; passed</th></tr><tr class="passedeven"><td rowspan="1">com.mjitech.qa.test.UploadImageList</td><td><a href="#m0">upload_image_list</a></td><td rowspan="1">1533723104474</td><td rowspan="1">938</td></tr></tbody></table><h2>Default test</h2><h3 id="m0">com.mjitech.qa.test.UploadImageList#upload_image_list</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.DeleteImageError" tests="1" failures="0" timestamp="2 Aug 2018 07:39:30 GMT" time="0.510" errors="0">
<testcase name="delete_image_error" time="0.510" classname="com.mjitech.qa.test.DeleteImageError"/>
</testsuite> <!-- com.mjitech.qa.test.DeleteImageError -->
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.GetMachineData" tests="1" failures="0" timestamp="31 Jul 2018 03:33:04 GMT" time="0.559" errors="0">
<testcase name="getMachineData" time="0.559" classname="com.mjitech.qa.test.GetMachineData"/>
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.GetMachineData" tests="1" failures="0" timestamp="1 Aug 2018 06:12:56 GMT" time="1.902" errors="0">
<testcase name="getMachineData" time="1.902" classname="com.mjitech.qa.test.GetMachineData"/>
</testsuite> <!-- com.mjitech.qa.test.GetMachineData -->
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.ListFault" tests="1" failures="0" timestamp="31 Jul 2018 03:33:04 GMT" time="0.076" errors="0">
<testcase name="list_fault" time="0.076" classname="com.mjitech.qa.test.ListFault"/>
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.ListFault" tests="1" failures="0" timestamp="1 Aug 2018 03:24:48 GMT" time="0.534" errors="0">
<testcase name="list_fault" time="0.534" classname="com.mjitech.qa.test.ListFault"/>
</testsuite> <!-- com.mjitech.qa.test.ListFault -->
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite hostname="YLMF-1711181457" name="com.mjitech.qa.test.UploadImageList" tests="1" failures="0" timestamp="8 Aug 2018 10:11:45 GMT" time="0.938" errors="0">
<testcase name="upload_image_list" time="0.938" classname="com.mjitech.qa.test.UploadImageList"/>
</testsuite> <!-- com.mjitech.qa.test.UploadImageList -->
......@@ -4,14 +4,14 @@
<th>Method name</th>
<th>Groups</th>
</tr><tr>
<td>com.mjitech.qa.test.UpdateDoorClose</td>
<td>com.mjitech.qa.test.UploadImageList</td>
<td>&nbsp;</td><td>&nbsp;</td></tr>
<tr>
<td align='center' colspan='3'>@Test</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>update_close_door</td>
<td>upload_image_list</td>
<td>&nbsp;</td></tr>
<tr>
<td align='center' colspan='3'>@BeforeClass</td>
......
<h2>Methods run, sorted chronologically</h2><h3>&gt;&gt; means before, &lt;&lt; means after</h3><p/><br/><em>Default suite</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr>
<tr bgcolor="c7c2a6"> <td>18/07/31 11:07:23</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="UpdateDoorClose.update_close_door()[pri:0, instance:com.mjitech.qa.test.UpdateDoorClose@7a9273a8]">update_close_door</td>
<td>main@949057310</td> <td></td> </tr>
<tr bgcolor="c7c2a6"> <td>18/08/08 18:11:44</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="UploadImageList.upload_image_list()[pri:0, instance:com.mjitech.qa.test.UploadImageList@45820e51]">upload_image_list</td>
<td>main@1337344609</td> <td></td> </tr>
</table>
<h2>Methods run, sorted chronologically</h2><h3>&gt;&gt; means before, &lt;&lt; means after</h3><p/><br/><em>Default suite</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr>
<tr bgcolor="c7c2a6"> <td>18/07/31 11:07:23</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="UpdateDoorClose.update_close_door()[pri:0, instance:com.mjitech.qa.test.UpdateDoorClose@7a9273a8]">update_close_door</td>
<td>main@949057310</td> <td></td> </tr>
<tr bgcolor="c7c2a6"> <td>18/08/08 18:11:44</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="UploadImageList.upload_image_list()[pri:0, instance:com.mjitech.qa.test.UploadImageList@45820e51]">upload_image_list</td>
<td>main@1337344609</td> <td></td> </tr>
</table>
<html><head><title>testng.xml for Default suite</title></head><body><tt>&lt;?xml&nbsp;version="1.0"&nbsp;encoding="UTF-8"?&gt;<br/>&lt;!DOCTYPE&nbsp;suite&nbsp;SYSTEM&nbsp;"http://testng.org/testng-1.0.dtd"&gt;<br/>&lt;suite&nbsp;name="Default&nbsp;suite"&gt;<br/>&nbsp;&nbsp;&lt;test&nbsp;verbose="2"&nbsp;name="Default&nbsp;test"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;classes&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&nbsp;name="com.mjitech.qa.test.UpdateDoorClose"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/classes&gt;<br/>&nbsp;&nbsp;&lt;/test&gt;&nbsp;&lt;!--&nbsp;Default&nbsp;test&nbsp;--&gt;<br/>&lt;/suite&gt;&nbsp;&lt;!--&nbsp;Default&nbsp;suite&nbsp;--&gt;<br/></tt></body></html>
\ No newline at end of file
<html><head><title>testng.xml for Default suite</title></head><body><tt>&lt;?xml&nbsp;version="1.0"&nbsp;encoding="UTF-8"?&gt;<br/>&lt;!DOCTYPE&nbsp;suite&nbsp;SYSTEM&nbsp;"http://testng.org/testng-1.0.dtd"&gt;<br/>&lt;suite&nbsp;name="Default&nbsp;suite"&gt;<br/>&nbsp;&nbsp;&lt;test&nbsp;verbose="2"&nbsp;name="Default&nbsp;test"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;classes&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&nbsp;name="com.mjitech.qa.test.UploadImageList"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/classes&gt;<br/>&nbsp;&nbsp;&lt;/test&gt;&nbsp;&lt;!--&nbsp;Default&nbsp;test&nbsp;--&gt;<br/>&lt;/suite&gt;&nbsp;&lt;!--&nbsp;Default&nbsp;suite&nbsp;--&gt;<br/></tt></body></html>
\ No newline at end of file
......
......@@ -4,6 +4,6 @@
</head><body>
<h2><p align='center'>Test results</p></h2>
<table border='1' width='100%' class='main-page'><tr><th>Suite</th><th>Passed</th><th>Failed</th><th>Skipped</th><th>testng.xml</th></tr>
<tr align='center' class='invocation-passed'><td><em>Total</em></td><td><em>3</em></td><td><em>0</em></td><td><em>0</em></td><td>&nbsp;</td></tr>
<tr align='center' class='invocation-passed'><td><a href='Suite/index.html'>Suite</a></td>
<td>3</td><td>0</td><td>0</td><td><a href='Suite/testng.xml.html'>Link</a></td></tr></table></body></html>
<tr align='center' class='invocation-passed'><td><em>Total</em></td><td><em>1</em></td><td><em>0</em></td><td><em>0</em></td><td>&nbsp;</td></tr>
<tr align='center' class='invocation-passed'><td><a href='Default suite/index.html'>Default suite</a></td>
<td>1</td><td>0</td><td>0</td><td><a href='Default suite/testng.xml.html'>Link</a></td></tr></table></body></html>
......@@ -3,11 +3,11 @@
<suite name="Failed suite [Default suite]">
<test name="Default test(failed)">
<classes>
<class name="com.mjitech.qa.test.ListFault">
<class name="com.mjitech.qa.test.GetMachineData">
<methods>
<include name="list_fault"/>
<include name="getMachineData"/>
</methods>
</class> <!-- com.mjitech.qa.test.ListFault -->
</class> <!-- com.mjitech.qa.test.GetMachineData -->
</classes>
</test> <!-- Default test(failed) -->
</suite> <!-- Failed suite [Default suite] -->
<?xml version="1.0" encoding="UTF-8"?>
<testng-results skipped="0" failed="0" total="3" passed="3">
<testng-results skipped="0" failed="0" total="1" passed="1">
<reporter-output>
</reporter-output>
<suite name="Suite" duration-ms="709" started-at="2018-07-31T03:33:03Z" finished-at="2018-07-31T03:33:04Z">
<suite name="Default suite" duration-ms="961" started-at="2018-08-08T10:11:44Z" finished-at="2018-08-08T10:11:45Z">
<groups>
</groups>
<test name="平板需求相关接口" duration-ms="709" started-at="2018-07-31T03:33:03Z" finished-at="2018-07-31T03:33:04Z">
<class name="com.mjitech.qa.test.ListFault">
<test-method status="PASS" signature="list_fault()[pri:0, instance:com.mjitech.qa.test.ListFault@5427c60c]" name="list_fault" duration-ms="76" started-at="2018-07-31T11:33:04Z" finished-at="2018-07-31T11:33:04Z">
<test name="Default test" duration-ms="961" started-at="2018-08-08T10:11:44Z" finished-at="2018-08-08T10:11:45Z">
<class name="com.mjitech.qa.test.UploadImageList">
<test-method status="PASS" signature="upload_image_list()[pri:0, instance:com.mjitech.qa.test.UploadImageList@45820e51]" name="upload_image_list" duration-ms="938" started-at="2018-08-08T18:11:44Z" finished-at="2018-08-08T18:11:45Z">
<reporter-output>
</reporter-output>
</test-method> <!-- list_fault -->
</class> <!-- com.mjitech.qa.test.ListFault -->
<class name="com.mjitech.qa.test.UpdateDoorClose">
<test-method status="PASS" signature="update_close_door()[pri:0, instance:com.mjitech.qa.test.UpdateDoorClose@15bfd87]" name="update_close_door" duration-ms="57" started-at="2018-07-31T11:33:04Z" finished-at="2018-07-31T11:33:04Z">
<reporter-output>
</reporter-output>
</test-method> <!-- update_close_door -->
</class> <!-- com.mjitech.qa.test.UpdateDoorClose -->
<class name="com.mjitech.qa.test.GetMachineData">
<test-method status="PASS" signature="getMachineData()[pri:0, instance:com.mjitech.qa.test.GetMachineData@768b970c]" name="getMachineData" duration-ms="559" started-at="2018-07-31T11:33:03Z" finished-at="2018-07-31T11:33:04Z">
<reporter-output>
</reporter-output>
</test-method> <!-- getMachineData -->
</class> <!-- com.mjitech.qa.test.GetMachineData -->
</test> <!-- 平板需求相关接口 -->
</suite> <!-- Suite -->
</test-method> <!-- upload_image_list -->
</class> <!-- com.mjitech.qa.test.UploadImageList -->
</test> <!-- Default test -->
</suite> <!-- Default suite -->
</testng-results>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment