Search code examples
tsung

How does one POST JSON encoded content in tsung?


Here's what I have:

 <session name="es_load" probability="100" type="ts_http">
         <request subst="true">
            <http url='/access.log' version='1.0'
              contents='{&quot;username&quot;=&quot;rsss&quot;,&quot;password&quot;=&quot;pass&quot;}'
            content_type='application/json' method='POST'>
            </http>
         </request>
  </session>

I don't see this even getting posted on the backend.


Solution

  • Switched to locust.io and couldn't be happier!