问题
I am new to Jmeter. I have a locally hosted Bitbucket server. Sometimes when Bamboo plan triggers concurrent git clone operations it's found that Bitbucket servers gets slow/unresponsive and I have to restart the service. I want to simulate this behavior by running jmeter tests against another locally created Bitbucket server.
I would like to load test below scenario with Jmeter and bitbucket server.
- Load test git clone and git update operations against bitbucket server through Jmeter.
- Initially 20 users will make clone requests and 20 will make git update requests to bitbucket server.
- Multiple git repos and multiple users configured in jmeter for test.
As these are non browser operations (git clone operation), I am not sure how to extract exact url which is hitting to bitbucket server.
Thanks
回答1:
I would recommend using Git Java Client library, i.e. JGit in order to mimic the required operations using JMeter. Just add JGit and dependencies to JMeter Classpath, restart JMeter and you should be able to use JGit API methods from the JSR223 Test Elements:
References:
- JGit Cookbook
- Groovy Is the New Black
来源:https://stackoverflow.com/questions/43679039/jmeter-and-bitbucket-server-load-testing