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