This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prerequisites | |
# ubuntu + docker + docker-machine + digital ocean cloud | |
-- create a docker host for jmeter-server | |
JMETER_SERVER_ID=1 | |
docker-machine create --driver digitalocean --digitalocean-access-token $DOTOKEN jmeter-server${JMETER_SERVER_ID} | |
-- create a docker host for jmeter-client | |
docker-machine create \ | |
--driver digitalocean \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- run only once for each thread | |
if( ${__counter(TRUE)} == 1 ){ | |
print("MyPrint :: This is run once per thread" ); | |
} | |
-- if condition can take a variable | |
-- ex ${any_variable} | |
-- JSR223 Post Processor | |
-- user of vars.get and prev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- JMeter Cloud Setup Using Docker and Weave -- | |
----------------------------------------------- | |
# Create three docker hosts for jmeter servers | |
# Use Virtual Box | |
docker-machine create --driver virtualbox jmServer1 | |
docker-machine create --driver virtualbox jmServer2 | |
docker-machine create --driver virtualbox jmServer3 | |
# open three terminals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker images | tail -n +2 | awk '{ print $1 ":" $2}' | xargs docker rmi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var message = $context.currentItem; | |
var statusCode = message.getResponse(message.RESPONSE_HTTP_STATUSCODE); | |
//$context.result.postMessage($context.result.LEVEL_INFO, 'Output.... ' + statusCode); | |
if ( statusCode != '200' ) { | |
result = false; | |
} else { | |
result = true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// link sublime to command line | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# Formats the timestamp as a number, so that higher numbers represent | |
# a later timestamp. This will not handle the time zone because date | |
# can't handle the o'clock notation. I hope all your timestamps use the | |
# same time zone, otherwise you'll have to hack support for it in here. | |
# 28/Apr/2017:13:15:16 | |
# date -d '28 Apr 2017 13:15:16' +%d%b%Y:%H:%M:%S | |
function datefmt(d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.execute("arguments[0].scrollIntoView();", $(selector)) |
OlderNewer