GitXplorerGitXplorer
s

sofie-in-cypress

public
0 stars
1 forks
9 issues

Commits

List of commits on branch master.
Verified
0ccae0fcdecef220c78d9963f1e60484a3c1ac63

Merge pull request #2 from jstarpl/feat/usability-additions

ssparkpunkd committed 4 years ago
Verified
3b8332ba39c631d5e0cf87eaa541e2f83b870d0c

Merge branch 'master' into feat/usability-additions

ssparkpunkd committed 4 years ago
Unverified
ba147ac9088a576d60c6b6e45b34cd56e0022401

feature: mocking the atem and getting result into cypress

ssparkpunkd committed 4 years ago
Unverified
4af9d778d3edb9a91e34256ed8254fca5b3c6e6e

chore: ignore integration/ folder from repo

jjstarpl committed 4 years ago
Unverified
910bc602fdacb0dc70038a41ce260f2759c297f5

chore: delete integration folder

jjstarpl committed 4 years ago
Unverified
2e4c7cf8c382b5d16cf4e15f2af15b1b38ba67a6

chore: move tests to a test-suites folder for selection by supervisor

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