Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.46 KB

acceptance.md

File metadata and controls

28 lines (19 loc) · 1.46 KB

#Acceptance test How to run the acceptance tests.

Acceptance tests are currently using robotframework. See http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html for an introduction and background

Preconditions

What you need on your computer to run the test

  • Retrieve the content of the acceptance folder
  • python 2.7 (versions 3.X of python have not been tested so far)
  • Install all the requirements listed by the acceptance/requirements.txt file: pip install -r acceptance/requirements.txt (we advise you to use a dedicated environment. Take a look at virtualenv for that).

What you need in your cloudfoundry environment

  • A test application (a static website for instance) which is reacheable from where tests execute. This should be in a distinct space representing consummer apps.
  • Autosleep applications deployed as an application in a distinct provider space where you are allowed to deploy private service brokers.

Run the tests

  1. First copy {ACCEPTANCE_TEST_DIRECTORY}/acceptance.tmpl.cfg under {ACCEPTANCE_TEST_DIRECTORY}/acceptance.cfg
  2. Fill the information in the {ACCEPTANCE_TEST_DIRECTORY}/acceptance.cfg file
  3. Simply launch the test with the following command:

pybot {ACCEPTANCE_TEST_DIRECTORY}

Sample test report

See http://cloudfoundry-community.github.io/autosleep/