Commit 92954236 authored by 龚小红's avatar 龚小红

Merge branch 'feafture/20220509-gxh' into 'master'

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

See merge request test-group/kejiji!256
parents 0354aff0 4d25af2a
......@@ -16,6 +16,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import static com.kjj.cases.otoseller.Work.phone;
import static com.kjj.utils.BaseUtils.*;
import static com.kjj.utils.ThreadSleepUtils.sleep;
//手机端
......@@ -630,7 +631,7 @@ public class Phone implements Authorization {
@Test(description = "删除客户填写的表单记录",priority = 80)
public void 删除客户填写的表单记录(){
HashMap<String,Object> params = new HashMap<>();
params.put("phoneNum", "17830855590");
params.put("phoneNum", phone);
Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delPubFormRecord,"删除客户表单记录失败",response.body().asString()));
......
......@@ -22,10 +22,11 @@ public class Work implements Authorization {
private static final NetworkUtils network = NetworkUtils.getInstance();
public int tagId; //标签ID
public int custId; //客户ID
public String phone; //客户手机号
public static String phone = "15938213001"; //客户手机号
public int followTimes; //跟进次数
public static Map<String,Integer> header;
public static Map<String,Integer> chart;
@BeforeTest
public void setUp(){
header = new HashMap<>();
......@@ -80,7 +81,6 @@ public class Work implements Authorization {
@Test(description = "公域引流_填写表单",priority = 4)
public void 公域引流_填写表单(){
HashMap<String,Object> params = new HashMap<>();
phone = "17830855590";
params.put("formId", "Kj20ODA3");
params.put("phoneNum", phone);
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 {
params.put("pageSize", 10);
Response response = network.getResponse(params,BasicConfig.MANAGER_oto_customerPhone);
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)
......
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