如何获取上下文ID和搜索ID

时间:2016-11-24 13:08:13

标签: jmeter

在Jmeter中,我正在进行搜索,每次生成上下文ID,搜索ID和会话ID。我设法从HTTP请求中获取会话ID,然后将其传递给api调用。但我没有在任何地方看到上下文ID和搜索ID,我无法将其传递给api。我能做些什么才能得到它们?

1 个答案:

答案 0 :(得分:1)

在聊天中,我们了解到client generated value

建议使用以下链接来解决问题,方法是根据数据生成random string/int/alphanumeric/uuid等:

  1. 对于Random Int:http://jmeter.apache.org/usermanual/functions.html#__Random
  2. 对于Randome字符串(字母数字):http://jmeter.apache.org/usermanual/functions.html#__RandomString
  3. 对于您定义的随机值:http://jmeter.apache.org/usermanual/functions.html#__RandomFromMultipleVars
  4. 对于随机UUID:http://jmeter.apache.org/usermanual/functions.html#__UUID
  5. 您选择的功能取决于您要发送的数据类型。