这是Login请求(在index.jsp中)的响应部分,我必须从中获取current_account_id
和current_workspace_id
var parameters = 'objectId=&type=Desktop&dashboardType=desktop_events&forceReplace=true' +
'¤t_account_id=505520¤t_workspace_id=505519' +
'&skipAccountCheck=&skipWorkspaceCheck=';
var refreshRequest = registerForAutoRefresh('desktop_events_panel', 'desktop_events_panel', 'eventDataController', 'viewevents', parameters, recentActivityHandler);
refreshRequest.doRequest();
我想获取' current_account_id'的值和' current_workspace_id'
我在我的Gatling脚本中使用了以下代码来获取值。但没有运气
http("request_7")
.get("/desktop/dashboard/index.jsp")
.check(regex("""current_account_id=(\d+)""").saveAs("accountID"))
.check(regex("""current_workspace_id=(\d+)""").saveAs("workspaceID"))
.headers(headers_6)
错误:
请求:request_7:KO正则表达式(current_account_id =(\ d +))。find(0).exists, 一无所获
任何想法如何获取值?