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
eb1a8b4c
Commit
eb1a8b4c
authored
Aug 04, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改xml文件
parent
6ce349d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
2 deletions
+86
-2
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+3
-0
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+83
-2
No files found.
src/test/java/com/kjj/config/BasicConfig.java
View file @
eb1a8b4c
...
...
@@ -966,4 +966,7 @@ public class BasicConfig {
public
static
final
String
MANAGER_addExclusiveArea
=
MANAGER_HOST
+
"/kjy/manager/exclusiveArea/add"
;
public
static
final
String
MANAGER_searchTemplateList
=
MANAGER_HOST
+
"/kjy/manager/game/searchTemplateList"
;
public
static
final
String
MANAGER_getTemplateDetail
=
MANAGER_HOST
+
"/kjy/manager/game/getTemplateDetail"
;
public
static
final
String
MANAGER_vipList
=
MANAGER_HOST
+
"/kjy/manager/seller/vipList"
;
public
static
final
String
MANAGER_disableUser
=
MANAGER_HOST
+
"/kjy/manager/testUser/disableUser"
;
public
static
final
String
MANAGER_updateTypeOrDate
=
MANAGER_HOST
+
"/kjy/manager/seller/updateTypeOrDate"
;
}
src/test/java/com/kjj/utils/BaseUtils.java
View file @
eb1a8b4c
...
...
@@ -44,6 +44,87 @@ public class BaseUtils {
network
.
agentCookies
.
put
(
"sso_ticket"
,
"autotest"
);
}
//
// /**
// * 切换vip
// * @param userVersion 1是通用版 2是保险版
// * @param vipType 1是普通用户 2是vip用户
// */
// public static void switchVip(int userVersion, int vipType) {
// String sellerId = getSellerId();
//
// // 登录下,检验是否失效
// ssoLogin();
//
// // 1.切换公司为客集集
// Map<String, Object> changeParams = new HashMap<String, Object>();
// changeParams.put("id",sellerId);
// changeParams.put("companyId",6);
// Response response = network.getResponse(changeParams,MANAGER_CHANGECOMPANY);
// response.body().prettyPrint();
//
// // 2.切换为保险版vip
// Map<String, Object> switchVipParams = new HashMap<String, Object>();
// switchVipParams.put("reason","1");
// switchVipParams.put("sellerId",sellerId);
// switchVipParams.put("userVersion",userVersion);
// switchVipParams.put("vipType",vipType);
// switchVipParams.put("vipStartDate",System.currentTimeMillis());
// switchVipParams.put("vipEndDate",System.currentTimeMillis() + 1000*3600*24*365L);
// response = network.postResponse(switchVipParams,MANAGER_UPDATETYPEORDATE);
//
// // 3.切换公司为空
// changeParams.remove("companyId",6); //去掉公司
// response = network.getResponse(changeParams,MANAGER_CHANGECOMPANY);
//
// // 删除管理后台tku
// network.agentHeaders.remove("X-Csrf-Token");
// network.agentCookies.remove("sso_ticket");
// network.agentCookies.remove("device_no");
// network.agentCookies.remove("csrf_token");
//
// /**
// * 获取tku
// * @param userId 用户id
// * @return 用户tku
// */
// public static String getTku(int userId){
// Map<String, Object> tkuParams = new HashMap<String, Object>();
// tkuParams.put("userId",userId);
// Response response = network.getResponse(tkuParams,AUTOTEST_TKU);
// response.body().prettyPrint();
// return response.jsonPath().getString("data");
// }
//
// /**
// * 账号禁用
// */
// public static void disableUser() {
// // 获取sellerId、userId
// String sellerId = getSellerId();
// String userId = getUserId();
//
// // 取关公众号
// Map<String, Object> unsubscribeParams = new HashMap<String, Object>();
// unsubscribeParams.put("userId", userId);
// unsubscribeParams.put("oaId", 1);
// Response response = network.getResponse(unsubscribeParams, AUTOTEST_UNSUBSCRIBE);
// System.out.println(response.statusCode());
//
// // 登录下,检验是否失效
// ssoLogin();
//
// // 公司改为客集集
// Map<String, Object> changeParams = new HashMap<String, Object>();
// changeParams.put("id", sellerId);
// changeParams.put("companyId", 6);
// response = network.getResponse(changeParams, MANAGER_CHANGECOMPANY);
//
// // 删除账号
// Map<String, Object> params = new HashMap<String, Object>();
// params.put("userId", userId);
// response = network.postResponse(params, MANAGER_DISABLEUSER);
// response.body().prettyPrint();
// }
// }
}
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