Open sjethvani opened 6 years ago
@90kts this seems to be an issue. parser.rb
may require a fix for this . Let me know if you guys need any other information
Not sure if this is related, but the parser does not do json body parsing properly.
From a jmeter generated jmx, the double quotes in a json body should be transform into ".
params[:raw_body].encode(:xml => :text).gsub(/\"/, '"')
This should handle double quotes.
Update: Nokogiri seem to escape the " and covert it back to ".
In jmeter we can't have parameters & body both at same time , instead we can have query parameters in URL path and request body in body field . So it would be like URL : http://{host}?param1=val1¶m2=val2 Body will be of xml/json
I tried to replicate this in ruby-jmeter through following ruby-jmeter snippet
PS : 'submit' is alias for http post in ruby-jmeter
When I am compiling above snippet in ruby-jmeter , it generates jmeter file & it shows query parameter concatenated with request body & not in URL (which is wrong). Have a look at generated jmeter scenario
PS : I checked that this is happening when my post request has raw_body & url has query parameters