GitXplorerGitXplorer
s

sofie-in-cypress

public
0 stars
1 forks
9 issues

Commits

List of commits on branch master.
Unverified
1273206a4f48805bb53ac7e8178aaedef8f00959

Merge branch 'feat/usability-additions' of https://github.com/jstarpl/sofie-in-cypress into feat/usability-additions

jjstarpl committed 4 years ago
Unverified
17d3a54df238acaf03485aba5bf952fd225e1ad3

chore: remove incompatible cypress-select-tests

jjstarpl committed 4 years ago
Unverified
a1b5c6af08121f993f8479b859dbe5ccf17401b7

chore: remove unused tests

jjstarpl committed 4 years ago
Unverified
8ccf8882b7ef7d7922a406c93f7a26967aae34a2

chore: add command-line test selection

jjstarpl committed 4 years ago
Unverified
4f33c1cd373ad600a283e1965923a453292706a4

fix: baseUrl value should be null

jjstarpl committed 4 years ago
Unverified
69c057eb4325d482ce4ee624a720af82aab869f1

feat: mod sample test to use env-specified host and roId

jjstarpl committed 4 years ago

README

The README file for this repository.

sofie-in-cypress

Performance testing Sofie with Cypress.

This work was carried out as part of the development of the Sofie TV Automation project at NRK.

Use

To run tests against a specific machine use:

cypress run --env host=http://sofie,ro_id=G6xVUpdg91LOM2Hx2Dv4NpJFuaw -reporter mochawesome

Set the host and ro_id (running order ID) properties.

Reports are output to the mocahawesome_report/ folder, screenshots to cypres/screenshots/sofie/ and videos to cypress/videos/sofie/.

Mocks

A fake Caspar and Atem are provided with these tests. Follow the instructions below to set them up. This must currently be on the same machine as where cypress is executing.

Important. Before running the tests, ensure both that:

  • The mocks used by the test are running.
  • Sofie's playout gateway has been configured to point at the mock applications.

Note that both mocks send messages to Cypress as unicast datagrams. As such, note that:

  • Only one test engine can receive updates at a time.
  • The message transport is, by its nature, unreliable. If the machine is heavily loaded and/or too much logging-to-the-console is taking place, messages will be lost.

Mock Caspar

Mock Caspar is a self-contained typescript module. Run with ....

yarn ts-node src/mockCaspar.ts

The server runs on port 5250. It sends log messages out as datagrams on port 52500.

Mock Atem

Mock Atem is a C# program and linux and windows installations are provided with this project.

To install the mock application:

  1. cd src/fakeAtem
  2. unzip dist-win.zip or unzip dist-linux.zip depending on your platform.
  3. cd ../..

To run the the mock:

yarn ts-node src/mockAtem.ts

The mock is configured to be a 2me v8.1. Edit the script to change this. List of commands the mock device has been requested to process are sent as datagrams on port 52502.

Details are provided on how to build the variant of the Atem mock used in this project.#

License

MIT.

(c) 2020 Norsk rikskringkasting AS