Set up your tools

Please note that the Tips sections make the following assumptions:

  • You’re running Windows.

  • You’re installing and running everything as an admin user.

Java 8 JDK

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

NOTE: You MUST install the jdk NOT the jre.

Tips:
You need to set your JAVA_HOME environment variable to point at your Java 8 directory.

This is something like:
C:\Program Files\Java\jdk1.8.0_131

Add the Java bin directory to your PATH environment variable:
%JAVA_HOME%\bin

It’s also important to add the following to your PATH environment variable if you want to run Java headless:

C:\Windows\System32

There are different ways of getting to the environment variables depending on your operating system version, Google ‘environment variables for java installation’ to check what you need to do for yours.

Git

https://git-scm.com/download/win

Tips:
Follow the online instructions to download and install.


Oracle Virtual Box

https://www.virtualbox.org/

Tips:
Follow the online instructions to download and install.


Vagrant

https://www.vagrantup.com/downloads.html

Tips:
Follow the online instructions to download and install. You will need to restart your machine after the install.



FireFox

https://www.mozilla.org/en-GB/firefox/new/

Tips:
Follow the online instructions to download and install. You don’t have to make it your default browser.


FoxyProxy

In the address bar, type: about:addons

Tips:
Click on Extensions and search for FoxyProxy. Choose FoxyProxy Basic and click on Install. You will have to restart FireFox for the extension to appear.


JMeter

http://jmeter.apache.org/

Tips:
Download the apache-jmeter binaries (the zip file if you’re running Windows). Extract the zip file into your My Documents folder. Open the apache-jmeter-X.X folder (where X.X is the jmeter release number). Open the bin directory and right click on the ApacheJMeter file and choose Copy.

Right-click on your desktop and choose Paste Shortcut.

Add the address to your JMeter bin directory to your system PATH environment variable so you can run headless.


JMeter Standard Plugins

http://jmeterplugins.com/downloads/index.html

Tips:
Download the zip of the Standard Set. Extract the zip file into your JMeter (apache-jmeter-X.X) directory. You can find JMeter installation directory as the upper directory of bin, where jmeter start scripts are located. Make sure it contains lib and lib/ext directories.


Putty

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Tips:
Follow the online instructions to download and install.


SourceTree

https://www.sourcetreeapp.com/

Tips:
You will need to create an Atlassian account to use this tool.

Optional

The following tools are not needed for the course, but can be very useful:

WinSCP: https://winscp.net/eng/download.php

Notepad++: https://notepad-plus-plus.org/

PLEASE NOTE: You will no longer be able to use simplerisk.local to navigate to the SimpleRisk website. When you open your Test Plan in JMeter you will need to go to the HTTP Request Defaults and change the Server Name or IP field from simplerisk.local to 192.168.33.12


Download the App and Monitors

SimpleRisk App:

Create a folder in your My Documents folder called SimpleRisk. Open the command line in Windows and navigate to this folder. Type the following command:

vagrant init safebear/ccp_app_ubuntu

In your SimpleRisk folder, a new VagrantFile will have been created. Add the following line under the config.vm.box line.

config.vm.network “private_network”, ip: “192.168.33.12”

Save and Close the file. Return to the command line and type the following command:

vagrant up

Wait for the command to finish and test that everything is ok by going to the following URL in FireFox:

https://192.168.33.12/

The SimpleRisk login screen should appear. The logins should be the same as you set up on the course.

PLEASE NOTE: You will no longer be able to use simplerisk.local to navigate to the SimpleRisk website. When you open your Test Plan in JMeter you will need to go to the HTTP Request Defaults and change the Server Name or IP field from simplerisk.local to 192.168.33.12


Monitors (Grafana and Graphite):

Create a folder in your My Documents folder called Monitors. Open the command line in Windows and navigate to this folder. Type the following command:

vagrant init safebear/ccp_monitor_ubuntu

In your Monitors folder, a new VagrantFile will have been created. Add the following line under the config.vm.box line.

config.vm.network “private_network”, ip: “192.168.33.14”

Save and Close the file. Return to the command line and type the following command:

vagrant up

Wait for the command to finish.

You will need to log into the Virtual Machine to start the Grafana and Graphite Docker images. Type the following commands to do this:

vagrant ssh

You’re now on the box. Let’s start up the Dockers.

sudo docker start graphite

This will start graphite and just return the word ‘graphite’ as confirmation.

sudo docker start grafana

This will start grafana and just return the word ‘grafana’ as confirmation.

Now test that everything is ok by going to the following URLs in Chrome:

Grafana: https://192.168.33.14:3000/
Graphite: https://192.168.33.14:8080/


The Grafana and Graphite login screens should appear. The Logins should be the same as you set up on the course.


Import and Clone your Framework

import your repository

The framework you created on the course is on the Safebear repository account. Although you can pull down your code, if you make changes you will not be able to push them to this repo anymore. In order to continue working with a remote repository, you need to copy the one you created from Safebear’s account, to your own account.

You can create your own account using any distributed remote repository. The most popular ones are GitHub and Bitbucket, both of which are free. Instructions for importing for each provider are provided below.

Bitbucket

In order to get your framework copied from the Safebear repository to yours, you’ll need to:

  1. Sign up for an account and follow instuctions to login: https://bitbucket.org/account/signup

  2. Go to the import repository form: https://bitbucket.org/repo/import

  3. Enter the URL of the framework you built. This will look something like:
    https://bitbucket.org/safebear-student/<yourstudentID>

  4. Supply any other required info, such as what you want to call your repository (you don’t need to keep the studentID) and if you want it to be private or public. Submit.

  5. Once the import is complete, it’ll be opened in the browser, or you can see it in your account. Once the import is complete, you can select the link provided, or you’ll see it in your account.

GitHub

In order to get your framework copied from the Safebear repository to yours, you’ll need to:

  1. Sign up for an account and follow instructions to login: https://github.com/join

  2. Go to the import repository form: https://github.com/new/import

  3. Enter the URL of the framework you built. This will look something like:
    https://bitbucket.org/safebear-student/<yourstudentID>

  4. Supply any other required info, such as what you want to call your repository (you don’t need to keep the studentID) and if you want it to be private or public. Submit.

  5. Once the import is complete, you can select the link provided, or you’ll see it in your account.

Clone your repository

In order to pull down the framework you have created:

  1. Start SourceTree

  2. Select “Remote” from the top options and add an account

  3. Enter the details for your personal account (bitbucket/github etc)

  4. Select the repository from the list shown, and select “clone”

  5. Choose where you want your Parent Directory to be (this can be anywhere you want on your computer) and click on Clone.

  6. This will now pull down the code as we did on the course. You should see the project folder containing your files in the location you specified


Keep in Touch

Slack

Safebear slack invite

This is a group chat that includes some of our instructors.

We constantly want to improve our courses and keep them relevant to your job, so we hugely value your feedback.

Call or email us

EMAIL: hello@safebear.co.uk
PHONE: 02921 28 0321

Send us a message