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
b3c64c71
Commit
b3c64c71
authored
Oct 30, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
72256def
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
兑吧_优惠券秒杀商品兑换测试_AccessTest.java
...ava/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试_AccessTest.java
+1
-1
兑吧_实物秒杀商品兑换测试_AccessTest.java
...java/http/cases/SeckillTest/兑吧_实物秒杀商品兑换测试_AccessTest.java
+4
-3
自有_优惠券秒杀商品兑换测试_AccessTest.java
...ava/http/cases/SeckillTest/自有_优惠券秒杀商品兑换测试_AccessTest.java
+1
-1
自有_实物秒杀商品兑换测试_AccessTest.java
...java/http/cases/SeckillTest/自有_实物秒杀商品兑换测试_AccessTest.java
+2
-1
自有_虚拟商品秒杀商品兑换测试_AccessTest.java
...va/http/cases/SeckillTest/自有_虚拟商品秒杀商品兑换测试_AccessTest.java
+2
-2
No files found.
src/test/java/http/cases/SeckillTest/兑吧_优惠券秒杀商品兑换测试_AccessTest.java
View file @
b3c64c71
...
...
@@ -40,7 +40,7 @@ public class 兑吧_优惠券秒杀商品兑换测试_AccessTest extends DuibaTe
private
static
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
static
final
Integer
uid_Nomal
=
2709
;
private
static
final
Integer
uid_Nomal
=
4113
;
...
...
src/test/java/http/cases/SeckillTest/兑吧_实物秒杀商品兑换测试_AccessTest.java
View file @
b3c64c71
...
...
@@ -40,7 +40,8 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
private
static
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
static
final
Integer
uid_Nomal
=
2709
;
private
static
final
Integer
uid_Nomal
=
4112
;
private
static
final
String
consumer_Nomal
=
"100092492"
;
@Test
...
...
@@ -49,7 +50,7 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
try
{
Map
<
String
,
Object
>
user
=
jdbc
.
findSimpleResult
(
"select * from dafuweng.user where id=?\n"
,
uid_Nomal
);
Map
<
String
,
Object
>
consumer
=
jdbc
.
findSimpleResult
(
"select * from new_consumer.consumer_0010 where id=?\n"
,
"100011624"
);
Map
<
String
,
Object
>
consumer
=
jdbc
.
findSimpleResult
(
"select * from new_consumer.consumer_0010 where id=?\n"
,
consumer_Nomal
);
Long
userCredit
=
Long
.
parseLong
(
user
.
get
(
"credits"
).
toString
());
Long
consumerCredit
=
Long
.
parseLong
(
consumer
.
get
(
"credits"
).
toString
());
...
...
@@ -109,7 +110,7 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
Thread
.
sleep
(
3000
);
Map
<
String
,
Object
>
user1
=
jdbc
.
findSimpleResult
(
"select * from dafuweng.user where id=?\n"
,
uid_Nomal
);
Map
<
String
,
Object
>
consumer1
=
jdbc
.
findSimpleResult
(
"select * from new_consumer.consumer_0010 where id=?\n"
,
"100011624"
);
Map
<
String
,
Object
>
consumer1
=
jdbc
.
findSimpleResult
(
"select * from new_consumer.consumer_0010 where id=?\n"
,
consumer_Nomal
);
String
userCredit1
=
user1
.
get
(
"credits"
).
toString
();
String
consumerCredit1
=
consumer1
.
get
(
"credits"
).
toString
();
Assert
.
assertEquals
(
userCredit1
,
String
.
valueOf
(
userCredit
-
20
),
"user积分扣除校验失败"
);
...
...
src/test/java/http/cases/SeckillTest/自有_优惠券秒杀商品兑换测试_AccessTest.java
View file @
b3c64c71
...
...
@@ -39,7 +39,7 @@ public class 自有_优惠券秒杀商品兑换测试_AccessTest extends DuibaTe
Authorization
authorization
;
private
static
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
static
final
Integer
uid_Nomal
=
2709
;
private
static
final
Integer
uid_Nomal
=
4114
;
@Test
...
...
src/test/java/http/cases/SeckillTest/自有_实物秒杀商品兑换测试_AccessTest.java
View file @
b3c64c71
...
...
@@ -39,7 +39,8 @@ public class 自有_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
Authorization
authorization
;
private
static
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
static
final
Integer
uid_Nomal
=
2709
;
private
static
final
Integer
uid_Nomal
=
4115
;
private
static
final
String
consumer_Nomal
=
"100092497"
;
...
...
src/test/java/http/cases/SeckillTest/自有_虚拟商品秒杀商品兑换测试_AccessTest.java
View file @
b3c64c71
...
...
@@ -40,7 +40,7 @@ public class 自有_虚拟商品秒杀商品兑换测试_AccessTest extends Duib
Authorization
authorization
;
private
static
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
static
final
Integer
uid_Nomal
=
2709
;
private
static
final
Integer
uid_Nomal
=
4116
;
...
...
@@ -90,7 +90,7 @@ public class 自有_虚拟商品秒杀商品兑换测试_AccessTest extends Duib
// Assert.assertEquals(itemStock1,String.valueOf(itemStock-1),"校验库存失败");
Map
<
String
,
Object
>
res
=
jdbc
.
findSimpleResult
(
"select * from orders_consumer.orders_0
616
where id = ?\n"
,
orderId
);
Map
<
String
,
Object
>
res
=
jdbc
.
findSimpleResult
(
"select * from orders_consumer.orders_0
594
where id = ?\n"
,
orderId
);
logger
.
info
(
"数据库订单信息为"
+
JSONObject
.
toJSONString
(
res
));
Assert
.
assertEquals
(
res
.
get
(
"status"
),
"success"
,
"校验订单状态失败"
);
Assert
.
assertEquals
(
res
.
get
(
"type"
),
"virtual"
,
"中奖奖品类型失败"
);
...
...
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