Commit c017c078 authored by 别湘灵's avatar 别湘灵

代理人首页

parent a04efa8d
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;
}
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;
}
package com.kjj.bean;
import lombok.Data;
import java.util.Date;
@Data
public class RedGetSimple {
private Date startTime;
}
package com.kjj.bean;
import lombok.Data;
@Data
public class RedHelpInfo {
private String avatar;
private String confId;
private int myHelpNum;
private String nickname;
}
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;
}
package com.kjj.bean;
import lombok.Data;
@Data
public class RedHepDetail {
private String helpAvatarList;
private int myHelpNum;
}
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;
}
}
package com.kjj.bean;
import lombok.Data;
@Data
public class RedNum {
private String totalAmount;
private String luckAmount;
private String luckNum;
}
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;
}
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;
}
package com.kjj.bean;
import lombok.Data;
@Data
public class RedState {
private int state;
private int amount;
private String luck;
private int code;
}
......@@ -6,6 +6,7 @@ import com.kjj.bean.*;
import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants;
import com.kjj.utils.JsonUtil;
import com.kjj.utils.ThreadSleepUtils;
import io.restassured.response.Response;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
......@@ -40,11 +41,7 @@ public class LiveVisitors implements AdminAuthorization
@Test(description = "访客端权益列表", priority = 1)
public void 访客端权益列表()
{
try {
Thread.sleep(30000);
} catch (InterruptedException e) {
e.printStackTrace();
}
ThreadSleepUtils.sleep(30000);
Map<String, Object> params = new HashMap<>();
params.put("liveId", LiveConstants.getValue(LiveConstants.StringKeyEnum.ENCODE_LIVE_ID.getKey()));
Response response = network.getResponse(params, BasicConfig.MOBILE_Resource);
......
This diff is collapsed.
package com.kjj.utils;
public class ThreadSleepUtils {
private ThreadSleepUtils() {}
public static void sleep(long millis) {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
......@@ -26,15 +26,15 @@
</test>
<test preserve-order="true" name="访客券码领取">
<test preserve-order="true" name="助播-开启直播">
<classes>
<class name="com.kjj.cases.live.User"/>
<class name="com.kjj.cases.live.OpenLive"/>
</classes>
</test>
<test preserve-order="true" name="助播-开启直播">
<test preserve-order="true" name="访客券码领取">
<classes>
<class name="com.kjj.cases.live.OpenLive"/>
<class name="com.kjj.cases.live.User"/>
</classes>
</test>
......@@ -53,8 +53,11 @@
<class name="com.kjj.cases.live.LiveAgent"/>
</classes>
</test>
<test preserve-order="true" name="红包领取">
<classes>
<class name="com.kjj.cases.live.LiveVistorRed"/>
</classes>
</test>
<test preserve-order="true" name="助播-结束直播">
<classes>
<class name="com.kjj.cases.live.CloseLive"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment