Jmeter and Bitbucket server load testing

我只是一个虾纸丫 提交于 2020-04-13 11:31:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!