How to pass body in x-www-form-urlencoded in Generic Https/JSON Connector

Hello Florian,

I am trying to send request body in x-www-form-urlencoded in Generic Https/JSON Connector, In [Botium Connectors — Botium documentation] it is mentioned that “By default, a JSON structure is sent to the HTTP endpoint. If you want to send raw data (for example: x-www-form-urlencoded), set this capability to prevent JSON formating.”.

My Query is how we pass the body for this and what value we need to set for " SIMPLEREST_BODY_RAW" Capability.

Should work like this - the SIMPLEREST_BODY_RAW capability is a flag to tell Botium to not try to do any JSON parsing/formatting on the HTTP body

{
    "SIMPLEREST_BODY_RAW": true,
    "SIMPLEREST_HEADERS_TEMPLATE": { "Content-Type": "application/x-www-form-urlencoded" },
    "SIMPLEREST_BODY_TEMPLATE": "BODY1=BODY1VALUE&BODY2={{msg.messageText}}"
}