Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
82efd525
Commit
82efd525
authored
Aug 24, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改亲友券
parent
16299458
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+22
-17
DingTalkUtils.java
src/test/java/com/kjj/utils/DingTalkUtils.java
+1
-1
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
82efd525
...
...
@@ -20,6 +20,9 @@ import org.testng.Assert;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.util.*
;
import
static
com
.
kjj
.
utils
.
BaseUtils
.
ssoLogin
;
public
class
SaveLive
implements
Authorization
{
public
String
liveID
;
public
String
EncodeLiveID
;
...
...
@@ -28,7 +31,8 @@ public class SaveLive implements Authorization {
public
List
<
RedList
>
redId
;
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
public
void
setUp
()
{
ssoLogin
();
}
/**
* 创建直播
...
...
@@ -2342,22 +2346,23 @@ public class SaveLive implements Authorization {
/**
* 亲友抽奖券配置
*/
// @Test(description = "保存亲友抽奖券配置", priority = 125)
// public void 保存亲友抽奖券配置() {
// Map<String, Object> Params = new HashMap<>();
// Params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.LIVE_ID.getKey()));
// Params.put("giftedLotteryUrl","");
// Params.put("notGiftedLotteryUrl","");
// Params.put("popLotteryUrl","");
// Params.put("envelopeWord","这是信封话术");
// Params.put("lotteryName","亲友抽奖券");
// Params.put("lotteryNum",3);
// Params.put("lotteryInstruction","这是亲友抽奖券的说明");
// Response response = network.postResponse(Params, BasicConfig.MANAGER_relativeLottery);
// System.out.println(response.body().asString());
// boolean data =response.jsonPath().getBoolean("data");
// Assert.assertTrue(data, network.message(Params, BasicConfig.MANAGER_relativeLottery, "保存亲友券配置失败", response.body().asString()));
// }
@Test
(
description
=
"保存亲友抽奖券配置"
,
priority
=
125
)
public
void
保存亲友抽奖券配置
(){
ssoLogin
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
5482
);
Params
.
put
(
"giftedLotteryUrl"
,
""
);
Params
.
put
(
"notGiftedLotteryUrl"
,
""
);
Params
.
put
(
"popLotteryUrl"
,
""
);
Params
.
put
(
"envelopeWord"
,
"这是信封话术"
);
Params
.
put
(
"lotteryName"
,
"亲友抽奖券"
);
Params
.
put
(
"lotteryNum"
,
3
);
Params
.
put
(
"lotteryInstruction"
,
"这是亲友抽奖券的说明"
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_relativeLottery
,
"保存亲友券配置失败"
,
response
.
body
().
asString
()));
}
//
// @Test(description = "查看亲友抽奖券配置详情", priority = 126)
// public void 查看亲友抽奖券配置详情() {
...
...
src/test/java/com/kjj/utils/DingTalkUtils.java
View file @
82efd525
...
...
@@ -24,7 +24,7 @@ public class DingTalkUtils {
context
=
"【接口自动化测试结果反馈】\n"
+
context
+
"报告地址: http://10.172.58.199/view/kkk/job/kejiji_interface/HTML_20Report\n"
+
"@
张艳玲
"
;
+
"@
龚小红
"
;
System
.
out
.
println
(
context
);
Map
<
String
,
Object
>
contentParams
=
new
HashMap
<
String
,
Object
>();
...
...
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