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

修改声明方式

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