1

I'm trying to do some stress tests on an API with JMeter. I have two environments (QA and production) and I want to set up QA's database before running JMeter tests.

I can't use JDBC or MongoDB configuration elements because it's a cloud database (DynamoDB - AmazonWS). I thought about using raw requests with API-token to AmazonWS's API but I'd prefer to use a Java class I already have (a class that create-delete queries to cloud DB) but it has Spring dependencies.

I know that with JMeter I can run some Java code but I don't know how to run classes with Spring dependencies like a BeanFactoryPostProcessor.

Any ideas?

Pau Trepat
  • 697
  • 1
  • 6
  • 24

1 Answers1

1

I believe the best option would be to use

Running class from JMeter using i.e. JSR223 Sampler is also possible but you will need to

  • have all the dependencies in JMeter's classpath
  • ensure that there are no conflicts between JMeter and your class dependency libraries
Community
  • 1
  • 1
Dmitri T
  • 159,985
  • 5
  • 83
  • 133