Skip to content

Instantly share code, notes, and snippets.

@pbandreddy
Created August 22, 2022 09:38
Show Gist options
  • Save pbandreddy/80559d3ddf66df67c2c2a3bf179bb06b to your computer and use it in GitHub Desktop.
Save pbandreddy/80559d3ddf66df67c2c2a3bf179bb06b to your computer and use it in GitHub Desktop.
#!/bin/bash
export JMETER_VERSION="3.1"
# Install wger & JRE
apt-get clean && \
apt-get update && \
apt-get -qy install \
wget \
default-jre-headless \
telnet \
iputils-ping \
unzip \
nodejs-legacy \
npm
# Install phantomjs with npm
npm install -g phantomjs
# Install jmeter
mkdir /jmeter \
&& cd /jmeter/ \
&& wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz \
&& tar -xzf apache-jmeter-${JMETER_VERSION}.tgz \
&& rm apache-jmeter-${JMETER_VERSION}.tgz \
&& mkdir /jmeter-plugins \
&& cd /jmeter-plugins/ \
&& wget https://jmeter-plugins.org/downloads/file/JMeterPlugins-ExtrasLibs-1.4.0.zip \
&& unzip -o JMeterPlugins-ExtrasLibs-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/ \
&& wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.4.0.zip \
&& unzip -o JMeterPlugins-Standard-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/ \
&& wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-WebDriver-1.4.0.zip \
&& unzip -o JMeterPlugins-WebDriver-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/
# Set Jmeter Home
export JMETER_HOME="/jmeter/apache-jmeter-${JMETER_VERSION}"
# Add Jmeter to the Path
export PATH="$JMETER_HOME/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment