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
c017c078
Commit
c017c078
authored
Apr 09, 2021
by
别湘灵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理人首页
parent
a04efa8d
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
729 additions
and
17 deletions
+729
-17
AnchorRedList.java
src/test/java/com/kjj/bean/AnchorRedList.java
+32
-0
GetShareSign.java
src/test/java/com/kjj/bean/GetShareSign.java
+14
-0
RedGetSimple.java
src/test/java/com/kjj/bean/RedGetSimple.java
+11
-0
RedHelpInfo.java
src/test/java/com/kjj/bean/RedHelpInfo.java
+16
-0
RedHelpQuery.java
src/test/java/com/kjj/bean/RedHelpQuery.java
+17
-0
RedHepDetail.java
src/test/java/com/kjj/bean/RedHepDetail.java
+9
-0
RedLuckResult.java
src/test/java/com/kjj/bean/RedLuckResult.java
+29
-0
RedNum.java
src/test/java/com/kjj/bean/RedNum.java
+14
-0
RedOrdinary.java
src/test/java/com/kjj/bean/RedOrdinary.java
+14
-0
RedSimpleDetail.java
src/test/java/com/kjj/bean/RedSimpleDetail.java
+17
-0
RedState.java
src/test/java/com/kjj/bean/RedState.java
+11
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/LiveVisitors.java
+2
-5
LiveVistorRed.java
src/test/java/com/kjj/cases/live/LiveVistorRed.java
+320
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+198
-4
ThreadSleepUtils.java
src/test/java/com/kjj/utils/ThreadSleepUtils.java
+14
-0
liveTestNG.xml
src/test/liveTestNG.xml
+11
-8
No files found.
src/test/java/com/kjj/bean/AnchorRedList.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
AnchorRedList
{
private
String
surplusAmount
;
private
List
<
RedList
>
redList
;
@Data
public
static
class
RedList
{
private
String
confId
;
private
int
totalAmount
;
private
int
totalNum
;
private
int
luckAmount
;
private
int
luckNum
;
private
int
luckHelpNum
;
private
int
generalNum
;
private
int
showAmount
;
private
int
totalSurplusNum
;
private
int
luckSurplusNum
;
private
int
redStatus
;
}
private
String
redPackReceiving
;
}
src/test/java/com/kjj/bean/GetShareSign.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
GetShareSign
{
private
String
posterUrl
;
private
String
mpQrcode
;
private
String
mpShareUrl
;
private
String
mpShareTitle
;
private
String
shareSign
;
private
String
shareContent
;
private
String
liveType
;
}
src/test/java/com/kjj/bean/RedGetSimple.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
RedGetSimple
{
private
Date
startTime
;
}
src/test/java/com/kjj/bean/RedHelpInfo.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
RedHelpInfo
{
private
String
avatar
;
private
String
confId
;
private
int
myHelpNum
;
private
String
nickname
;
}
src/test/java/com/kjj/bean/RedHelpQuery.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
RedHelpQuery
{
private
String
avatar
;
private
String
end
;
private
String
hasConfLuck
;
private
String
help
;
private
String
helpShareUser
;
private
String
nickname
;
private
String
selfShare
;
}
src/test/java/com/kjj/bean/RedHepDetail.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
RedHepDetail
{
private
String
helpAvatarList
;
private
int
myHelpNum
;
}
src/test/java/com/kjj/bean/RedLuckResult.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
RedLuckResult
{
private
List
<
LuckList
>
list
;
@Data
public
static
class
LuckList
{
private
String
avatar
;
private
String
nickname
;
private
String
receivedAmount
;
}
}
src/test/java/com/kjj/bean/RedNum.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
RedNum
{
private
String
totalAmount
;
private
String
luckAmount
;
private
String
luckNum
;
}
src/test/java/com/kjj/bean/RedOrdinary.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
RedOrdinary
{
private
String
confId
;
private
int
redStatus
;
private
Date
startTime
;
private
int
showAmount
;
private
int
luckHelpNum
;
}
src/test/java/com/kjj/bean/RedSimpleDetail.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
RedSimpleDetail
{
private
int
totalAmount
;
private
int
luckAmount
;
private
int
luckNum
;
private
int
luckHelpNum
;
private
Date
startTime
;
private
int
redStatus
;
}
src/test/java/com/kjj/bean/RedState.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
RedState
{
private
int
state
;
private
int
amount
;
private
String
luck
;
private
int
code
;
}
src/test/java/com/kjj/cases/live/LiveVisitors.java
View file @
c017c078
...
@@ -6,6 +6,7 @@ import com.kjj.bean.*;
...
@@ -6,6 +6,7 @@ import com.kjj.bean.*;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.ThreadSleepUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.BeforeClass
;
...
@@ -40,11 +41,7 @@ public class LiveVisitors implements AdminAuthorization
...
@@ -40,11 +41,7 @@ public class LiveVisitors implements AdminAuthorization
@Test
(
description
=
"访客端权益列表"
,
priority
=
1
)
@Test
(
description
=
"访客端权益列表"
,
priority
=
1
)
public
void
访客端权益列表
()
public
void
访客端权益列表
()
{
{
try
{
ThreadSleepUtils
.
sleep
(
30000
);
Thread
.
sleep
(
30000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
...
...
src/test/java/com/kjj/cases/live/LiveVistorRed.java
0 → 100644
View file @
c017c078
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
c017c078
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/utils/ThreadSleepUtils.java
0 → 100644
View file @
c017c078
package
com
.
kjj
.
utils
;
public
class
ThreadSleepUtils
{
private
ThreadSleepUtils
()
{}
public
static
void
sleep
(
long
millis
)
{
try
{
Thread
.
sleep
(
millis
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
}
src/test/liveTestNG.xml
View file @
c017c078
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
</test>
</test>
<test
preserve-order=
"true"
name=
"
访客券码领取
"
>
<test
preserve-order=
"true"
name=
"
助播-开启直播
"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.User
"
/>
<class
name=
"com.kjj.cases.live.OpenLive
"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"
助播-开启直播
"
>
<test
preserve-order=
"true"
name=
"
访客券码领取
"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.OpenLive
"
/>
<class
name=
"com.kjj.cases.live.User
"
/>
</classes>
</classes>
</test>
</test>
...
@@ -53,8 +53,11 @@
...
@@ -53,8 +53,11 @@
<class
name=
"com.kjj.cases.live.LiveAgent"
/>
<class
name=
"com.kjj.cases.live.LiveAgent"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"红包领取"
>
<classes>
<class
name=
"com.kjj.cases.live.LiveVistorRed"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.CloseLive"
/>
<class
name=
"com.kjj.cases.live.CloseLive"
/>
...
...
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