Hi all,
I am experiencing a problem that my JDBC PostProcessor is unable to pick up
the variable I set in BeanShell Assertion.
The test plan is briefly described as follows:
-- HTTP request sampler ........ (1)
---- BeanShell Assertion ....... (2)
---- Debug PostProcessor ....... (3)
---- JDBC PostProcessor ........ (4)
---- BeanShell Assertion ....... (5)
After http sampler gets response in (1), I put down some scripts in (2) to
verify content of the response and put some data into variables with
vars.put("var-name", "var-value").
In (4), I have a Prepared Select Statement that reuses the variables I put
in (2) as conditions.
Then In (5), I verify if the data received in (1) matches to the data
selected from DB.
When I run the test, the assertion failed in (5), so I check the variable
values in (3), but I cannot find the variables I put in (2), and I see the
count of result set is 0 for my prepared select statement.
Thus, I add a few print() statement in (5) to verify values of the
variables I put in (2), and I can see the values printed correctly in
terminal console.
It seems the variables I put in (2) exist, but the JDBC PostProcessor is
unable to pick it up?
How do I let JDBC PostProcessor picks up the variables I put in BeanShell?
Thanks for reading.
This is a UTF-8 formatted mail
-----------------------------------------------
James C.-C.Yu
+886988713275