This is a mirror of the official repository at https://gitlab.com/openlp/openlp_api_tester
Go to file
Tim ac408e4912
More Updates and year change
2021-01-02 12:05:02 +00:00
test_api More Updates and year change 2021-01-02 12:05:02 +00:00
.flake8 Queues 2020-06-26 13:57:22 +00:00
.gitignore Queues 2020-06-26 13:57:22 +00:00
.gitlab-ci.yml Queues 2020-06-26 13:57:22 +00:00
LICENSE Initial Commit 2020-06-20 08:53:44 +01:00
README.md updates and documentation 2020-10-20 12:41:52 +01:00
alert.yaml Queues 2020-06-26 13:57:22 +00:00
api_test.py More Updates and year change 2021-01-02 12:05:02 +00:00
blank.yaml Queues 2020-06-26 13:57:22 +00:00
full_run_rand.yaml More Updates and year change 2021-01-02 12:05:02 +00:00
full_run_seq.yaml More Updates and year change 2021-01-02 12:05:02 +00:00
live_item.yaml fix errors 2020-10-20 12:57:59 +01:00
media.yaml Timing Cleanups 2020-10-04 19:47:01 +01:00
pause.yaml Timing Cleanups 2020-10-04 19:50:42 +01:00
play.yaml Timing Cleanups 2020-10-04 19:47:01 +01:00
requirements.txt updates and documentation 2020-10-20 12:41:52 +01:00
setup.cfg Fixes2 2020-06-21 08:57:12 +00:00
stop.yaml Timing Cleanups 2020-10-04 19:47:01 +01:00
test.yaml updates and documentation 2020-10-20 12:41:52 +01:00

README.md

OpenLP API tester.

A commandline utility to access a running OpenLP instance via it's API's and test all functionality.

It will find OpenLP on the network via ZeroConf and then using the API's build and run a service. After each command the results are tested to make sure the WebSockets have changed.

Tests are mastered in JSON files and run using the framework.

Test Structure

process_name: test process
step1:
  max: 1
  min: 1
  name: clear_live_controller
step2:
  delay: 1
  name: clear_preview_controller
step3:
  max: 1
  min: 1
  name: new_service
step4:
  delay: 1
  name: search_and_add
  payload:
    plugin: songs
step6:
  name: load_service_sequential 
  • process_name

    A unique name for the run

  • step 1

    The step number, needs to be unique and in order!

    • delay

      How long to wait after a call has been made. Default is 2 seconds for all calls.

    • max

      How long to wait after a call has been made. Default is 2 seconds for all calls.

    • min

      How long to wait after a call has been made. Default is 2 seconds for all calls.

    • payload

      How long to wait after a call has been made. Default is 2 seconds for all calls.

    • name

      The step name (function name) to be called to run the step.

Commands

Adding API's and Internals