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
cda1dcfc
Commit
cda1dcfc
authored
Nov 14, 2018
by
赵然
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
1f2a25f7
b620a880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
虚拟商品_兑换异常测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/虚拟商品_兑换异常测试_ExchangeTest.java
+5
-4
No files found.
src/test/java/http/cases/ExchangeTest/虚拟商品_兑换异常测试_ExchangeTest.java
View file @
cda1dcfc
...
...
@@ -229,8 +229,8 @@ public class 虚拟商品_兑换异常测试_ExchangeTest extends DuibaTestBase
@Test
(
description
=
"虚拟商品自定义兑换按钮文案马上使用按钮"
)
public
void
虚拟商品自定义兑换按钮文案马上使用按钮
()
throws
Exception
{
logger
.
info
(
"虚拟商品马上使用按钮验证开始"
);
//创建虚拟商品的时候,有自定义兑换按钮文案的文案设置,将文案设置成马上使用
logger
.
info
(
"虚拟商品马上使用按钮验证开始"
);
//创建虚拟商品的时候,有自定义兑换按钮文案的文案设置,将文案设置成马上使用
//商品详情页面
Response
response
=
mobileService
.
appItemDetail
(
authorization
.
dafuwengLogin
(
uid
),
"186447"
);
response
.
prettyPrint
();
...
...
@@ -258,9 +258,10 @@ public class 虚拟商品_兑换异常测试_ExchangeTest extends DuibaTestBase
}
Response
resultResponse
=
crecordService
.
recordDetailNew
(
orderId
,
uid
);
exchangeText
=
MatcherString
.
getString
(
resultResponse
.
asString
(),
"\"exchangeStatusText\":\"(.*?)\","
,
1
);
response
.
prettyPrint
();
logger
.
info
(
"exchangeText"
+
exchangeText
);
Assert
.
assertEquals
(
resultResponse
.
asString
().
contains
(
"兑换成功"
),
true
,
"兑换数据页面数据返回错误"
);
// Assert.assertEquals(resultResponse.asString().contains("兑换成功"),true,"兑换数据页面数据返回错误");
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.message"
),
"兑换成功!"
,
"兑换数据页面数据返回错误"
);
}
@Test
(
description
=
"自动下架时间,下架后无法兑换"
)
public
void
自动下架时间下架后无法兑换
()
throws
Exception
{
...
...
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