Commit 6e25495e authored by 龚小红's avatar 龚小红

Merge branch 'gifeature/20211115-gj' into 'master'

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

See merge request test-group/kejiji!176
parents 9405003b 0b2fb3ed
......@@ -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()));
}
......
......@@ -213,7 +213,7 @@ public class BaseUtils {
System.out.println(captcha);
//登录接口
ThreadSleepUtils.sleep(1000);
ThreadSleepUtils.sleep(2000);
params.clear();
params.put("phone","15136361308");
params.put("captcha",captcha);
......@@ -259,7 +259,7 @@ public class BaseUtils {
System.out.println(captcha);
//登录接口
ThreadSleepUtils.sleep(1000);
ThreadSleepUtils.sleep(2000);
params.clear();
params.put("phone","15136361307");
params.put("captcha",captcha);
......@@ -306,7 +306,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