Sauce customer Jon Austen reached out to share how he bent Apache JMeter to his will, not only running tests against Sauce Labs, but also calling the REST API afterwards to update the Job's metadata.
(JMeter is a load testing and performance measuring tool from the Apache project. It has Selenium capabilities, so can be used to do functional testing of your sites, which is where Sauce Labs shines. We don't really recommend building a load test suite using Sauce Labs as your primary source of load.)
We asked if he'd let us share his awesome work with all of you, and he said we could because he is a total champ. He also posted his repo to Twitter, where he's @austinjt
Just sharing. I'm the first person to ever try this as far as I know:
Example project showing Jmeter running Chrome driver tests :
To run it yourself :
1. Download the SauceLabs-Example.jmx project file from: https://github.com/djangofan/launch-jmeter/tree/master/src/test/jmeter
2. Create your own free 2-thread SauceLabs account and enter your SAUCEUSER and SAUCEKEY into the "User Defined Variables" section in the Jmeter project.
3. Run the tests and then check SauceLabs for the test result.
4. You should get a result something like this: https://saucelabs.com/tests/266516a5bc354a159cca66002a7a2348
The awesome thing here is that after Jmeter runs the browser tests, it calls the SauceLabs API to update the test status, test name, tags, and build#.
Keep in mind that running this project requires Jmeter WebDriver plugins version 1.2.1 as well as groovy-all.jar .