Greetings RChandriker, thanks for reaching out Until today, I’d not heard of JMeter, lol! While there doesn’t appear to be any step templates that work with this specific technology, I did find http://performancewebautoamtionother.blogspot.com/2015/12/powershell-execute-jmeter-tests-nongui.html which shows how to call it using PowerShell. You could try something like this from a Run a Script task. Let me know if this will not work for you.
I’ve integrated Jmeter test into our deployment process, and execute the .jmx file from powershell on the Octopus Server. We specify the test results get passed in a .csv file in the command line arguments as well.
Once the test are done, we parse the .csv in a subsequent step, and filter out the test that failed using Powershell. If the test that fail are greater than 0, the script returns 1 and the deployment fails.
Yes, we can trigger the test from octopus using PowerShell script, but the challenge here is how can we make a performance test as pass/fail automatically.
How to emulate manual analysis for performance test results to decide whether code can move to production or not ??
Yes, you are right Powershell will return the test status as pass even when transactions are breaching the SLA (Service level agreement).
How we can make decision-based on the test results comparing response time, error rate as well as the health of the server ??
Thank you for providing that information If I’m understanding correctly, your saying that the test is still passing even if it exceeds the maximum time limit?
@Mark_Bradley gave his solution where the results are passed to a CSV file in the command line arguments. Once the tests are completed, they parse the CSV file to filter out failing tests, if the number of tests that haved are greater than 0 the deployment fails. Using https://octopus.com/docs/deployment-examples/custom-scripts/error-handling you can see what type of method works best for you as to how to fail the deployment.
Hi RChandriker,
We are also trying the same, need to integrate JMETER into Octopus.
Can you suggest, what is initial setup/path/installation needed on which machines?
I have both Octopus and JMETER installed on different server/boxes.
Just wanted to know how can I run my JMETER performance testing scripts from Octopus.