Skip to content

foreodessa/GUI_Test

Repository files navigation

adidas GUI Testing

Case Study, nuff said.

UI Tests:

  1. Finding to check a order or delivery status

  2. Product code is found on product page

  3. Succsesfully going back to the main page from product page

Reports

The reports can be found the in ./reports/e2e

(reports will pop up in your browser after you excution)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

node.js
Nightwatch.js
selenium-server
Nightwatch html reporter

Installing

A step by step series of examples that tell you have to get a development env running

Installing node.js and npm is important for this env

For windows we will need an installer

Click here for that.

For Mac we first install homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then in the terminal

brew install node

1) Make sure you have Java(Runtime Environment JRE) installed

This is important for the selenium-server

You can check by typing java -version into your terminal and you should see your version number if you have Java installed.

How do I install Java? http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html pick your Operating System and follow the instructions

Mac OSX? (use homebrew)

If you haven't updated brew in a while, do that first:

brew update

That will install cask which is now part of Homebrew.

Now you can install Java:

brew cask install java

You should see something like this: install-java-with-homebrew-cask

See: http://stackoverflow.com/questions/24342886/how-to-install-java-8-on-mac

2) cd into the GUI_project

3) Install nightwatch

First install the nightwatch node.js module from NPM:

npm install nightwatch --save-dev

4) Install selenium-server

npm install selenium-server --save-dev

5) Install nightwatch html reporter

npm install nightwatch-html reporter --save -g

6) Installing both Chrome and Firefox drivers (if both are are not in the /bin)

Download and copy the lastest file Chrome driver and Firefox driver into the the bin folder.

Running the tests

For the GUI tests simply type

npm  run e2e

Built With

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Nightwatch tutorials
  • Inspiration
  • etc

About

Testing GUI of addias.fi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published