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
06274c0c
Commit
06274c0c
authored
Mar 26, 2019
by
吕雯燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv
parent
c0804bdd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
Database.java
src/test/java/http/cases/ExchangeTest/Database.java
+2
-0
兑吧卡密_兑换流程测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/兑吧卡密_兑换流程测试_ExchangeTest.java
+0
-0
兑吧新优惠券_兑换流程测试_ExchangeTest.java
...a/http/cases/ExchangeTest/兑吧新优惠券_兑换流程测试_ExchangeTest.java
+29
-1
No files found.
src/test/java/http/cases/ExchangeTest/Database.java
View file @
06274c0c
...
...
@@ -15,5 +15,7 @@ public class Database {
public
static
String
orders8
=
"orders_0090"
;
public
static
String
orders9
=
"orders_0203"
;
public
static
String
orders10
=
"orders_0411"
;
public
static
String
orders11
=
"orders_0182"
;
}
src/test/java/http/cases/ExchangeTest/兑吧卡密_兑换流程测试_ExchangeTest.java
0 → 100644
View file @
06274c0c
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/ExchangeTest/兑吧新优惠券_兑换流程测试_ExchangeTest.java
View file @
06274c0c
...
...
@@ -44,7 +44,7 @@ public class 兑吧新优惠券_兑换流程测试_ExchangeTest extends CheckTem
Authorization
authorization
;
private
DuibaLog
logger
=
DuibaLog
.
getLogger
();
int
uid
=
6866
;
int
uid
=
7022
;
@DataProvider
public
Object
[][]
providerMethod
(
Method
method
)
{
...
...
@@ -398,4 +398,32 @@ public class 兑吧新优惠券_兑换流程测试_ExchangeTest extends CheckTem
}
@Test
(
description
=
"兑吧新优惠券可售库存不足"
)
public
void
可售库存不足测试
()
throws
Exception
{
String
appItemId
=
"193933"
;
String
itemId
=
"32529"
;
String
skuId
=
"60"
;
String
message
=
""
;
Map
cookies
=
authorization
.
dafuwengLogin
(
uid
);
//无库存兑换
try
{
Response
response
=
gawService
.
couponExchange
(
cookies
,
appItemId
,
itemId
,
skuId
);
response
.
prettyPrint
();
}
catch
(
Exception
e
){
message
=
e
.
toString
();
}
logger
.
info
(
message
);
Assert
.
assertTrue
(
message
.
contains
(
"商品售罄"
),
"校验message失败"
);
Assert
.
assertTrue
(
message
.
contains
(
"\"success\":false"
),
"校验message失败"
);
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