Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Test Suites

Neeraj Dhiman edited this page Feb 3, 2017 · 8 revisions

Requirements :

  • Make sure you have following Environment variables set in your system where you supposed to run Test Cases.
  • All below env variables are Urls, e.g., http://0.0.0.0:8000
    • SERVER_URL
    • PROCESS_MICRO_SERVICE
    • RESOURCE_MICRO_SERVICE
    • WIDGETS_MICRO_SERVICE
    • VRT_MICRO_SERVICE

Unit Test cases :

  • Following unit test categories are covered :
    • Models Based unit test case with keyword test_models.
    • Object level API's based unit test case with keyword test_api.
    • Authorization level based unit test case with keyword test_authorization.
  • Your can run unit test cases with following commands :
    • all at once - python manage.py test
    • Run according to app base :
      • python manage.py test apps.{app_name}.tests.{keyword}
      • e.g., python manage.py test apps.process.tests.test_models

Functional Test cases :

  • Run with this command python manage.py test_use_case and then follow the instructions on CLI.
  • This above script enables you to load any runtime with any widget, So we can test any use case e.g., Logbook for now.
Clone this wiki locally