0

jmeter Beanshell プリプロセッサを使用して、次のポスト リクエスト JSON ボディを動的に構築する必要があります。ループ文字列に関する私の問題の解決策がある次の質問を参照しています。異なる名前と値を持つ JSON オブジェクトの配列である json-property(variables) を使用してこれを行う必要があります。どうもありがとう。

{
  "processDefinitionId":"optaplannerkey:1:dbc4af8f-7e04-11e9-afa3-1ecac26bb5e0",
  "businessKey":"optaplannerkey",
  "returnVariables":true,
  "variables": [
    {
      "name": "TaskDescription",
      "value": "Fixing the issue with sink"
    },
    {
      "name": "TaskCategory",
      "value": "plumbing"
    },
    {
      "name": "Priority",
      "value": "Medium"
    },
    {
      "name": "Status",
      "value": "New"
    },
    {
      "name": "SkillsRequired",
      "value": "Plumbing Skills"
    },
    {
      "name": "DueDate",
      "value": "2019-05-24T11:23:08.030+05:30"
    }
  ]
}
4

1 に答える 1