Commit 743f866b authored by 龚小红's avatar 龚小红

删除一个多余变量

parent 68f0666b
...@@ -40,6 +40,13 @@ public interface Authorization { ...@@ -40,6 +40,13 @@ public interface Authorization {
System.out.println("访客tku:" + VISITOR_TKU); System.out.println("访客tku:" + VISITOR_TKU);
} }
// 获取访客tku
default void userTku1() {
AGENT_TKU = BaseUtils.createTku();
network.agentCookies.put("tku", VISITOR1_TKU);
System.out.println("访客tku:" + VISITOR1_TKU);
}
/** /**
* 代理人(yl)授权,ID:826 * 代理人(yl)授权,ID:826
*/ */
......
...@@ -597,7 +597,7 @@ public class greetingCrad implements Authorization{ ...@@ -597,7 +597,7 @@ public class greetingCrad implements Authorization{
params.clear(); params.clear();
params.put("confId",giftConfId); params.put("confId",giftConfId);
params.put("giftId",giftId); params.put("giftId",giftId);
params.put("totalNum",3); params.put("totalNum",1);
response = network.postResponse(params,GREETING_save); response = network.postResponse(params,GREETING_save);
System.out.println(params.toString()); System.out.println(params.toString());
System.out.println(response.body().asString()); System.out.println(response.body().asString());
...@@ -657,6 +657,44 @@ public class greetingCrad implements Authorization{ ...@@ -657,6 +657,44 @@ public class greetingCrad implements Authorization{
Assert.assertTrue(result,network.message(params,GREETING_receive,"领取礼物失败",response.body().asString())); Assert.assertTrue(result,network.message(params,GREETING_receive,"领取礼物失败",response.body().asString()));
} }
@Test(description="访客_礼物被领取完领取失败",priority = 34)
public void 访客_礼物被领取完领取失败(){
//切换为访客
userTku1();
//查看阅读记录
Map<String, Object> params = new HashMap<String, Object>();
params.put("scid",giftScid);
params.put("bizNo",giftConfId);
params.put("from",0);
Response response = network.getResponse(params,CONTENT_READ);
boolean success = response.jsonPath().getBoolean("success");
Object data = response.jsonPath().getJsonObject("data");
Assert.assertTrue(success,network.message(params,CONTENT_READ,"接口返回失败",response.body().asString()));
Assert.assertNotNull(data,network.message(params,CONTENT_READ,"获取访问贺卡记录失败",response.body().asString()));
//打开贺卡
params.clear();
params.put("scid",giftScid);
params.put("confId",giftConfId);
response = network.getResponse(params,GREETING_view);
success = response.jsonPath().getBoolean("success");
data = response.jsonPath().getJsonObject("data");
Assert.assertTrue(success,network.message(params,GREETING_view,"接口返回失败",response.body().asString()));
Assert.assertNotNull(data,network.message(params,GREETING_view,"接口返回数据为空",response.body().asString()));
//领取礼物
params.clear();
params.put("scid",giftScid);
params.put("phone","13412341234");
params.put("confId",giftConfId);
response = network.postResponse(params,GREETING_receive);
success = response.jsonPath().getBoolean("success");
boolean result = response.jsonPath().getBoolean("data");
Assert.assertTrue(success,network.message(params,GREETING_receive,"接口返回失败",response.body().asString()));
Assert.assertFalse(result,network.message(params,GREETING_receive,"领取礼物失败",response.body().asString()));
}
@Test(description="代理人_获取已发出贺卡记录",priority = 35) @Test(description="代理人_获取已发出贺卡记录",priority = 35)
public void 代理人_获取已发出贺卡记录(){ public void 代理人_获取已发出贺卡记录(){
//切换为代理人 //切换为代理人
......
...@@ -71,6 +71,8 @@ public class BasicConfig { ...@@ -71,6 +71,8 @@ public class BasicConfig {
public static String AGENT_TKU = "T3gM31f18jCFEcfTyJdjfJAfSjDmKNMHfH7CvpLDC6UCLbai6Pc41VyJK3bXHe1wg7Hb5FGFZheeLvHjbE"; public static String AGENT_TKU = "T3gM31f18jCFEcfTyJdjfJAfSjDmKNMHfH7CvpLDC6UCLbai6Pc41VyJK3bXHe1wg7Hb5FGFZheeLvHjbE";
// 基础线访客 TKU // 基础线访客 TKU
public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfC4HKmj5NJfCUkxusAyFb5SpkWS31srDTYr6KtV"; public static String VISITOR_TKU = "T3gM31f18jCGvqvoyJRzyMTdpcPDJWUJJP4VQje7p9sfC4HKmj5NJfCUkxusAyFb5SpkWS31srDTYr6KtV";
// 基础线访客(小雪人) TKU
public static String VISITOR1_TKU = "T3gM31f18jCFXzk692pKjJCqJZdDv8Nb3htkzNk983cPMspUQD6pVEn2FNMefM2nieKPicXG9c1tDg8qtN";
// 访客的sids // 访客的sids
public static final String sids = "Kj21MjMwNTU"; public static final String sids = "Kj21MjMwNTU";
// 访客的userId(固定) // 访客的userId(固定)
...@@ -401,7 +403,7 @@ public class BasicConfig { ...@@ -401,7 +403,7 @@ public class BasicConfig {
//直播中线索 //直播中线索
public static final String MOBILE_clueList = MOBILE_HOST + "/kjy/live/agent/clue/list"; public static final String MOBILE_clueList = MOBILE_HOST + "/kjy/live/agent/clue/list";
public static final String MOBILE_livingClueStatistic = MOBILE_HOST + "/kjy/live/agent/clue/livingClueStatistic"; public static final String MOBILE_livingClueStatistic = MOBILE_HOST + "/kjy/live/agent/clue/livingClueStatistic";
public static final String MOBILE_hasInviteAuth = MOBILE_HOST + "/kjy/live/agent/hasInviteAuth";
//排行榜 //排行榜
......
...@@ -2,41 +2,41 @@ ...@@ -2,41 +2,41 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="集客助手" verbose="1" thread-count="3"> <suite name="集客助手" verbose="1" thread-count="3">
<test preserve-order="true" name="支付"> <!-- <test preserve-order="true" name="支付">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.basics.Pay"/> <!-- <class name="com.kjj.cases.basics.Pay"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name = "首页"> <!-- <test preserve-order="true" name = "首页">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.homePage"/> <!-- <class name="com.kjj.cases.assistant.homePage"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="我的名片"> <!-- <test preserve-order="true" name="我的名片">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.card.PersonCard"/> <!-- <class name="com.kjj.cases.assistant.card.PersonCard"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name="文章中个人名片"> <!-- <test preserve-order="true" name="文章中个人名片">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.card.ArticalPersonCard"/> <!-- <class name="com.kjj.cases.assistant.card.ArticalPersonCard"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name = "种草素材"> <!-- <test preserve-order="true" name = "种草素材">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.RecommendMaterial"/> <!-- <class name="com.kjj.cases.assistant.RecommendMaterial"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name = "今日早报"> <!-- <test preserve-order="true" name = "今日早报">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.DailyPaper"/> <!-- <class name="com.kjj.cases.assistant.DailyPaper"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name = "谁看过我_团队看板"> <!-- <test preserve-order="true" name = "谁看过我_团队看板">-->
<classes> <!-- <classes>-->
<class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/> <!-- <class name="com.kjj.cases.assistant.whoSawMe.WhoSawMe"/>-->
</classes> <!-- </classes>-->
</test> <!-- </test>-->
<test preserve-order="true" name = "贺卡"> <test preserve-order="true" name = "贺卡">
<classes> <classes>
<class name="com.kjj.cases.assistant.markettools.greetingCrad"/> <class name="com.kjj.cases.assistant.markettools.greetingCrad"/>
......
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