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
8f587fbc
Commit
8f587fbc
authored
Apr 03, 2019
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
347695d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
插件场景测试_pluginTest.java
...java/http/cases/PluginActivityTest/插件场景测试_pluginTest.java
+1
-1
补给站_活动_DuibaTest.java
...t/java/http/cases/SaasDeveloperTest/补给站_活动_DuibaTest.java
+2
-2
开发者签到编辑_signTest.java
src/test/java/http/cases/SignTest/开发者签到编辑_signTest.java
+1
-0
总帐户账户正常提现.java
src/test/java/http/cases/WalletTest/总帐户账户正常提现.java
+4
-4
No files found.
src/test/java/http/cases/PluginActivityTest/插件场景测试_pluginTest.java
View file @
8f587fbc
...
...
@@ -79,7 +79,7 @@ public class 插件场景测试_pluginTest extends DuibaTestBase {
}
else
if
(
method
.
getName
().
equals
(
"插件触发事件测试"
)){
result
=
new
Object
[][]{
//
new Object[]{1,"0","chome","插件触发事件有效期内首次访问"},
new
Object
[]{
1
,
"0"
,
"chome"
,
"插件触发事件有效期内首次访问"
},
new
Object
[]{
2
,
"4"
,
"chome"
,
"插件触发事件未登录用户访问"
},
};
...
...
src/test/java/http/cases/SaasDeveloperTest/补给站_活动_DuibaTest.java
View file @
8f587fbc
...
...
@@ -70,7 +70,7 @@ public class 补给站_活动_DuibaTest extends AbstractTestNGSpringContextTests
public
void
b_
添加签到活动
()
throws
Exception
{
//查询热门活动-活动列表,获取商品ID
Response
response
=
developerBJZ
.
saasActivitys
(
"2"
,
appId
);
String
goodItemId
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"data.saasActivitys[
1
].id"
));
String
goodItemId
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"data.saasActivitys[
0
].id"
));
//获取商品ID,进入商品订购页面,获取SKU
Response
response2
=
developerBJZ
.
itemOrderDetail
(
goodItemId
,
appId
);
String
skuId
=
String
.
valueOf
(
response2
.
jsonPath
().
getString
(
"data.goodsItemSku[0].skuId"
));
...
...
@@ -92,7 +92,7 @@ public class 补给站_活动_DuibaTest extends AbstractTestNGSpringContextTests
public
void
c_
待处理的订单
()
throws
Exception
{
//查询热门活动-活动列表,获取商品ID
Response
response
=
developerBJZ
.
saasActivitys
(
"2"
,
appId
);
String
goodItemId
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"data.saasActivitys[
1
].id"
));
String
goodItemId
=
String
.
valueOf
(
response
.
jsonPath
().
getString
(
"data.saasActivitys[
0
].id"
));
//获取商品ID,进入商品订购页面,获取SKU
Response
response2
=
developerBJZ
.
itemOrderDetail
(
goodItemId
,
appId
);
String
skuId
=
String
.
valueOf
(
response2
.
jsonPath
().
getString
(
"data.goodsItemSku[0].skuId"
));
...
...
src/test/java/http/cases/SignTest/开发者签到编辑_signTest.java
View file @
8f587fbc
...
...
@@ -30,6 +30,7 @@ public class 开发者签到编辑_signTest extends AbstractTestNGSpringContextT
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.list[0].openToDev"
),
"false"
,
"来自Duiba的签到编辑权限失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.list[1].openToDev"
),
"true"
,
"来自开发者自有的签到编辑权限失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.list[2].openToDev"
),
"true"
,
"来自开发者自有的签到编辑权限失败"
);
logger
.
info
(
"开发者签到编辑权限校验成功"
);
}
...
...
src/test/java/http/cases/WalletTest/总帐户账户正常提现.java
View file @
8f587fbc
...
...
@@ -63,7 +63,7 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
Object
[][]
result
=
null
;
if
(
method
.
getName
().
equals
(
"b_提现失败_账户错误"
))
{
result
=
new
Object
[][]{
//
new Object[]{1, "fail_account@sandbox.com", "沙箱环境"}, //case1
new
Object
[]{
1
,
"fail_account@sandbox.com"
,
"沙箱环境"
},
//case1
new
Object
[]{
2
,
"peeulk6392@sandbox.com"
,
"错误环境"
},
//case2
};
}
...
...
@@ -124,10 +124,10 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
switch
(
caseNum
){
case
1
:
Assert
.
assertEquals
(
accountlog
.
get
(
"memo"
),
"
40004:Business Failed_PAYEE_NOT_EXIST:
收款账号不存在"
,
"message校验失败"
);
Assert
.
assertEquals
(
accountlog
.
get
(
"memo"
),
"收款账号不存在"
,
"message校验失败"
);
break
;
case
2
:
Assert
.
assertEquals
(
accountlog
.
get
(
"memo"
),
"
40004:Business Failed_PAYEE_USER_INFO_ERROR:
支付宝账号和姓名不匹配,请确认姓名是否正确"
,
"message校验失败"
);
Assert
.
assertEquals
(
accountlog
.
get
(
"memo"
),
"支付宝账号和姓名不匹配,请确认姓名是否正确"
,
"message校验失败"
);
break
;
}
...
...
@@ -147,7 +147,7 @@ public class 总帐户账户正常提现 extends DuibaTestBase{
Map
<
String
,
Object
>
selectResult
=
jdbc
.
findSimpleResult
(
"select * from consumer_accounts.tb_consumer_account_0906 where account_id = '100145034_6_0' "
);
int
balance
=
Integer
.
parseInt
(
String
.
valueOf
(
selectResult
.
get
(
"balance_amount"
)));
logger
.
info
(
"账户原有余额为"
+
balance
);
balance
=
balance
-
20
;
balance
=
balance
-
20
00
;
//账户支付宝提现
Map
cookies
=
authorization
.
dafuwengLogin
(
uid
);
...
...
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