Commit 034c347f by donghu

test

1 parent 4f18fc92
Showing 49 changed files with 282 additions and 194 deletions
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -61,5 +61,25 @@ public interface CosPlayPlayerService {
public String getUserMobileToken(String mobile);
public String getPlayMobileToken(String mobile);
public JSONObject upList(String userMobile,String roomCategoryId, String type);
public JSONObject upSize(String userMobile,String roomCategoryId, String type);
/**
* 搜索公会列表
* @param env
* @param mobile
* @return
*/
public JSONObject guildSearchList(String mobile, String queryStr);
/**
* 根据手机号获取userId、公会信息
* @param env
* @param mobile
* @return
*/
public JSONObject userListCheck(String mobile);
}
......@@ -491,6 +491,28 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
return jsonObj1;
}
/**
* 根据手机号获取userId、公会信息
* @param env
* @param mobile
* @return
*/
@Override
public JSONObject userListCheck(String mobile) {
//根据用户手机号获取userId
String userListUrl = "https://"+env+"-api-admin.apeiwan.com/api/v1/user/list";
Map<String, Object> adminHeaders = new HashMap();
adminHeaders.put("token", adminToken);
Map<String, Object> updateParams = new HashMap();
updateParams.put("pageNum", 1);
updateParams.put("pageSize", 10);
updateParams.put("mobile", mobile);
JSONObject jsonObj = HttpToolKit.invokePost(userListUrl, adminHeaders, updateParams).getJSONObject();
return jsonObj;
}
/**
* 创建房间
* @param env
......@@ -609,6 +631,7 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
public long guildSearch(String mobile,String queryStr) {
String searchUrl = "https://"+env+"-guild-api.apeiwan.com/api/v1/guild-center/guild/search";
Map<String, Object> sendParams = new HashMap();
headers.put("token", userMobileToken);
//根据guildCode获取guildId
sendParams.put("pageNum", "1");
sendParams.put("pageSize", "20");
......@@ -625,6 +648,26 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
}
/**
* 搜索公会列表
* @param env
* @param mobile
* @return
*/
@Override
public JSONObject guildSearchList(String mobile,String queryStr) {
String searchUrl = "https://"+env+"-guild-api.apeiwan.com/api/v1/guild-center/guild/search";
Map<String, Object> sendParams = new HashMap();
headers.put("token", playMobileToken);
//根据guildCode获取guildId
sendParams.put("pageNum", "1");
sendParams.put("pageSize", "20");
sendParams.put("queryStr", queryStr);
JSONObject jsonObj = HttpToolKit.invokePost(searchUrl, headers, sendParams).getJSONObject();
return jsonObj;
}
/**
* 审核加入公会
* @param env
* @param mobile
......@@ -633,8 +676,7 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
@Override
public JSONObject applyList(String mobile) {
String searchUrl = "https://"+env+"-guild-api.apeiwan.com/api/v1/guild-center/guild/apply-list";
//String appToken = this.getAppToken(mobile, env);
headers.put("token", playMobileToken);
long guildId = 0;
//根据用户手机号获取公会ID
JSONObject jsObj = this.userList(mobile);
......@@ -646,6 +688,7 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
sendParams.put("pageSize", "20");
sendParams.put("applyType", "1");
sendParams.put("guildId", guildId);
headers.put("token", playMobileToken);
JSONObject jsonObj = HttpToolKit.invokePost(searchUrl, headers, sendParams).getJSONObject();
JSONArray jsonArr = jsonObj.getJSONObject("data").getJSONArray("list");
JSONObject jsonObj1 = (JSONObject) jsonArr.get(0);
......@@ -710,6 +753,29 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
return jsonObj;
}
@Override
public JSONObject upList(String userMobile, String roomCategoryId, String type) {
String upListUrl = "https://"+env+"-guild-api.apeiwan.com/api/v1/room/mic/up/list";
Map<String, Object> sendParams = new HashMap();
headers.put("token", userMobileToken);
sendParams.put("roomNo", roomCategoryId);
sendParams.put("type", type);
JSONObject jsonObj = HttpToolKit.invokePost(upListUrl, headers, sendParams).getJSONObject();
return jsonObj;
}
@Override
public JSONObject upSize(String userMobile, String roomCategoryId, String type) {
String upSizeUrl = "https://"+env+"-guild-api.apeiwan.com/api/v1/room/mic/up/size";
Map<String, Object> sendParams = new HashMap();
headers.put("token", userMobileToken);
sendParams.put("roomNo", roomCategoryId);
sendParams.put("types", type);
JSONObject jsonObj = HttpToolKit.invokePost(upSizeUrl, headers, sendParams).getJSONObject();
return jsonObj;
}
public static void main(String args[]){
CosPlyaPlayerServiceImpl cosPlyaPlayerServiceImpl = new CosPlyaPlayerServiceImpl();
String env = "t3";
......@@ -757,5 +823,5 @@ public class CosPlyaPlayerServiceImpl implements CosPlayPlayerService {
//cosPlyaPlayerServiceImpl.roomList(mobile, env);
// cosPlyaPlayerServiceImpl.userList(adminToken,mobile, env);
}
}
......@@ -2,7 +2,7 @@
#请求、应答字符集编码
charset=UTF-8
#连接、应答超时,单位:豪秒
timeout=3000
timeout=5000
#true:跟随重定向 false:不跟随重定向
isFollowRedirects=false
#定义重跑次数,默认值是0,即失败不重跑
......
......@@ -143,6 +143,20 @@ public class CosPlayerTest extends AbstractTest {
JSONObject rsp = cosPlyaPlayerServiceImpl.auditGuild(BasicData.userMobile, BasicData.guildCode);
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
/**
* 搜索公会
* @param env
* @param mobile
* @return
*/
@Test(enabled = true, alwaysRun = true,description = "搜索公会")
public void testGuildSearch() {
CosPlayPlayerService cosPlyaPlayerServiceImpl = new CosPlyaPlayerServiceImpl();
//公会ID
JSONObject rsp = cosPlyaPlayerServiceImpl.guildSearchList(BasicData.userMobile, BasicData.guildCode);
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
/**
* 将成员从公会移除
......@@ -156,7 +170,49 @@ public class CosPlayerTest extends AbstractTest {
JSONObject rsp = cosPlyaPlayerServiceImpl.remove(BasicData.userMobile);
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
/**
* 获取上麦、试音申请列表数据
* @param env
* @param mobile
* @return
*/
@Test(enabled = true, alwaysRun = true,description = "获取上麦、试音申请列表数据")
public void testUpList() {
//待补充业务数据
CosPlayPlayerService cosPlyaPlayerServiceImpl = new CosPlyaPlayerServiceImpl();
JSONObject rsp = cosPlyaPlayerServiceImpl.upList(BasicData.userMobile, BasicData.roomNo, "2");
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
/**
* 获取聊天室内上麦试音队列、点单队列等
* @param env
* @param mobile
* @return
*/
@Test(enabled = true, alwaysRun = true,description = "获取聊天室内上麦试音队列、点单队列等")
public void testUpSize() {
//待补充业务数据
CosPlayPlayerService cosPlyaPlayerServiceImpl = new CosPlyaPlayerServiceImpl();
JSONObject rsp = cosPlyaPlayerServiceImpl.upSize(BasicData.userMobile, BasicData.roomNo, "2");
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
/**
* 用户信息
* @param env
* @param mobile
* @return
*/
@Test(enabled = true, alwaysRun = true,description = "用户信息")
public void testUserList() {
CosPlayPlayerService cosPlyaPlayerServiceImpl = new CosPlyaPlayerServiceImpl();
JSONObject rsp = cosPlyaPlayerServiceImpl.userListCheck(BasicData.userMobile);
Assert.assertEquals(rsp.getIntValue("status"), BasicData.status);
}
@AfterClass(alwaysRun = true)
public void afterClassTest() {
......
......@@ -24,19 +24,19 @@
onclick="javscript:clearAllSelections();">pipi-test</a></b><div style="margin: 3px 0 3px 0;"><a href="pipi-test_groups.html" target="content"
onclick="javscript:clearAllSelections();">1
Groups
</a></div><span style="color: red;">0</span>
</a></div><span style="color: red;">6</span>
/
<span style="color: green;">9</span>
<span style="color: green;">7</span>
/
<span style="color: yellow;">0</span>
/
<span>9</span></td>
<td style="font-weight: bold;">100%</td>
<span>13</span></td>
<td style="font-weight: bold;">54%</td>
</tr>
</table>
<div xmlns="" class="testCaseLink"
onclick="javscript:selectTestCaseLink(this); parent.content.location='pipi-test_pipi-test.html'">
<div class="testCasePass"></div>pipi-test
<div class="testCaseFail"></div>pipi-test
</div>
</div>
</body>
......
......@@ -20,19 +20,22 @@
<svg id="graphzone" preserveAspectRatio="xMidYMid meet" x="0" y="0">
<rect style="fill:red;stroke-width:1;stroke:black;" x="10" y="86" width="20"
height="20"/>
<text class="legendtext" x="40" y="105">Failed (0%)
<text class="legendtext" x="40" y="105">Failed (46%)
</text>
<rect style="fill:green;stroke-width:1;stroke:black;" x="10" y="125" width="20"
height="20"/>
<text class="legendtext" x="40" y="143">Passed (100%)
<text class="legendtext" x="40" y="143">Passed (54%)
</text>
<rect style="fill:yellow;stroke-width:1;stroke:black;" x="10" y="163" width="20"
height="20"/>
<text class="legendtext" x="40" y="182">Skipped (0%)
</text>
<g style="stroke:black;stroke-width:1" transform="translate(450,150)">
<g style="fill:green" transform="rotate(-0)">
<path d="M 0 0 h 130 A 130,130 0,1,0 129.99999999988892,0.00016993334619978658 z"/>
<g style="fill:red" transform="rotate(-0) translate(2, -16)">
<path d="M 0 0 h 130 A 130,130 0,0,0 -126.22241749565075,-31.111112509096204 z"/>
</g>
<g style="fill:green" transform="rotate(-166.15384615384617)">
<path d="M 0 0 h 130 A 130,130 0,1,0 -126.22245816335408,31.11094751370216 z"/>
</g>
</g>
</svg>
......
......@@ -22,15 +22,15 @@
<table width="100%" cellpadding="5" cellspacing="1">
<tr style="background-color: #eaf0f7;">
<td width="100%">
<div class="suiteStatusPass"></div>pipi-test
<div class="suiteStatusFail"></div>pipi-test
</td>
<td xmlns="" style="background-color: #FFBBBB; padding: 3px 3px 3px 0;"
align="center">
<div style="width: 50px;">0</div>
<div style="width: 50px;">6</div>
</td>
<td xmlns="" style="background-color: lightgreen; padding: 3px 3px 3px 0;"
align="center">
<div style="width: 50px;">9</div>
<div style="width: 50px;">7</div>
</td>
<td xmlns="" style="background-color: #FFFFBB; padding: 3px 3px 3px 0;"
align="center">
......@@ -38,26 +38,26 @@
</td>
<td xmlns="" align="center"
style="background-color: #eaf0f7; padding: 3px 3px 3px 0;">
<div style="width: 50px;">9</div>
<div style="width: 50px;">13</div>
</td>
<td xmlns="" align="center"
style="font-weight: bold; background-color: #eaf0f7; padding: 3px 3px 3px 0;">
<div style="width: 50px;">100%</div>
<div style="width: 50px;">54%</div>
</td>
<td xmlns="" style="background-color: #eaf0f7; padding: 3px 3px 3px 0;"
align="center"
nowrap="true">10s
nowrap="true">40s
</td>
</tr>
<tr style="background-color: #f5f5f5; font-size: 12px;">
<td>pipi-test</td>
<td align="center">6</td>
<td align="center">7</td>
<td align="center">0</td>
<td align="center">9</td>
<td align="center">0</td>
<td align="center">9</td>
<td align="center" style="font-weight: bold;">100%</td>
<td align="center" nowrap="true">10s
<td align="center">13</td>
<td align="center" style="font-weight: bold;">54%</td>
<td align="center" nowrap="true">40s
</td>
</tr>
......
This diff could not be displayed because it is too large.
<html><head><title>pipi-test—cute接口自动化测试报告</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">td {text-align: center;}</style></head><body><center><div><h2><p>pipi-test—cute接口自动化测试报告</p></h2><table border="1" width="50%" <tbody><tr><td><strong>测试执行环境</strong></td><td colspan="2">pre-test</td></tr><tr><td><strong>测试集执行开始时间</strong></td><td colspan="2">2021-07-14 17:10:25</td></tr><tr><td><strong>测试集执行结束时间</strong></td><td colspan="2">2021-07-14 17:10:42</td></tr><tr><td><strong>测试集执行耗时</strong></td><td colspan="2">16秒240毫秒</td></tr><tr><td><strong>执行用例总数</strong></td><td colspan="2">9</td></tr><tr><td><strong>执行结果</strong></td><th><strong>用例数</strong></td><td><strong>百分比</strong></td></tr><tr><td><strong>通过(Passed)</strong></td><td>9</td><td>100.00%</td></tr><tr><td><strong>失败(Failed)</strong></td><td>0</td><td>0.00%</td></tr><tr><td><strong>未执行(Skipped)</strong></td><td>0</td><td>0.00%</td></tr></tbody></table>点击查看报告详情:<a href="http://test-project.peilian.fun/target/TestReport/index.html">http://test-project.peilian.fun/target/TestReport/index.html</a><h3>建议使用Chrome或者Firefox打开</h3></center></div></body></html>
\ No newline at end of file
{"environment":"t3","failed":0,"passed":0,"skipped":9,"suiteDuration":"48秒872毫秒","suiteEnds":"2021-07-15 17:41:08","suiteStarts":"2021-07-15 17:40:19","total":9}
\ No newline at end of file
{"environment":"t3","failed":0,"passed":13,"skipped":0,"suiteDuration":"21秒634毫秒","suiteEnds":"2021-07-26 14:33:05","suiteStarts":"2021-07-26 14:32:43","total":13}
\ No newline at end of file
......@@ -2,7 +2,7 @@
#请求、应答字符集编码
charset=UTF-8
#连接、应答超时,单位:豪秒
timeout=3000
timeout=5000
#true:跟随重定向 false:不跟随重定向
isFollowRedirects=false
#定义重跑次数,默认值是0,即失败不重跑
......
com\pipi\basic\BasicData.class
com\pipi\qa\service\CosPlayPlayerService.class
com\pipi\frt\basic\BasicData.class
com\pipi\frt\dao\FootStoneDao.class
com\pipi\qa\service\impl\CosPlyaPlayerServiceImpl.class
com\pipi\frt\sql\FootStoneSql.class
com\pipi\frt\basic\ConfigReader.class
com\pipi\sql\FootStoneSql.class
com\pipi\basic\ConfigReader.class
com\pipi\dao\FootStoneDao.class
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\frt\basic\BasicData.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\qa\service\CosPlayPlayerService.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\frt\basic\ConfigReader.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\frt\sql\FootStoneSql.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\frt\dao\FootStoneDao.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\dao\FootStoneDao.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\sql\FootStoneSql.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\basic\ConfigReader.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\qa\service\impl\CosPlyaPlayerServiceImpl.java
D:\code\t8t-fi-frt-test\src\main\java\com\pipi\basic\BasicData.java
-------------------------------------------------------------------------------
Test set: TestSuite
-------------------------------------------------------------------------------
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.309 sec - in TestSuite
Tests run: 13, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 78.796 sec <<< FAILURE! - in TestSuite
testAuditGuild(com.pipi.invoker.CosPlayerTest) Time elapsed: 16.466 sec <<< FAILURE!
com.fangdd.qa.framework.exception.BusinessException: 请求URL:https://t3-guild-api.apeiwan.com/api/v1/guild-center/guild/search,异常信息:t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testAuditGuild(CosPlayerTest.java:143)
Caused by: java.net.UnknownHostException: t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testAuditGuild(CosPlayerTest.java:143)
testGuildSearch(com.pipi.invoker.CosPlayerTest) Time elapsed: 5.294 sec <<< FAILURE!
com.fangdd.qa.framework.exception.BusinessException: 请求URL:https://t3-guild-api.apeiwan.com/api/v1/guild-center/guild/search,异常信息:t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testGuildSearch(CosPlayerTest.java:156)
Caused by: java.net.UnknownHostException: t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testGuildSearch(CosPlayerTest.java:156)
testUpList(com.pipi.invoker.CosPlayerTest) Time elapsed: 16.151 sec <<< FAILURE!
com.fangdd.qa.framework.exception.BusinessException: 请求URL:https://t3-guild-api.apeiwan.com/api/v1/room/mic/up/list,异常信息:t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testUpList(CosPlayerTest.java:184)
Caused by: java.net.UnknownHostException: t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testUpList(CosPlayerTest.java:184)
testUpSize(com.pipi.invoker.CosPlayerTest) Time elapsed: 5.778 sec <<< FAILURE!
com.fangdd.qa.framework.exception.BusinessException: 请求URL:https://t3-guild-api.apeiwan.com/api/v1/room/mic/up/size,异常信息:t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testUpSize(CosPlayerTest.java:198)
Caused by: java.net.UnknownHostException: t3-guild-api.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testUpSize(CosPlayerTest.java:198)
testLotteryActivity(com.pipi.invoker.CosPlayerTest) Time elapsed: 16.303 sec <<< FAILURE!
com.fangdd.qa.framework.exception.BusinessException: 请求URL:https://t3-api-app.apeiwan.com/api/v3/virtual-product/lottery-activity,异常信息:t3-api-app.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testLotteryActivity(CosPlayerTest.java:129)
Caused by: java.net.UnknownHostException: t3-api-app.apeiwan.com
at com.pipi.invoker.CosPlayerTest.testLotteryActivity(CosPlayerTest.java:129)
testRemove(com.pipi.invoker.CosPlayerTest) Time elapsed: 5.849 sec <<< FAILURE!
java.lang.AssertionError: expected [200] but found [500]
at com.pipi.invoker.CosPlayerTest.testRemove(CosPlayerTest.java:171)
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -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>9</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='pipi-test/index.html'>pipi-test</a></td>
<td>9</td><td>0</td><td>0</td><td><a href='pipi-test/testng.xml.html'>Link</a></td></tr></table></body></html>
<tr align='center' class='invocation-failed'><td><em>Total</em></td><td><em>7</em></td><td><em>6</em></td><td><em>0</em></td><td>&nbsp;</td></tr>
<tr align='center' class='invocation-failed'><td><a href='pipi-test/index.html'>pipi-test</a></td>
<td>7</td><td>6</td><td>0</td><td><a href='pipi-test/testng.xml.html'>Link</a></td></tr></table></body></html>
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitXMLReporter -->
<testsuite hostname="DESKTOP-U3UHQH3" ignored="0" name="Default test" tests="9" failures="0" timestamp="15 七月 2021 09:41:08 GMT" time="48.851" errors="0">
<testcase name="@BeforeClass BeforeClassTest" time="0.0" classname="com.pipi.invoker.CosPlayerTest">
<failure type="java.lang.NullPointerException">
<![CDATA[java.lang.NullPointerException
at com.pipi.qa.service.impl.CosPlyaPlayerServiceImpl.getUserMobileToken(CosPlyaPlayerServiceImpl.java:72)
at com.pipi.invoker.CosPlayerTest.BeforeClassTest(CosPlayerTest.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:169)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
]]>
</failure>
</testcase> <!-- @BeforeClass BeforeClassTest -->
<testcase name="testActivityList" time="0.003" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testActivityList -->
<testcase name="testAuditGuild" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testAuditGuild -->
<testcase name="testMoneyDetailsSave" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testMoneyDetailsSave -->
<testcase name="testSend" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testSend -->
<testcase name="testVirtualMoneyModify" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testVirtualMoneyModify -->
<testcase name="testGiftList" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testGiftList -->
<testcase name="testLotteryActivity" time="0.0" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testLotteryActivity -->
<testcase name="testRoomList" time="0.0" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testRoomList -->
<testcase name="testRemove" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testRemove -->
<testsuite hostname="DESKTOP-U3UHQH3" ignored="0" name="Default test" tests="13" failures="0" timestamp="26 七月 2021 06:33:05 GMT" time="21.619" errors="0">
<testcase name="testActivityList" time="0.437" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testAuditGuild" time="2.147" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testGiftList" time="0.506" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testGuildSearch" time="0.284" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testMoneyDetailsSave" time="1.416" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testRoomList" time="0.61" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testSend" time="2.549" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUpList" time="0.299" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUpSize" time="0.202" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUserList" time="0.393" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testVirtualMoneyModify" time="0.527" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testLotteryActivity" time="1.086" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testRemove" time="0.64" classname="com.pipi.invoker.CosPlayerTest"/>
</testsuite> <!-- Default test -->
......@@ -7,21 +7,13 @@
<methods>
<include name="springTestContextBeforeTestClass"/>
<include name="afterClass"/>
<include name="testRoomList"/>
<include name="BeforeClassTest"/>
<include name="afterClassTest"/>
<include name="springTestContextPrepareTestInstance"/>
<include name="springTestContextAfterTestClass"/>
<include name="beforeClass"/>
<include name="beforeClassTest"/>
<include name="springTestContextBeforeTestMethod"/>
<include name="testActivityList"/>
<include name="testMoneyDetailsSave"/>
<include name="testVirtualMoneyModify"/>
<include name="testGiftList"/>
<include name="testSend"/>
<include name="testLotteryActivity"/>
<include name="afterClassTest"/>
<include name="testRemove"/>
<include name="springTestContextAfterTestClass"/>
<include name="testAuditGuild"/>
<include name="springTestContextAfterTestMethod"/>
</methods>
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite name="com.pipi.invoker.CosPlayerTest" tests="10" time="0.015" ignored="0" failures="0" timestamp="15 七月 2021 09:41:08 GMT" skipped="9" hostname="DESKTOP-U3UHQH3" errors="1">
<testcase name="testLotteryActivity" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testLotteryActivity -->
<testcase name="testRoomList" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testRoomList -->
<testcase name="testActivityList" time="0.004" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testActivityList -->
<testcase name="testVirtualMoneyModify" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testVirtualMoneyModify -->
<testcase name="testRemove" time="0.003" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testRemove -->
<testcase name="testSend" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testSend -->
<testcase name="testGiftList" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testGiftList -->
<testcase name="BeforeClassTest" time="0.000" classname="com.pipi.invoker.CosPlayerTest">
<error type="java.lang.NullPointerException">
<![CDATA[java.lang.NullPointerException
at com.pipi.qa.service.impl.CosPlyaPlayerServiceImpl.getUserMobileToken(CosPlyaPlayerServiceImpl.java:72)
at com.pipi.invoker.CosPlayerTest.BeforeClassTest(CosPlayerTest.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:169)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
]]>
</error>
</testcase> <!-- BeforeClassTest -->
<testcase name="testAuditGuild" time="0.002" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testAuditGuild -->
<testcase name="testMoneyDetailsSave" time="0.001" classname="com.pipi.invoker.CosPlayerTest">
<skipped/>
</testcase> <!-- testMoneyDetailsSave -->
<testsuite name="com.pipi.invoker.CosPlayerTest" tests="13" time="11.103" ignored="0" failures="0" timestamp="26 七月 2021 06:33:05 GMT" skipped="0" hostname="DESKTOP-U3UHQH3" errors="0">
<testcase name="testAuditGuild" time="2.147" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testRoomList" time="0.611" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUserList" time="0.394" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testVirtualMoneyModify" time="0.528" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testActivityList" time="0.438" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testLotteryActivity" time="1.087" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testGiftList" time="0.506" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testGuildSearch" time="0.284" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testSend" time="2.549" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUpList" time="0.299" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testMoneyDetailsSave" time="1.417" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testUpSize" time="0.203" classname="com.pipi.invoker.CosPlayerTest"/>
<testcase name="testRemove" time="0.640" classname="com.pipi.invoker.CosPlayerTest"/>
</testsuite> <!-- com.pipi.invoker.CosPlayerTest -->
......@@ -11,27 +11,47 @@
</tr>
<tr>
<td>&nbsp;</td>
<td>testLotteryActivity</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testRemove</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testAuditGuild</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testGuildSearch</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testGiftList</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testRoomList</td>
<td>testUpList</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testLotteryActivity</td>
<td>testRoomList</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testRemove</td>
<td>testUpSize</td>
<td>pipi-test </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>testMoneyDetailsSave</td>
<td>testUserList</td>
<td>pipi-test </td>
</tr>
<tr>
......@@ -41,7 +61,7 @@
</tr>
<tr>
<td>&nbsp;</td>
<td>testAuditGuild</td>
<td>testMoneyDetailsSave</td>
<td>pipi-test </td>
</tr>
<tr>
......
<h2>Groups used for this test run</h2><table border="1">
<tr> <td align="center"><b>Group name</b></td><td align="center"><b>Methods</b></td></tr><tr><td>pipi-test</td><td>CosPlayerTest.testRoomList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testLotteryActivity()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testRemove()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testActivityList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testAuditGuild()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testMoneyDetailsSave()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testVirtualMoneyModify()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testGiftList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testSend()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/></td></tr>
<tr> <td align="center"><b>Group name</b></td><td align="center"><b>Methods</b></td></tr><tr><td>pipi-test</td><td>CosPlayerTest.testUpSize()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testRoomList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testUpList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testUserList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testActivityList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testMoneyDetailsSave()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testVirtualMoneyModify()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testGiftList()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testSend()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testLotteryActivity()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testRemove()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testAuditGuild()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/>CosPlayerTest.testGuildSearch()[pri:0, instance:com.pipi.invoker.CosPlayerTest@c8c12ac]<br/></td></tr>
</table>
This diff could not be displayed because it is too large.
......@@ -10,7 +10,7 @@
<tr valign='top'>
<td>1 test</td>
<td><a target='mainFrame' href='classes.html'>1 class</a></td>
<td>9 methods:<br/>
<td>13 methods:<br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods.html'>chronological</a><br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods-alphabetical.html'>alphabetical</a><br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods-not-run.html'>not run (0)</a></td>
......@@ -20,9 +20,9 @@
<td><a target='mainFrame' href='reporter-output.html'>reporter output</a></td>
<td><a target='mainFrame' href='testng.xml.html'>testng.xml</a></td>
</tr></table>
<table width='100%' class='test-skipped'>
<table width='100%' class='test-passed'>
<tr><td>
<table style='width: 100%'><tr><td valign='top'>Default test (0/0/9)</td><td valign='top' align='right'>
<table style='width: 100%'><tr><td valign='top'>Default test (13/0/0)</td><td valign='top' align='right'>
<a href='Default test.html' target='mainFrame'>Results</a>
</td></tr></table>
</td></tr><p/>
......
......@@ -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-failed'><td><em>Total</em></td><td><em>0</em></td><td><em>0</em></td><td><em>9</em></td><td>&nbsp;</td></tr>
<tr align='center' class='invocation-failed'><td><a href='Default suite/index.html'>Default suite</a></td>
<td>0</td><td>0</td><td>9</td><td><a href='Default suite/testng.xml.html'>Link</a></td></tr></table></body></html>
<tr align='center' class='invocation-passed'><td><em>Total</em></td><td><em>13</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>13</td><td>0</td><td>0</td><td><a href='Default suite/testng.xml.html'>Link</a></td></tr></table></body></html>
......@@ -7,21 +7,13 @@
<methods>
<include name="springTestContextBeforeTestClass"/>
<include name="afterClass"/>
<include name="testRoomList"/>
<include name="BeforeClassTest"/>
<include name="afterClassTest"/>
<include name="springTestContextPrepareTestInstance"/>
<include name="springTestContextAfterTestClass"/>
<include name="beforeClass"/>
<include name="beforeClassTest"/>
<include name="springTestContextBeforeTestMethod"/>
<include name="testActivityList"/>
<include name="testMoneyDetailsSave"/>
<include name="testVirtualMoneyModify"/>
<include name="testGiftList"/>
<include name="testSend"/>
<include name="testLotteryActivity"/>
<include name="afterClassTest"/>
<include name="testRemove"/>
<include name="springTestContextAfterTestClass"/>
<include name="testAuditGuild"/>
<include name="springTestContextAfterTestMethod"/>
</methods>
......
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!