- Java 1.7
- Eclipse (Mars)
- Maven (eclipse plugin)
- Tomcat server (version 8)
- JMeter 2.13
- Checkout the project from git
- Build the project with maven, Right click on project and select 'Run as' -> Maven clean, install
- 'Run as' -> Run on server -> Select Tomcat 8
- The following URL should display a sample json: http://localhost:8080/seatr/rest/hello
- Tomcat Server console can be accessed using the following URL : http://ec2-52-35-118-9.us-west-2.compute.amazonaws.com:8080/
- The Hello World application can be accessed on amazon ec2 using the following URL : http://ec2-52-35-118-9.us-west-2.compute.amazonaws.com:8080/seatr-0.0.1-SNAPSHOT/rest/hello
- In Session-Host Name: ubuntu@ec2-52-35-118-9.us-west-2.compute.amazonaws.com
- In Connection-SSH-Auth: load the private key, which is the ".ppk" file. The file can be generated by PuTTYgen with the amazon provided private key.
- Install git -
sudo apt-get install git
- Install maven -
sudo apt-get install maven
- Checkout the project from git:
git clone https://github.com/vanlehn/seatr.git
- Edit the params.cfg (configuration file) - don't leave anything empty
- execute the following command from project's home
sudo bash deploy.sh
- Basically, this script copies the newly generated war file onto the tomcat webapps location (sudo to get permissions to copy)
-
JMeter tests cases for testing on aws ec2 server can be found at jmeter/tests/aws_ec2/.
-
JMeter tests cases for testing on local server can be found at jmeter/tests/local/.
-
The output of the testc can be found at jmeter/log/.
-
The tests can either be run using the JMeter GUI or on Command Line.
JMeter GUI
-
Windows: In apache-jmeter-2.13\bin\ folder open JMeter.bat to access the JMeter GUI.
-
Linux: Browse to apache-jmeter-2.13\bin\ folder using terminal then type "sh jmeter" to open the JMeter GUI.
-
Click on the file button(top left corner of Menu bar) and then click on open and browse the test case.
-
Now run the test using the Run button(centre of Menu bar) and then click on start.
Command Line
jmeter -n -t "testcase location" "output log file location"
eg. jmeter -n -t ../../Test_Plan1.jmx -l ../../log.jtl
- Location of the configuration file: /etc/mongo.conf
bindIp is comment out to allow any computers to connect to the server.
- Log files can be found in tomcat/logs/seatr.log