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
c07c1684
Commit
c07c1684
authored
Apr 08, 2019
by
吕雯燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv
parent
1bca6bdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
兑吧卡密_兑换流程测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/兑吧卡密_兑换流程测试_ExchangeTest.java
+6
-3
No files found.
src/test/java/http/cases/ExchangeTest/兑吧卡密_兑换流程测试_ExchangeTest.java
View file @
c07c1684
...
@@ -28,6 +28,7 @@ import java.util.Map;
...
@@ -28,6 +28,7 @@ import java.util.Map;
import
utils.RedisUtil
;
import
utils.RedisUtil
;
import
static
io
.
restassured
.
RestAssured
.
given
;
import
static
io
.
restassured
.
RestAssured
.
given
;
import
static
io
.
restassured
.
RestAssured
.
urlEncodingEnabled
;
/**
/**
* Created by lvwenyan on 2019/3/26.
* Created by lvwenyan on 2019/3/26.
...
@@ -464,9 +465,9 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
...
@@ -464,9 +465,9 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
@Test
(
description
=
"兑吧卡密跳转按钮"
)
@Test
(
description
=
"兑吧卡密跳转按钮"
)
public
void
马上使用跳转
()
throws
Exception
{
public
void
马上使用跳转
()
throws
Exception
{
String
appItemId
=
"19
4957
"
;
String
appItemId
=
"19
5065
"
;
String
itemId
=
"3260
3
"
;
String
itemId
=
"3260
9
"
;
String
skuId
=
"
94
"
;
String
skuId
=
"
106
"
;
Map
cookies
=
authorization
.
dafuwengLogin
(
uid
);
Map
cookies
=
authorization
.
dafuwengLogin
(
uid
);
//优惠券兑换
//优惠券兑换
...
@@ -493,10 +494,12 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
...
@@ -493,10 +494,12 @@ public class 兑吧卡密_兑换流程测试_ExchangeTest extends CheckTemplet {
String
useButtonText
=
detailResponse
.
jsonPath
().
getString
(
"data[0].useButtonText"
);
String
useButtonText
=
detailResponse
.
jsonPath
().
getString
(
"data[0].useButtonText"
);
String
iosDownloadUrl
=
detailResponse
.
jsonPath
().
getString
(
"data[0].iosDownloadUrl"
);
String
iosDownloadUrl
=
detailResponse
.
jsonPath
().
getString
(
"data[0].iosDownloadUrl"
);
String
credits
=
detailResponse
.
jsonPath
().
getString
(
"data[0].credits"
);
String
credits
=
detailResponse
.
jsonPath
().
getString
(
"data[0].credits"
);
String
cardAmount
=
detailResponse
.
jsonPath
().
getString
(
"data[0].cardAmount"
);
Assert
.
assertEquals
(
useButtonText
,
"去使用"
,
"校验去使用按钮失败"
);
Assert
.
assertEquals
(
useButtonText
,
"去使用"
,
"校验去使用按钮失败"
);
Assert
.
assertEquals
(
iosDownloadUrl
,
"http://www.iqiyi.com"
,
"校验按钮链接失败"
);
Assert
.
assertEquals
(
iosDownloadUrl
,
"http://www.iqiyi.com"
,
"校验按钮链接失败"
);
Assert
.
assertEquals
(
credits
,
"100"
,
"校验积分失败"
);
Assert
.
assertEquals
(
credits
,
"100"
,
"校验积分失败"
);
Assert
.
assertEquals
(
cardAmount
,
"20000"
,
"校验面值失败"
);
logger
.
info
(
"校验兑吧卡密去使用跳转按钮成功"
);
logger
.
info
(
"校验兑吧卡密去使用跳转按钮成功"
);
...
...
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