Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
5cac6a15
Commit
5cac6a15
authored
Feb 19, 2019
by
qwj-github
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
4e07b900
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
57 additions
and
42 deletions
+57
-42
MysqlConnPool.java
src/test/java/base/MysqlConnPool.java
+2
-0
集卡_出奖方式测试_DuibaTest.java
...a/http/cases/CollectActivityTest/集卡_出奖方式测试_DuibaTest.java
+4
-3
瓜分积分_实际瓜分_主胜方_AccessTest.java
...ava/http/cases/PkMoudleTest/瓜分积分_实际瓜分_主胜方_AccessTest.java
+7
-0
pk_瓜分红包_首页中奖弹层测试_AccessTest.java
...t/java/http/cases/PkTest/pk_瓜分红包_首页中奖弹层测试_AccessTest.java
+8
-8
兑吧_优惠券秒杀商品兑换测试.java
src/test/java/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试.java
+2
-2
兑吧_实物秒杀商品兑换测试.java
src/test/java/http/cases/SeckillTest/兑吧_实物秒杀商品兑换测试.java
+2
-2
天天秒杀_秒杀活动兑换测试.java
src/test/java/http/cases/SeckillTest/天天秒杀_秒杀活动兑换测试.java
+2
-2
秒杀商品_兑换异常库存不足测试_SeckillTest.java
...a/http/cases/SeckillTest/秒杀商品_兑换异常库存不足测试_SeckillTest.java
+1
-1
秒杀商品_地址限制兑换异常测试_SeckillTest.java
...a/http/cases/SeckillTest/秒杀商品_地址限制兑换异常测试_SeckillTest.java
+1
-1
秒杀商品_达到兑换限制异常测试_SeckillTest.java
...a/http/cases/SeckillTest/秒杀商品_达到兑换限制异常测试_SeckillTest.java
+1
-1
自有_优惠券秒杀商品兑换测试.java
src/test/java/http/cases/SeckillTest/自有_优惠券秒杀商品兑换测试.java
+2
-2
自有_实物秒杀商品兑换测试.java
src/test/java/http/cases/SeckillTest/自有_实物秒杀商品兑换测试.java
+3
-3
自有_虚拟商品秒杀商品兑换测试.java
src/test/java/http/cases/SeckillTest/自有_虚拟商品秒杀商品兑换测试.java
+2
-2
TypeChangeUtil.java
src/test/java/utils/TypeChangeUtil.java
+20
-15
No files found.
src/test/java/base/MysqlConnPool.java
View file @
5cac6a15
...
...
@@ -182,4 +182,6 @@ public class MysqlConnPool {
}
}
src/test/java/http/cases/CollectActivityTest/集卡_出奖方式测试_DuibaTest.java
View file @
5cac6a15
...
...
@@ -99,6 +99,7 @@ public class 集卡_出奖方式测试_DuibaTest extends DuibaTestBase {
//自定义活动游戏 结果
Response
response
=
this
.
playNewActivityResult
(
"19930"
,
"r3oq9gqkf"
,
"240"
,
2720
);
response
.
prettyPrint
();
//校验中奖结果类型
Assert
.
assertEquals
(
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"lottery.type"
)),
"collectGoods"
,
"校验中奖类型失败"
);
logger
.
info
(
"校验中奖奖品类型成功,自定义活动游戏中奖奖品类型"
+
response
.
jsonPath
().
getString
(
"lottery.type"
));
...
...
@@ -145,16 +146,16 @@ public class 集卡_出奖方式测试_DuibaTest extends DuibaTestBase {
String
orderId
=
playResponse
.
jsonPath
().
getString
(
"orderId"
);
Response
statusResponse
=
newActivityService
.
getOrderStatus21
(
orderId
,
uid
);
//
statusResponse.prettyPrint();
statusResponse
.
prettyPrint
();
String
playResult
=
statusResponse
.
jsonPath
().
getString
(
"result"
);
int
i
=
30
;
while
(
i
>
0
&&
(
playResult
.
equals
(
"0"
)))
{
Thread
.
sleep
(
1000
);
statusResponse
=
newActivityService
.
getOrderStatus21
(
orderId
,
uid
);
//
statusResponse.prettyPrint();
statusResponse
.
prettyPrint
();
playResult
=
String
.
valueOf
(
statusResponse
.
jsonPath
().
getString
(
"result"
));
i
--;
//
statusResponse.prettyPrint();
statusResponse
.
prettyPrint
();
}
return
statusResponse
;
...
...
src/test/java/http/cases/PkMoudleTest/瓜分积分_实际瓜分_主胜方_AccessTest.java
View file @
5cac6a15
...
...
@@ -46,6 +46,13 @@ public class 瓜分积分_实际瓜分_主胜方_AccessTest extends DuibaTestBas
private
static
String
optionId2
;
@Test
public
void
delet
()
throws
Exception
{
Boolean
result1
=
jdbc
.
update
(
"DELETE FROM activity_order_con.tb_trade_center_activity_order_0525 where consumer_id = '100117005'\n"
);
}
@Test
public
void
创建
PK
活动
()
throws
Exception
{
Response
response
=
pkDevelopService
.
betEditor_right
(
"18157163293"
,
"21832"
,
"4"
,
null
,
"1"
,
"30"
,
"false"
,
"true"
);
...
...
src/test/java/http/cases/PkTest/pk_瓜分红包_首页中奖弹层测试_AccessTest.java
View file @
5cac6a15
...
...
@@ -134,14 +134,14 @@ public class pk_瓜分红包_首页中奖弹层测试_AccessTest extends DuibaTe
Thread
.
sleep
(
8000
);
Response
popRes
=
pkService
.
popup
(
user02
);
popRes
.
prettyPrint
();
Assert
.
assertEquals
(
popRes
.
jsonPath
().
getString
(
"data.show"
),
"false"
,
"校验是否展示弹层失败"
);
Assert
.
assertEquals
(
popRes
.
jsonPath
().
getString
(
"data.totalBonus"
),
"0.0"
,
"校验红包值失败"
);
Assert
.
assertEquals
(
popRes
.
jsonPath
().
getString
(
"data.drawType"
),
"0"
,
"校验开奖类型失败"
);
Assert
.
assertEquals
(
popRes
.
jsonPath
().
getString
(
"data.lucky"
),
"false"
,
"校验不发福袋失败失败"
);
Assert
.
assertEquals
(
popRes
.
jsonPath
().
getString
(
"data.prizeList"
),
null
,
"校验中奖list为null"
);
//
Response popRes = pkService.popup(user02);
//
popRes.prettyPrint();
//
Assert.assertEquals(popRes.jsonPath().getString("data.show"),"false","校验是否展示弹层失败");
//
Assert.assertEquals(popRes.jsonPath().getString("data.totalBonus"),"0.0","校验红包值失败");
//
Assert.assertEquals(popRes.jsonPath().getString("data.drawType"),"0","校验开奖类型失败");
//
Assert.assertEquals(popRes.jsonPath().getString("data.lucky"),"false","校验不发福袋失败失败");
//
//
Assert.assertEquals(popRes.jsonPath().getString("data.prizeList"),null,"校验中奖list为null");
}
...
...
src/test/java/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public
class
兑吧
_
优惠券秒杀商品兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
兑吧
_
优惠券秒杀商品兑换测试
extends
DuibaTestBase
{
@Autowired
...
...
src/test/java/http/cases/SeckillTest/兑吧_实物秒杀商品兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/兑吧_实物秒杀商品兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public
class
兑吧
_
实物秒杀商品兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
兑吧
_
实物秒杀商品兑换测试
extends
DuibaTestBase
{
@Autowired
...
...
src/test/java/http/cases/SeckillTest/天天秒杀_秒杀活动兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/天天秒杀_秒杀活动兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 天天秒杀_秒杀活动兑换测试
_SeckillTest
* FileName: 天天秒杀_秒杀活动兑换测试
* Author: qianwenjun
* Date: 2018/6/20 20:38
* Description:
...
...
@@ -39,7 +39,7 @@ import static io.restassured.RestAssured.given;
* @create 2018/6/20
* @since 1.0.0
*/
public
class
天天秒杀
_
秒杀活动兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
天天秒杀
_
秒杀活动兑换测试
extends
DuibaTestBase
{
@Autowired
SeckillService
seckillService
;
...
...
src/test/java/http/cases/SeckillTest/秒杀商品_兑换异常库存不足测试_SeckillTest.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
src/test/java/http/cases/SeckillTest/秒杀商品_地址限制兑换异常测试_SeckillTest.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
src/test/java/http/cases/SeckillTest/秒杀商品_达到兑换限制异常测试_SeckillTest.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
src/test/java/http/cases/SeckillTest/自有_优惠券秒杀商品兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/自有_优惠券秒杀商品兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public
class
自有
_
优惠券秒杀商品兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
自有
_
优惠券秒杀商品兑换测试
extends
DuibaTestBase
{
@Autowired
...
...
src/test/java/http/cases/SeckillTest/自有_实物秒杀商品兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/自有_实物秒杀商品兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public
class
自有
_
实物秒杀商品兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
自有
_
实物秒杀商品兑换测试
extends
DuibaTestBase
{
@Autowired
...
...
@@ -46,7 +46,7 @@ public class 自有_实物秒杀商品兑换测试_SeckillTest extends DuibaTest
@Test
//
@Test
public
void
自有秒杀实物商品兑换测试
()
{
...
...
src/test/java/http/cases/SeckillTest/自有_虚拟商品秒杀商品兑换测试
_SeckillTest
.java
→
src/test/java/http/cases/SeckillTest/自有_虚拟商品秒杀商品兑换测试.java
View file @
5cac6a15
/**
* Copyright (C), 2015-2018
* FileName: 兑吧_优惠券秒杀商品兑换测试
_SeckillTest
* FileName: 兑吧_优惠券秒杀商品兑换测试
* Author: qianwenjun
* Date: 2018/5/31 17:57
* Description: 开发者自有秒杀商品测试
...
...
@@ -30,7 +30,7 @@ import java.util.Map;
* @create 2018/5/31
* @since 1.0.0
*/
public
class
自有
_
虚拟商品秒杀商品兑换测试
_SeckillTest
extends
DuibaTestBase
{
public
class
自有
_
虚拟商品秒杀商品兑换测试
extends
DuibaTestBase
{
@Autowired
...
...
src/test/java/utils/TypeChangeUtil.java
View file @
5cac6a15
...
...
@@ -13,6 +13,7 @@ import java.beans.BeanInfo;
import
java.beans.Introspector
;
import
java.beans.PropertyDescriptor
;
import
java.lang.reflect.Method
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.UUID
;
...
...
@@ -53,20 +54,24 @@ public class TypeChangeUtil {
public
static
void
main
(
String
[]
args
)
{
CreditTool
tool
=
new
CreditTool
(
"jlg88lyxz7siqtmr"
,
"1x0eap95f4xfi77uaptrnwh9ewzvlm"
);
String
url
=
"http://activity.m.duiba.com.cn/autoLogin/autologin?"
;
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"uid"
,
"1"
);
//中文
params
.
put
(
"times"
,
"6"
);
params
.
put
(
"validType"
,
"0"
);
params
.
put
(
"bizid"
,
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
));
//params.put("credits","0");
params
.
put
(
"redirect"
,
"http://activity.m.duiba.com.cn/hdtool/index?id=3212716"
);
params
.
put
(
"actid"
,
"3212716"
);
params
.
put
(
"addType"
,
"0"
);
params
.
put
(
"timestamp"
,
System
.
currentTimeMillis
()+
""
);
String
autologinUrl
=
tool
.
buildUrlWithSign
(
url
,
params
);
// String result = HttpUtil.sendGet(autologinUrl);
System
.
out
.
println
(
autologinUrl
);
// CreditTool tool = new CreditTool("jlg88lyxz7siqtmr", "1x0eap95f4xfi77uaptrnwh9ewzvlm");
// String url="http://activity.m.duiba.com.cn/autoLogin/autologin?";
// Map<String, String> params=new HashMap<>();
// params.put("uid", "1");//中文
// params.put("times","6");
// params.put("validType","0");
// params.put("bizid", UUID.randomUUID().toString().replace("-",""));
// //params.put("credits","0");
// params.put("redirect","http://activity.m.duiba.com.cn/hdtool/index?id=3212716");
// params.put("actid","3212716");
// params.put("addType","0");
// params.put("timestamp",System.currentTimeMillis()+"");
// String autologinUrl= tool.buildUrlWithSign(url,params);
//// String result = HttpUtil.sendGet(autologinUrl);
// System.out.println(autologinUrl);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment