GitXplorerGitXplorer
s

sofie-in-cypress

public
0 stars
1 forks
9 issues

Commits

List of commits on branch master.
Unverified
9f5728b3d581a1fcc1b1ec7f91f2621e554a52c8

feature: add user log take execution time and don't leak events

ssparkpunkd committed 4 years ago
Unverified
94be9a079ecf97548db2c6f5f20bc8b05c3e516d

feature: recording test result details in mochawesome report

ssparkpunkd committed 4 years ago
Unverified
b9c1c79326c7a3980cc44a357afe6f87f9349e87

chore: updating documentation and licenses

ssparkpunkd committed 4 years ago
Unverified
fb0eb1ad566aa49056e14dbdfb200959c9ea3dd2

chore: run both datagram servers

ssparkpunkd committed 4 years ago
Unverified
04b5df0b078eb4b88a49139539724daa37d90122

chore: make mockAtem run on windows and linux

ssparkpunkd committed 4 years ago
Unverified
cc9e7eb3cafb9f3d2d1f13ea7adfa5ae84852939

chore: update linux version of AtemMock

ssparkpunkd 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