Attaching Screen recordings of failing 3.X E2E automated tests.
As previously stated in my most previous blog post, I started working on a new feature for the OpenMRS quality assurance framework. This will be a summary of my first working experience on OpenMRS.
In OpenMRS we are using automated workflows to test the system scenarios like,
- login
- Search and registration
- Settings
- Clinical visits
- Vitals and triage
There is a nice feature to automate E2E tests using cucumber and cypress for testing certain scenarios.
When performing these tests, the test may fail for a variety of reasons, but if there are no such issues, the test will pass. And all of this will be documented in GitHub log files. Link to the repo.
It’s quite simple for developers to run these failed tests on their local machine and figure out where the scenario is failing. However, setting up this development environment for non-developer parties such as program managers and external stakeholders to view the failure point is difficult.
To solve this problem, I had to activate cucumber’s built-in screen recording feature and build up GitHub workflows to attach failed test screen recordings to GitHub actions.
How do I get around to accomplishing these two goals?
- To record the screen of the running test, enable the built-in screen recording video feature in cypress.
2. Set up the GitHub actions workflow to attach only the failing 3.X E2E tests screen recordings.
The screen recording of the failed 3.X E2E test will be available in the GitHub Actions area according to this new functionality.
Here is a failing test from the testing scenarios. Link
And my task was almost complete and I made a Pull Request to the repository and present my workings on the weekly standup call.
Finally, my first Pull Request was merged to the openmrs-contrib-qaframework repository. This is the URL to my first Pull Request (PR Link) as well as the issue ticket (Ticket Link) on which I was assigned to work.
That was my very first experience with OpenMRS. Thank you for taking the time to read this. :)