Commit 0b2fb3ed authored by 郭姣's avatar 郭姣

企业后台登录接口增加延时,公司专区新增文章类型时增加延时

parent 21e11411
......@@ -422,6 +422,7 @@ public class HomePage implements Authorization {
//管理后台删除文章
@Test(description = "管理后台_删除公司专区内容",priority = 22)
public void 管理后台_删除公司专区内容(){
ThreadSleepUtils.sleep(2000);
//获取删除的内容的id
Map<String,Object> params = new HashMap<>();
params.put("exclusiveAreaId",21);
......@@ -454,7 +455,7 @@ public class HomePage implements Authorization {
paramsList.put("source",1);
Response dataRes = network.getResponse(paramsList,HOME_companyGetContentList);
int totalCount = dataRes.jsonPath().getInt("data.totalCount");
int totalCountNew = companyCount-3;//因为其中还包含2个视频,一个删除的文章,所以减去2
int totalCountNew = companyCount-3;//因为其中还包含2个视频,一个删除的文章,所以减去3
Assert.assertEquals(totalCount,totalCountNew,network.message(paramsList,HOME_companyGetContentList,"获取公司专区内容列表数据错误",dataRes.body().asString()));
}
......
......@@ -214,7 +214,7 @@ public class BaseUtils {
System.out.println(captcha);
//登录接口
ThreadSleepUtils.sleep(1000);
ThreadSleepUtils.sleep(2000);
params.clear();
params.put("phone","15136361308");
params.put("captcha",captcha);
......@@ -260,7 +260,7 @@ public class BaseUtils {
System.out.println(captcha);
//登录接口
ThreadSleepUtils.sleep(1000);
ThreadSleepUtils.sleep(2000);
params.clear();
params.put("phone","15136361307");
params.put("captcha",captcha);
......@@ -307,7 +307,7 @@ public class BaseUtils {
System.out.println(captcha);
//登录接口
ThreadSleepUtils.sleep(1000);
ThreadSleepUtils.sleep(2000);
params.clear();
params.put("phone","15136361306");
params.put("captcha",captcha);
......
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