Commit a2851191 authored by 赵然's avatar 赵然

zr

parent 27b16cab
...@@ -785,14 +785,18 @@ public class ManagerService { ...@@ -785,14 +785,18 @@ public class ManagerService {
//获取开发者扣积分模板信息 //获取开发者扣积分模板信息
public void index() throws Exception{ public void index() throws Exception{
String url = "http://"+dafuwengHost + ":" + dafuwengPort+"/app/index"; String url = "http://"+dafuwengHost + ":" + dafuwengPort+"/app/index?name=自动化";
Response response = given().contentType("application/x-www-form-urlencoded;charset=UTF-8").get(url); Response response = given().contentType("application/x-www-form-urlencoded;charset=UTF-8").post(url);
String status = MatcherString.getString(response.asString(), "3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n" + //logger.info(response.asString());
"\t\t\t\t<td>(.*?)</td>", 1); String status = MatcherString.getString(response.asString(), "3erv8LvBxKBSyuGK5i8FSGyYoFD1\n" +
" </td>\n" +
" <td>\n" +
"\t\t\t\t\t\t(.*?)\n" +
" </td>", 1);
logger.info("自动化测试 扣积分模板为:"+status); logger.info("自动化测试 扣积分模板为:"+status);
int i=30; int i=30;
while(!status.equals("扣积分-成功")&&i>0){ while(!status.equals("扣积分成功")&&i>0){
Thread.sleep(1000); Thread.sleep(1000);
response = given().contentType("application/x-www-form-urlencoded;charset=UTF-8").get(url); response = given().contentType("application/x-www-form-urlencoded;charset=UTF-8").get(url);
status = MatcherString.getString(response.asString(), "3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n" + status = MatcherString.getString(response.asString(), "3erv8LvBxKBSyuGK5i8FSGyYoFD1</td>\n" +
......
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