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
32c5dced
Commit
32c5dced
authored
Jun 01, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增猜数字红包
parent
8145f868
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
76 deletions
+114
-76
CondDetail.java
src/test/java/com/kjj/bean/lottery/CondDetail.java
+25
-3
TreasureTime.java
src/test/java/com/kjj/cases/live/lottery/TreasureTime.java
+80
-65
SaveAndUpdate.java
src/test/java/com/kjj/cases/live/manager/SaveAndUpdate.java
+1
-3
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+7
-4
JsonUtil.java
src/test/java/com/kjj/utils/JsonUtil.java
+1
-1
No files found.
src/test/java/com/kjj/bean/lottery/CondDetail.java
View file @
32c5dced
package
com
.
kjj
.
bean
.
lottery
;
import
lombok.Data
;
@Data
public
class
CondDetail
{
public
class
CondDetail
{
//宝箱id
private
String
treasureConfId
;
//奖品领取状态
private
boolean
finishFlag
;
public
String
getTreasureConfId
()
{
return
treasureConfId
;
}
public
void
setTreasureConfId
(
String
treasureConfId
)
{
this
.
treasureConfId
=
treasureConfId
;
}
/**
* 获取是否完成标记
* @return 是否完成标记
*/
public
boolean
isFinishFlag
()
{
return
finishFlag
;
}
public
void
setFinishFlag
(
boolean
finishFlag
)
{
this
.
finishFlag
=
finishFlag
;
}
}
src/test/java/com/kjj/cases/live/lottery/TreasureTime.java
View file @
32c5dced
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/manager/SaveAndUpdate.java
View file @
32c5dced
...
...
@@ -23,9 +23,7 @@ public class SaveAndUpdate implements AdminAuthorization {
public
long
welfareConfId
;
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
@Test
(
description
=
"创建直播"
,
priority
=
1
)
public
void
创建直播
()
{
...
...
src/test/java/com/kjj/utils/BaseUtils.java
View file @
32c5dced
...
...
@@ -43,14 +43,17 @@ public class BaseUtils {
response
=
network
.
postResponse
(
loginParams
,
SSO_DOLOGIN
);
Map
<
String
,
String
>
ssoCookies
=
response
.
getCookies
();
network
.
agentCookies
.
putAll
(
ssoCookies
);
//存入cookies
// 2.登录客集集管理后台
String
redirectUrl
=
response
.
jsonPath
().
getString
(
"redirect"
);
//获取重定向地址
response
=
network
.
getManagerCookies
(
redirectUrl
);
network
.
agentCookies
.
putAll
(
ssoCookies
);
//存入cookies
// // 2.登录客集集管理后台
// String redirectUrl = response.jsonPath().getString("redirect");//获取重定向地址
// response = network.getManagerCookies(redirectUrl);
ssoCookies
=
response
.
getCookies
();
network
.
agentCookies
.
putAll
(
ssoCookies
);
network
.
agentHeaders
.
put
(
"X-Csrf-Token"
,
ssoCookies
.
get
(
"csrf_token"
));
// 免登
network
.
agentCookies
.
put
(
"sso_ticket"
,
"autotest"
);
}
/**
...
...
src/test/java/com/kjj/utils/JsonUtil.java
View file @
32c5dced
...
...
@@ -57,7 +57,7 @@ public class JsonUtil {
}
public
static
<
T
>
T
parseResponseToBean1
(
Response
response
,
Class
<
T
>
tClass
){
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"d"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"d
ate
"
);
String
str
=
new
JsonBuilder
(
data
).
toString
();
return
JSON
.
parseObject
(
str
,
tClass
);
}
...
...
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