How can I call a web applet method via JMeter -
i have java web applet tries connect hardware token through pkcs#11 , sign string. when web page loaded sign applet loaded either. when dialog comes in web form, user should insert hardware token's password , after clicking sign button, web form call applet's sign method , sign sending string via certificate on token.
note these steps executing on dialog without sending request server, jmeter can not sense happening until signed text sending through request server save in db.
(the signed string different each time , it's based on different id existed on field of web form)
the problem how can call applet's sign method jmeter because signed string based on id, different in load test either. jmeter should not send static signed string in each load , should sign different string every thread.
i tried copy applet's jar file in lib folder of jmeter , call sign method via bsf sampler pkcs#11 exception in line used doprivilaged in applet's code.
is there help?
i found solution,
because pkcs#11 in package sun.security.pkcs11.sunpkcs11 should use jdk1.7.
the problem jmeter not set use jdk7. edited jmeter.bat file , change
set jm_launch=java.exe with
set jm_launch="c:\java\jdk1.7.0_03\bin\java.exe" hurraaaay. problem solved :)
Comments
Post a Comment