question

mterry avatar image
mterry asked mterry answered

How can I use variables or parameters with the json action?

When trying to edit the description field for a json action, nothing seems to change or sometimes some of the description gets deleted while trying to use variables and escaping the the special characters.

iTestVariablesparametersjson
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
mterry avatar image
mterry answered

When editing a json action in the Test Case Editor, you must edit the Json Step Properties. If you try to edit the description directly in the Test Case Editor, you will see unexpected behaviour. The required method is to edit the Path-Value. If your are using a variable or a parameter, enable field substitution there. You will need to escape { } [ and characters.

Example:


10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.