Skip to content

golemhq/golem-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golem Tests

Tests for the Golem project.

Read the full documentation here: http://golem-framework.readthedocs.io/

Install

Requirements

  • Python 3.5+

Install Golem

pip install golem-framework

Clone This Repo

git clone https://github.com/golemhq/golem-tests.git
cd golem-tests

Download Webdrivers

webdriver-manager update

Suites

This repository contains three projects: golem_api, golem_gui and golem_integration

golem_gui

These are Golem tests that test the Golem GUI. So meta... (⌐■_■)

A Golem GUI instance must be running in port 8000. This will be considered the System Under Test.

Open a new console pointing to a different location than before and run:

golem-admin createdirectory test
cd test
golem gui -p 8000

Then from the first console run:

golem run golem_gui regression

golem_api

Tests for the Golem web application API. The GUI must be running on port 8000:

golem run golem_api .

golem_integration

These are tests that ensure the Browser class, Element class and actions module work as expected.

Stage environment

Points to https://www.web-playground.net/

golem run golem_integration regression -e stage

Test environment (local)

An instance of the Web Playground must be running in port 6565.

Open a second console and run:

pip install web-playground
web-playground

From the first console:

golem run golem_integration regression -e test

Open the Reports

Start the Golem GUI:

golem run gui

Then the reports are available here:

http://localhost:5000/report/golem_gui/

http://localhost:5000/report/golem_api/

http://localhost:5000/report/golem_integration/