这就是我所拥有的:
<session name="es_load" probability="100" type="ts_http">
<request subst="true">
<http url='/access.log' version='1.0'
contents='{"username"="rsss","password"="pass"}'
content_type='application/json' method='POST'>
</http>
</request>
</session>
我甚至没有看到这张贴在后端。
答案 0 :(得分:0)
切换到locust.io并且感到非常高兴!
答案 1 :(得分:0)
<request>
<http url="/portal/v2/portal" method="POST" version="1.1" contents='{
"status": "online",
"language": "en",
"preference": {
"optIn": "1"
}
}'>
<http_header name="authorization" value="Bearer token"/>
</http>
</request>
答案 2 :(得分:0)
使用“ contents_from_file”属性代替“ contents”属性,如下所示,
using System;
class Solution {
public int solution(int[] A) {
// write your code in C# 6.0 with .NET 4.5 (Mono)
if(A.Length) <3)
return 0;
Array.Sort(A);
int p,q,r;
for(int i=A.Length-1;i>1; i--){
p = A[i];
q = A[i-1];
r = A[i-2];
if(p+q>r && q+r > p && r+p > q)
return 1;
}
return 0;
}
}
注意::在此“ file.json”中正确提供数据并保存。