Set up your tools

Here are the tools you need to install on your computer in order to get your Test Automation framework working.

Chrome Browser

https://www.google.co.uk/chrome/browser/desktop/

Tips:
Follow the online instructions to download and install.


Git

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

Tips:
Follow the online instructions to download and install.


NVM, NodeJS and npm:

For Linux and Mac:

https://github.com/creationix/nvm

For Windows users:

https://github.com/coreybutler/nvm-windows

Tips:

Follow the instructions to install NVM and then use it to install and use NodeJS version 8.15.0. npm comes bundled with NodeJs and will be installed automatically as a result.


Visual Studio Code

https://code.visualstudio.com/

Tips:
Follow the online instructions to download and install.


Jenkins

https://jenkins.io/doc/book/installing/

Tips:
Follow the online instructions to download and install.


Postman

https://www.getpostman.com/apps

Tips:
Follow the online instructions to download and install.


Switchy Omega

https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en

Tips:
Follow the online instructions to download and install.


Other tools

Instructions for dependencies and plugins are provided in the manuals, or included in your repository at the end of the course


Website

Safebear offer various websites to practice on:

Angular Website:

http://automate.safebear.co.uk:8080/

Python Website:

http://automate.safebear.co.uk/

Java Website:

http://toolslist.safebear.co.uk:8080/

If you would like to set up the website locally on your computer, follow the instructions below:

  1. Ensure Virtualization is Enabled in the BIOS of your laptop (under 'Security' or 'CPU')

  2. Install Docker and Docker-Compose (for Windows 10 install Docker Desktop)

  3. Copy the following code and save it into a docker-compose.yml file on your machine:

version: '3'

networks:
  app-tier:
    driver: bridge

services:
  mongodb:
    image: 'bitnami/mongodb:latest'
    container_name: 'mongodb'
    networks:
      - app-tier
  crudapi:
    image: 'safebear/angular-api:1.0.0'
    ports:
      - "3000:3000"
    depends_on:
      - "mongodb"
    command: 'npm start'
    container_name: 'angular-api'  
    networks:
      - app-tier
  crudapp:
    image: 'safebear/angular-app:1.0.0'
    ports:
      - "8080:80"
    depends_on:
      - "crudapi"
    container_name: 'safebear-app'  
    networks:
      - app-tier

4. In the terminal of your choice, navigate to the folder that contains the docker-compose.yml

5. Run the following command:

 docker-compose up -d

wait for all the containers to start (run docker ps to check this). There will be three containers started:

 safebear-app
 angular-api
 mongodb

6. We will need to restart the ‘angular-api’ so it picks up the ‘mongodb’ database. Run:

  docker restart angular-api 

to ensure it connects to the database.

NOTE: On Windows, it’s likely you’ll need to restart Docker Desktop and then restart each docker manually afterwards, leaving the ‘angular-api’ one until the very last, giving the ‘mongodb’ container a minute to fully start up.

7. Then go to localhost:8080 and confirm that the app is running.

To stop the dockers, use 'docker-compose stop' and then 'docker-compose start' next time you want to start them again (you may need to restart the 'angular-api' docker each time using the command in Step 6.).


Import and clone your Framework

Clone your repository onto your local computer, as you did in the first exercise on the course.


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

Name *
Name

Additional Resources

Git Repositories With Tutorials:

Link: Protractor without Cucumber

Link: WebDriverIO


GISTS

Link: Callbacks

Link: Closures


Learning

JavaScript

We love the Sololearn apps:

https://www.sololearn.com/Course/JavaScript/

We also love the ‘Learn X in Y minutes’ tutorials that can be run in your IDE:

https://learnxinyminutes.com/docs/javascript/

For more advanced JavaScript (e.g. Promises and Closures), the Google Tutorials are worth running through:

https://developers.google.com/web/fundamentals/primers/async-functions

TypeScript

‘Learn X in Y Minutes’:

https://learnxinyminutes.com/docs/typescript/

Also see the Google Code Labs tutorial:

https://codelabs.developers.google.com/codelabs/typescript-codelab/index.html#0

VSCode

VSCode can do that?

https://vscodecandothat.com/

The official tutorial:

https://code.visualstudio.com/docs

Git

Fun GitHub Learning Lab:

https://lab.github.com/

Learn Git commands (interactive course):

https://www.katacoda.com/courses/git

Please note these are external websites with no affiliation with Safebear.


Continuous Integration

Running your Postman Collections with Newman in Jenkins:

https://learning.getpostman.com/docs/postman/collection_runs/integration_with_jenkins/