Commit 7fd23549 authored by Su-Yi's avatar Su-Yi

修改声明方式

parent 356203fc
......@@ -15,11 +15,11 @@ import java.util.Map;
public class Article {
private static final NetworkUtils network = NetworkUtils.getInstance();
String sid = ""; // 加密的销售ID
String articleContentId = ""; // 文章的contentId
String scid = ""; // getScid后的文章id
String userId = ""; // 代理人用户ID
String visitId = ""; // 访问记录ID
public String sid; // 加密的销售ID
public String articleContentId; // 文章的contentId
public String scid; // getScid后的文章id
public String userId; // 代理人用户ID
public String visitId; // 访问记录ID
@BeforeClass
public void setUp() {
......
......@@ -19,12 +19,13 @@ import static com.kjj.qa.config.BasicConfig.BOSS_USERINFO;
public class Boss {
private static final NetworkUtils network = NetworkUtils.getInstance();
String sellerId = "";
String usellerId ="";
String sids ="";
String visitorame ="";
String sellername ="";
String superiorname ="";
public String sellerId;
public String usellerId;
public String sids;
public String visitorame;
public String sellername;
public String superiorname;
@BeforeClass
public void setUp() {
......
......@@ -17,10 +17,10 @@ import static com.kjj.qa.config.BasicConfig.*;
public class CircleFriends {
private static final NetworkUtils network = NetworkUtils.getInstance();
int firstTagId = 0;
String contentId = "";
String tagId = "";
String tagName = "";
public int firstTagId;
public String contentId;
public String tagId;
public String tagName;
@BeforeClass
public void setUp() {
......
......@@ -16,12 +16,12 @@ import static com.kjj.qa.config.BasicConfig.*;
public class GreetingCard {
private static final NetworkUtils network = NetworkUtils.getInstance();
int tagId = 0;
String greetingName = "";
String contentId = "";
String scid = "";
String shareId = "";
String confId = "";
public int tagId;
public String greetingName;
public String contentId;
public String scid;
public String shareId;
public String confId;
@BeforeClass
......
......@@ -16,8 +16,8 @@ import java.util.Map;
public class SellerCard {
private static final NetworkUtils network = NetworkUtils.getInstance();
private String scid = "";
private String sellerId = "";
public String scid;
public String sellerId;
@BeforeClass
public void setUp() {
......
......@@ -4,7 +4,7 @@ public class BasicConfig {
public static int apiCount; //接口数量统计
// 是否开启钉钉机器人推送
public static final boolean isPushReport = true; //true
public static final boolean isPushReport = false; //true
// 代理人 TKU
public static String AGENT_TKU = null;
......
......@@ -123,7 +123,14 @@ public class NetworkUtils {
.post(DINGTALKPATH);
}
//带参的接口信息
/**
* 带参的接口完整信息
* @param params 接口参数
* @param path 接口路径
* @param errorMessage 自己打印的错误信息
* @param responseBody 返回的response
* @return 完整的接口信息
*/
public String message(Map<String, Object> params, String path, String errorMessage, String responseBody){
return "\n" + "path: " + path +
"\n" + "params: " + params +
......@@ -131,7 +138,13 @@ public class NetworkUtils {
"\n" + "response:" + responseBody + "\n";
}
//不带参的接口信息
/**
* 不带参的接口完整信息
* @param path 接口路径
* @param errorMessage 自己打印的错误信息
* @param responseBody 返回的response
* @return 完整的接口信息
*/
public String message(String path, String errorMessage, String responseBody){
return "\n" + "path: " + path +
"\n" + "message: " + errorMessage +
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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