eclipse - Jmeter failed to run JUnit Test jar -


i trying execute jar in jmeter load-test orientdb application.

some details application :

  • my application print(sysout) logs on console on startup

    `system starting, loading data...

    data loaded file..!

    connecting server save data..`

  • then connect orientdb server save data there

i run junit test case using eclipse, running successfully like

  • printing logs on console (sysouts)

  • connecting orientdb server , writing data there successfully

problem :

when trying run junit test case building jar using jmeter :

  • jmeter print startup logs console(which means jar executing) :

    system starting, loading data...

    data loaded file..!

    connecting server save data..

  • but after jmeter exit , give error

    an unexpected error occured error -- executegraph(org.apache.jmeter.protocol.java.sampler.junitsampler$annotatedtestcase): com/orientechnologies/orient/client/remote/oserveradmin

  • at point when giving error, ideally should connect orientdb , write data their.

note : executing jmeter using jmeter.bat , junit version v4.11

thanks..!

i believe need put dependency jars application uses somewhere on jmeter classpath (copy them "lib" folder of jmeter installation). in majority of cases jmeter restart required pick libraries up. if after junit test case still failing - check jmeter.log file - contains troubleshooting information.


you can consider using jdbc request sampler creating load onto orientdb instance. still need relevant jdbc driver in classpath, won't need other jars, see the real secret building database test plan jmeter article configuration details.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -