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
4f54084d
Commit
4f54084d
authored
Nov 03, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
f21d02b6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
ObjectExchange_ExchangeTest.java
.../http/cases/ExchangeTest/ObjectExchange_ExchangeTest.java
+2
-1
Qb_兑换流程测试_ExchangeTest.java
.../java/http/cases/ExchangeTest/Qb_兑换流程测试_ExchangeTest.java
+2
-2
商品订单失败测试_ExchangeTest.java
...t/java/http/cases/ExchangeTest/商品订单失败测试_ExchangeTest.java
+1
-1
开发者账户余额校验测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/开发者账户余额校验测试_ExchangeTest.java
+0
-0
No files found.
src/test/java/http/cases/ExchangeTest/ObjectExchange_ExchangeTest.java
View file @
4f54084d
...
...
@@ -438,6 +438,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{
//直充类流量兑换
@Test
(
description
=
"直充类流量兑换"
)
public
void
流量兑换
()
throws
Exception
{
int
uid
=
4376
;
Thread
.
sleep
(
2000
);
Map
<
String
,
Object
>
mapuser
=
jdbc
.
findSimpleResult
(
"select * from dafuweng.user where id="
+
uid
);
String
credits
=
String
.
valueOf
(
mapuser
.
get
(
"credits"
));
...
...
@@ -446,7 +447,7 @@ public class ObjectExchange_ExchangeTest extends DuibaTestBase{
credits
=
String
.
valueOf
(
Integer
.
valueOf
(
credits
)
-
600
);
//兑换详情页
Response
response
=
mobileService
.
detail
(
authorization
.
dafuwengLogin
(
uid
),
"3"
);
Map
<
String
,
String
>
map
=
authorization
.
dafuwengLogin
(
uid
);
//
Map<String, String> map = authorization.dafuwengLogin(uid);
Assert
.
assertEquals
(
String
.
valueOf
(
response
.
getStatusCode
()),
"200"
,
"活动详情页请求异常"
);
//流量兑换
response
=
couponExchangeService
.
phoneflowExchange
(
authorization
.
dafuwengLogin
(
uid
),
"51200"
,
"3"
,
"13193354550"
,
"中国联通"
,
"陕西"
);
...
...
src/test/java/http/cases/ExchangeTest/Qb_兑换流程测试_ExchangeTest.java
View file @
4f54084d
...
...
@@ -209,7 +209,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase {
Assert
.
assertTrue
(
message
.
contains
(
"\"success\":false"
));
}
@Test
//
@Test
public
void
审核通过测试
()
throws
Exception
{
//查询兑换前的开发者账户余额
...
...
@@ -273,7 +273,7 @@ public class Qb_兑换流程测试_ExchangeTest extends DuibaTestBase {
logger
.
info
(
"校验支付宝扣费订单成功"
);
}
@Test
//
@Test
public
void
审核不通过测试
()
throws
Exception
{
//查询兑换前的开发者账户余额
...
...
src/test/java/http/cases/ExchangeTest/商品订单失败测试_ExchangeTest.java
View file @
4f54084d
...
...
@@ -279,7 +279,7 @@ public class 商品订单失败测试_ExchangeTest extends DuibaTestBase {
}
@Test
//
@Test
public
void
支付宝审核不通过测试
()
throws
Exception
{
//查询兑换前的开发者账户余额
...
...
src/test/java/http/cases/ExchangeTest/开发者账户余额校验测试_ExchangeTest.java
0 → 100644
View file @
4f54084d
This diff is collapsed.
Click to expand it.
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