Commit 4d25af2a authored by 龚小红's avatar 龚小红

增加OTO销售工作台移动端1.1的测试用例

parent c0c3421c
...@@ -16,6 +16,7 @@ import java.util.ArrayList; ...@@ -16,6 +16,7 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import static com.kjj.cases.otoseller.Work.phone;
import static com.kjj.utils.BaseUtils.*; import static com.kjj.utils.BaseUtils.*;
import static com.kjj.utils.ThreadSleepUtils.sleep; import static com.kjj.utils.ThreadSleepUtils.sleep;
//手机端 //手机端
...@@ -630,7 +631,7 @@ public class Phone implements Authorization { ...@@ -630,7 +631,7 @@ public class Phone implements Authorization {
@Test(description = "删除客户填写的表单记录",priority = 80) @Test(description = "删除客户填写的表单记录",priority = 80)
public void 删除客户填写的表单记录(){ public void 删除客户填写的表单记录(){
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
params.put("phoneNum", "17830855590"); params.put("phoneNum", phone);
Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord); Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delPubFormRecord,"删除客户表单记录失败",response.body().asString())); Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delPubFormRecord,"删除客户表单记录失败",response.body().asString()));
......
...@@ -22,10 +22,11 @@ public class Work implements Authorization { ...@@ -22,10 +22,11 @@ public class Work implements Authorization {
private static final NetworkUtils network = NetworkUtils.getInstance(); private static final NetworkUtils network = NetworkUtils.getInstance();
public int tagId; //标签ID public int tagId; //标签ID
public int custId; //客户ID public int custId; //客户ID
public String phone; //客户手机号 public static String phone = "15938213001"; //客户手机号
public int followTimes; //跟进次数 public int followTimes; //跟进次数
public static Map<String,Integer> header; public static Map<String,Integer> header;
public static Map<String,Integer> chart; public static Map<String,Integer> chart;
@BeforeTest @BeforeTest
public void setUp(){ public void setUp(){
header = new HashMap<>(); header = new HashMap<>();
...@@ -80,7 +81,6 @@ public class Work implements Authorization { ...@@ -80,7 +81,6 @@ public class Work implements Authorization {
@Test(description = "公域引流_填写表单",priority = 4) @Test(description = "公域引流_填写表单",priority = 4)
public void 公域引流_填写表单(){ public void 公域引流_填写表单(){
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
phone = "17830855590";
params.put("formId", "Kj20ODA3"); params.put("formId", "Kj20ODA3");
params.put("phoneNum", phone); params.put("phoneNum", phone);
params.put("urlLink", "https://kjj-static.duibatest.com.cn/cpic-home/202111261430?formId=Kj20ODA3&channel=bd&agent=x"); params.put("urlLink", "https://kjj-static.duibatest.com.cn/cpic-home/202111261430?formId=Kj20ODA3&channel=bd&agent=x");
...@@ -495,7 +495,7 @@ public class Work implements Authorization { ...@@ -495,7 +495,7 @@ public class Work implements Authorization {
params.put("pageSize", 10); params.put("pageSize", 10);
Response response = network.getResponse(params,BasicConfig.MANAGER_oto_customerPhone); Response response = network.getResponse(params,BasicConfig.MANAGER_oto_customerPhone);
String data = response.jsonPath().getString("data"); String data = response.jsonPath().getString("data");
Assert.assertEquals(data,"17830855590",network.message(params,BasicConfig.MANAGER_oto_qaDetail,"解密手机号失败",response.body().asString())); Assert.assertEquals(data,phone,network.message(params,BasicConfig.MANAGER_oto_qaDetail,"解密手机号失败",response.body().asString()));
} }
@Test(description = "公域引流_查询问题详情",priority = 47) @Test(description = "公域引流_查询问题详情",priority = 47)
......
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