https://bz.apache.org/bugzilla/show_bug.cgi?id=64651

--- Comment #7 from Felix Schumacher <[email protected]> ---
Created attachment 37386
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37386&action=edit
inserting json value in a db

It might be easier to start off with a simple example (and better to use Groovy
than Beanshell :))

The attached test plan simulates a request, that returns our JSON value. The
response is then extracted with a Groovy script into a JMeter variable (and
quoted/escaped on the fly). The JDBC Post Processor can use the quoted JMeter
variable without problems (have a look at the documentation for the JDBC
Request about the used quoting).

To check, that we indeed inserted our JSON value in the db, we list all rows of
our db at the end of the test.

To run this test copy the driver jar for h2 into lib/ext or change the plan to
use your database.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to